Google 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 8.8.8.8" > /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:
2. Press Edit button and go to IPv4 Settings tab. Set DNS Servers field to 8.8.8.8 and Search Domains to google.com.
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.





Reverend Vincent Hugh Jarse
Posted on January 23, 2011 at 11:20 amOkay, 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 amI 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?
@ActionParsnipXL
Posted on June 12, 2012 at 5:41 amsudo 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 8.8.8.8" | 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 pmThanks for finally writing about >Ubuntu and
Google Public DNS – Ubuntuka <Loved it!
womotour.com
Posted on December 1, 2012 at 6:23 pmWhen 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 pmHi 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 pmoh 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 amI 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 pmHi 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 amFirst 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 amBrilliant 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.
Helaine
Posted on May 5, 2013 at 4:47 pmHi, I log on to your blogs on a regular basis. Your humoristic
style is witty, keep doing what you’re doing!