Set up Google Public DNS on Ubuntu

Google has recently released their very own DNS resolver with main goals of making web browsing faster and safer. Since Google’s search engine already crawls the web on a daily basis and in the process resolves and caches DNS information, they wanted to make use of their technology to experiment with new ways of addressing some of the existing DNS challenges around performance and security.

As I’ve said on my older post about OpenDNS, that replacing your ISP’s slow DNS server with a third party DNS resolution service will help speed up your Internet connection. So if you are already using OpenDNS right now and are pleased with it, why not try Google Public DNS.

Setting up Google Public DNS on Ubuntu is quick and straightforward.

Then, input these nameserver addresses as your ‘DNS Servers’:,

Click “Ok” and you are done.

For advanced users, you can set up Google Public DNS by editing /etc/resolv.conf:

$ sudo gedit /etc/resolv.conf

Find and replace the nameserver lines with, or add, the following lines:


Save, and then exit. Restart your internet connection and test your new settings.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s