Ubuntu and Google Public DNS

Posted in Quick Tips | 28 comments
Tags: , , , ,

google logoGoogle launched its public DNS service in the end of 2009 and now it is time to say that is fast and reliable enough to start using it with your Ubuntu. See below how to configure your DNS settings and point your Ubuntu to Google’s DNS entry.

As far as Ubuntu is one of Linux distributions DNS entries are stored in /etc/resolv.conf text file that is read by operating system in real-time. If you need to point your Ubuntu to Google DNS quickly and easy just execute the following command that adds one line to /etc/resolv.conf:

sudo echo "nameserver" > /etc/resolv.conf

At the same time this is temporary solution as network manager coming with any Ubuntu by default for easy network settings configuration, overwrites resolv.conf according to network connection setup either wired or wireless. Therefore to set up Google Public DNS as permanent DNS entry in your Ubuntu you have to edit your network connection using network manager and set up static DNS entry. Just follow below screenshots (they are taken on my Ubuntu Lucid Lynx 10.04 LTS):

1. Go to Ubuntu menu –> System –> Preferences –> Network Connections and select network connection you use to get access to Internet:

network connections wifi ubuntu

2. Press Edit button and go to IPv4 Settings tab. Set DNS Servers field to and Search Domains to google.com.

Screenshot Editing Auto bcpl

Once you pressed Apply button settings will be saved. Reset your network connection through network manager (disconnect and connect) to make it generate new /etc/resolv.conf file and start using Google Public DNS in your Ubuntu.

Follow @Ubuntuka on Twitter!

Reverend Vincent Hugh Jarse

Posted on January 23, 2011 at 11:20 am

Okay, Google, one of the most awesome brands on the planet.. But being able to use their public DNS is like saying “here, track EVERY connection I make outside my LAN please!”

Nick Halliwell

Posted on August 12, 2011 at 2:30 am

I assume that if you have more than 1 machine that are connected to a router you can set the Google DNS up in your router and therefore have all you machines accessing Google DNS

Can anyone confirm?


Posted on June 12, 2012 at 5:41 am

sudo echo won't work as the sudo doesn't traverse the redirection. User's following this will STILL get access denied. If you use:

echo "nameserver" | sudo tee /etc/resolv.conf > /dev/null

it will work. You clearly log in as root (for some weird reason). Did you even test this!??

Contact Us

Posted on November 28, 2012 at 7:31 pm

Thanks for finally writing about >Ubuntu and
Google Public DNS – Ubuntuka <Loved it!


Posted on December 1, 2012 at 6:23 pm

When I originally commented I clicked the “Notify me when new comments are added” checkbox and
now each time a comment is added I get several emails with the same comment.
Is there any way you can remove people from that service?
Bless you!

visit website

Posted on January 11, 2013 at 12:14 pm

Hi there! I could have sworn I’ve been to this blog before but after reading through some of the post I realized it’s new to
me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back often!

greg mclardie

Posted on January 13, 2013 at 11:46 pm

oh men, I want to have a car like that, but I am sure its king expensive but when you drive it you look like your flying an airplane..hahaha

led lights

Posted on January 14, 2013 at 1:04 am

I have been visits lots of blogs, some of them are nice but so far your blog makes my mind blow away, you contents are very interesting and we can get information to you blogs, thanks for sharing it.

Schutzengel für uns !

Posted on January 30, 2013 at 4:40 pm

Hi there, constantly i used to check webpage posts here in the
early hours in the break of day, as i enjoy to gain knowledge
of more and more.

free web hosting

Posted on February 2, 2013 at 10:04 am

First off I want to say terrific blog! I had a quick question that I’d like to ask if you do not mind. I was curious to know how you center yourself and clear your head prior to writing. I have had a hard time clearing my thoughts in getting my ideas out there. I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes are generally wasted just trying to figure out how to begin. Any ideas or tips? Cheers!

Domain transformer

Posted on March 10, 2013 at 6:46 am

Brilliant article post! I've first learned that info about how to configure DNS settings and point Ubuntu to Google’s DNS entry. Really, it is useful and practical input. Please, keep it up with continue.


Posted on May 5, 2013 at 4:47 pm

Hi, I log on to your blogs on a regular basis. Your humoristic
style is witty, keep doing what you’re doing!

green coffee bean max

Posted on May 22, 2013 at 5:12 pm

Coffee is one of the major scientific studies carried out green coffee bean diet
for weight loss. Since October 2006, Green Mountain coffee
is a Medium Roast and sold in pre-packaged bags in the coffee helps to avoid excess glucose in the body.
Are there any potential dangers to taking green coffee bean
diet Bean extract live up to the truth.

office cleaning glasgow

Posted on June 12, 2013 at 2:01 am

It’s remarkable for me to have a web page, which is helpful for my know-how. thanks admin

wifi hack iphone

Posted on July 9, 2013 at 11:04 am

Your style is very unique in comparison to other
people I have read stuff from. Thank you for posting when you have the opportunity,
Guess I will just book mark this web site.

spss data analysis

Posted on August 12, 2013 at 9:18 am

This is nice. To make it even better, add ubuntu-server-tip to the end of .bashrc, so when you log-in or open a terminal, you will your "tip of the day.

spirulina benefits

Posted on August 17, 2013 at 7:55 pm

Wow, awesome blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website
is wonderful, let alone the content!


Posted on August 19, 2013 at 10:20 am

Glad that i have found you people. it has been heard that Google launched its public DNS service for the users. i found it is to be fast and reliable and easy to use and implement, the screen shots have helped me to understand more about this. thank your for posting. Regards.
justice coin commercial

click here

Posted on September 10, 2013 at 9:31 am

Google audience DNS is a unrestrained authority appoint computer server from Google. You can exercise Google's DNS servers rather of your Internet utility provider's DNS servers. Google's servers might give faster furthermore additional responsible liturgy than quantity Internet duty providers' DNS servers.

angry birds spielen online

Posted on October 4, 2013 at 5:29 am

Thanks for revealing your ideas. I’d also like to mention that video games have been ever before
evolving. Technology advances and revolutions have aided create practical and
fun games. These entertainment games were not really
sensible when the real concept was first of all being
attempted. Just like other styles of technologies,
video games also have had to evolve by many generations.

This itself is testimony for the fast progression of video games.


Posted on October 9, 2013 at 11:48 pm

Hey there, You’ve done a fantastic job. I will
certainly digg it and personally suggest to my friends.
I’m confident they’ll be benefited from this website.


Posted on October 24, 2013 at 11:30 am

Many thanks for scripting this superior submitting, I might like to share it with my buddies. Be sure to go on updating your Web-site, I subscribe it.


Posted on November 1, 2013 at 6:07 am

You can advantage Google's DNS servers rather of your Internet duty provider's DNS servers. Google's servers might give faster moreover better true duty than any Internet employ providers' DNS servers.
scanner organizer

free domain hosting google apps

Posted on November 17, 2013 at 4:43 pm

It’s a pity you don’t have a donate button! I’d certainly donate to this
excellent blog! I suppose for now i’ll settle for bookmarking and
adding your RSS feed to my Google account. I look
forward to fresh updates and will talk about this blog with
my Facebook group. Talk soon!


Posted on December 19, 2013 at 9:31 pm

Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?
My blog is in the very same niche as yours and my users would
really benefit from a lot of the information you
present here. Please let me know if this ok with you.


Posted on December 26, 2013 at 9:57 am

highprofileshruthi.com For top quality dating services at an unbeatable rate, don’t look anywhere else. I have an extensive fleet of dating services and dinner dates to choose from so you’ll be certain to find the right girls to suit your needs.

Wicked temptations Coupons

Posted on February 3, 2014 at 11:17 am

I’m really impressed with your writing skills as well as
with the layout on your weblog. Is this a paid theme or did you modify it yourself?
Anyway keep up the nice quality writing, it is rare to see a great blog like this one these

ahmedabad escorts

Posted on April 3, 2014 at 9:25 am

Ahmedabad Escorts Provides Escorts in Ahmedabad, Ahmedabad Escorts,Ahmedabad Escort, Sexy Ahmedabad Escort,Ahmedabad Independent Escorts Ahmedabad Escorts, Independent Ahmedabad Escorts, Escorts in Ahmedabad, Independent Escorts in Ahmedabad, Female escorts in Ahmedabad, Ahmedabad Escorts Services, Ahmedabad call girls

Post a comment

Hello guest, care to post a comment?