DNS is the English acronym for Domain Name System. DNS servers allow you to connect to Internet sites by typing simple textual addresses (eg google.com) instead of very long numerical addresses (eg 74.125.224.72), ie the real "coordinates" of the websites. Changing the DNS on your PC with faster DNS makes it much easier and faster to connect to websites, thus facilitating the user's web browsing. The procedure for changing DNS varies according to the operating system you use on your device.
Windows
In case you use Windows operating system, follow these steps:
- Login to your pc "Control panel"
- Select "Network and Internet" and "Network connections and sharing" and select the current connection your using, Wi-Fi or Ethernet
- Click on "Properties"
- Select "The connection uses the following features" and click on "Properties"
- Select "Use the following DNS servers addresses"
- Enter the DNS servers address in the fields "Main DNS server" and "Alternative DNS Server"
- Click on "Validate Settings"
- Click on "Ok" to save the changes.
Mac
In case you use an Apple device, follow the procedure below:
- Click on "System Preferences" -> "Network"
- Select the type of connection you're currently using, Wi-Fi or Ethernet
- Click on "DNS" to view "DNS Server"
- Enter in the list the OpenDNS, Google DNS or the ones you prefer
- Click on "OK" to save changes.
Linux
In case you use Linux operating system, you can change DNS via graphic interface or terminal.
To change DNS via graphic interface:
- Go to System- >Preferences - >Network connection and select the kind of connection you are currently using, Wi-Fi or Ethernet
- Select "IPv4 Settings"
- Select as method "Automatic (DCHP) addresses only"
- Type in the "DNS Server" field the server's IP address you want to use
- Click on "Save" to end the procedure.
To change DNS via terminal:
- Open "Terminal"
- Type the following command: sudo gedit /etc/resolv.conf
- Type the new DNS server address to use, replacing the current ones
- Save, by clicking on "CTRL+X" and then on "S".
It may happen, as you restart the system, that the Network Manager removes the previously set DNS, restoring the old ones. To avoid this situation, you have to modify the dhclient.conf file using this procedure:
- Open "Terminal"
- Type: sudo gedit /etc/dhcp/dhclient.conf
- Look for the line “#prepend domain-name-servers 127.0.0.1” and replace it with “prepend domain-name-servers 8.8.8.8, 8.8.4.4” (without # at the beginning of the line)
- Save, by clicking on “CTRL + X” and then “S“.