Sometimes it is necessary to change the DNS name indication to a different IP address. As you can see in the example below, google.com currently points to:
To change google.com indication to, for example – 37.187.101.239, edit the file: “/etc/resolv.conf” as root:
1 2 |
# cat /etc/resolv.conf google.com 37.187.101.239 |
After making this change, the effect is as follows:
Windows as you see there is similar situation:
File must be edited as administrator “C:\Windows\System32\drivers\etc\hosts”:
After saving the file, the effect is as follows: