Using Google Public DNS

Most people connect to the internet via their ISP’s DNS servers which more than likely are not the best and more than likely is slowing down your browsing. Using a 3rd party service not only speeds up your experience online. A while ago we wrote about OpenDNS, today we’re going over Google’s DNS service.

Important:
Make sure to write down your ISP’s DNS servers.

Google Public DNS IP addresses

IPv4 addresses are as follows:

  • 8.8.8.8
  • 8.8.4.4

IPv6 addresses are as follows:

  • 2001:4860:4860::8888
  • 2001:4860:4860::8844

Making the changes

Windows

  • Start the Network and Sharing Center (this process varies by windows version)
  • Click Change adadpter settings
  • Right-click Local Area Connection or Wireless Network Connection slelect Properties
  • Type in your administrator password if you are promted for it.
  • Click the Networking tab
  • Under the Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and click Properties
  • Click Advanced and select the DNS tab, write down any IP’s that are listed here for future reference in case you want to revert later on.
  • Select Use the following DNS server addresses
  • Enter the IP’s from above
  • Restart your computer

Mac OS

  • Click the Apple menu ()
  • Click System Preferences and click the Network logo.
  • Select the connection you want to configure (Thunderbolt Ethernet or Wi-Fi or Display Ethernet) then click Advanced
  • Select the DNS tab
  • Click the + icon to enter the IP Addresses (repeat for each address)
  • Click Apply then click OK

Linux

I will go over doing this in Ubuntu since that is one of the more common flavors.

  • Start System Preferences and click Network Connections
  • Select the connection you want to configure Wired or Wireless tab, then select the appropriate network.
  • Click Edit, and in the window that appears, select the IPv4 Settings or IPv6 Settings tab.
  • If the selected method is Automatic (DHCP), open the dropdown and select Automatic (STATIC) addresses only instead.
  • If the method is set to something else, do not change it.
  • In the DNS servers field, enter the IP addresses, separated by a space:
  • Click Apply
  • If you are prompted for a password or confirmation, type the password or provide confirmation.

If your distribution doesn’t use Network Manager, your DNS settings are specified in /etc/resolv.conf.

Edit resolv.conf:

sudo vi /etc/resolv.conf

If any nameserver lines appear, write down the IP addresses for future reference. Replace or add, the following lines:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

Save and exit

:wq

Restart any Internet clients you are using.

sudo /etc/init.d/networking restart

Routers

Every router uses a different user interface for configuring DNS server settings; we provide only a generic procedure below. For more information, please consult your router documentation.

Note:
Some ISPs hard-code their DNS servers into the equipment they provide; if you are using such a device, you will not be able to configure it. Instead, you can configure each of the computers connected to the router, as described above.
  • In your browser, enter the IP address to access the router’s administration console.
  • When prompted, enter the password to access network settings.
  • Find the screen in which DNS server settings are specified.
  • If there are IP addresses specified in the fields for the primary and seconday DNS servers, write them down for future reference.
  • Replace those addresses with the IP addresses from above
  • Save and exit.
  • Restart your browser.
Advertisements

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s