Google Public DNS Servers Launched

Today, Google has announced the launch of their free DNS resolution service. Many ISPs and 3rd party provider such as OpenDNS snoops around or send traffic to ad servers. However, Google promises not to play with end users and send the exact response his or her computer expects without performing any blocking, filtering, or redirection that may hamper a user’s browsing experience. In other words Google will not hijacking your traffic on non-existent domain name and it will follow strict RFC standard.

From the blog post:

The DNS protocol is an important part of the web’s infrastructure, serving as the Internet’s “phone book”. Every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they complete loading. As a result, the average Internet user performs hundreds of DNS lookups each day, that collectively can slow down his or her browsing experience.

Google DNS Server IP Addresses

The Google Public DNS IP addresses are as follows:

How Do I Add Google DNS Server IP Address Under Linux?

Simple edit the /etc/resolv.conf file and add above two ip address:


Save and close the file. Google do have clear cut privacy policy and speed also seems good to me as compare to my ISP. I guess the people at OpenDNS are going to be pi**ed by this.

Google DNS Server vs Your ISP Server

CDN servers will not work correctly and they will return a list close to Google’s DNS servers.
Sample outputs:

Using domain server:
Aliases: is an alias for is an alias for is an alias for has address has address & located somewhere in KUALA LUMPUR.

Using domain server:
Aliases: is an alias for is an alias for is an alias for has address has address & located in India. This also applies to NTP pool servers.


Ping-pong timings:

  • Ping times (ISP dns servers) – 20ms
  • Ping times (Google dns servers) – 116ms
  • Ping times (OpenDNS servers) – 190ms

Resolving timings (use dig @dns-server.address

  • ISP DNS Server – 41 msec
  • Google DNS Server – 262 msec
  • OpenDNS server – 213 msec

In other words I will use my ISPs server instead of Google or OpenDNS due to speed issue and incorrect handling of CDN servers. If you own a small LAN, I recommend setting up a caching dns server called dnsmasq.

🐧 Please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
35 comments… add one
  • carlos Montoya Jul 6, 2016 @ 22:52

    Do a little research on NSA “Get it all” project. Google and Cisco are favored partners using fiber optic mirror technique., , are tiny fraction of name servers operated by google. Look it up ( don’t be silly and use google search !) DuckDuck go is safe to use. When Google offers free dns and other services very few ISPs can say “no” today unless they are very big and well connected.

    • Matt Nov 13, 2016 @ 16:54 is NOT a DNS server.

  • joe Nov 23, 2011 @ 16:35

    will they have any restrictions on what websites we can visit and what content we can download?

  • Sam Dec 16, 2010 @ 9:51

    Google may be good or evil but I’m in Vietnam right now and if I want access to Facebook I can either install Tor or I can use Google’s DNS. I think it’s nice, even if they actually get some financial benefit from it.

  • horis insurance Oct 3, 2010 @ 23:26

    Possibly the greatest read that I read in my life???


  • Nilesh May 27, 2010 @ 4:31

    Google DNS is not suitable if you want to filter out sites like OpenDNS. I’ll stick with OpenDNS until Google launches their filtering service. I don’t want to be a victim of phishing, etc. !

  • Jasen May 25, 2010 @ 11:42

    google’s DNS outperforms my ISP on certain domains,
    I think someone has dropped the ball.

    jasen@gonzo:~$ host has address
    ;; connection timed out; no servers could be reached
    jasen@gonzo:~$ host
    Using domain server:
    Aliases: has address mail is handled by 10 mail is handled by 10 mail is handled by 10 mail is handled by 10 mail is handled by 10 mail is handled by 10

    send in the marines!

  • Fred Obvious May 22, 2010 @ 6:11

    Uh, no, they didn’t anounce this ‘today’.

    They announced it in Dec of 2009 – its old news.

    • 🐧 nixCraft May 22, 2010 @ 7:48

      This is old news; but I got some sort of problem with WP it is showing old feed item as new items.

  • fox May 21, 2010 @ 6:03

    I think if you care about privacy you would never ever want to use google DNS!
    I’m pretty sure google will collect everything plus more about you and what domains you are resolving.

  • kubrick Jan 26, 2010 @ 9:21

    The IP address is very easy to remember.
    I think it’s the only advantage of this public DNS service.
    My ISP DNS (Telefonica) is currently working faster.


  • Jon Jan 22, 2010 @ 21:34

    Comodo also offers free DNS, I think that if you care about privacy you should be using an external DNS and not your ISP.

    • Jasen May 25, 2010 @ 11:36

      DNS is cleartext ypur ISP can still read the traffic if they want.

  • Jesus Christ Jan 5, 2010 @ 9:03

    This great man

  • Nilesh Jan 2, 2010 @ 11:31


    If Google sells your private data then everybody should stop using Google. | Explore Technology

  • Nobody Dec 30, 2009 @ 13:15


    Are you a geeky desktop user? If so learn how to setup your own squid and SquidGuard blocking service.

    OpenDNS has its own problem just like Google DNS server. Both of them sell your personal data and they do not have clear cut privacy policy.

  • Aaqil Mahmood Dec 30, 2009 @ 12:43

    @Nilesh: Na, I am missing those things with Google DNS

  • Nilesh Dec 30, 2009 @ 11:07

    Does Google provide Phishing Protection, Filters, etc. like that of OpenDNS ? | Explore Technology

  • Aaqil Mahmood Dec 19, 2009 @ 23:58

    I hate u everyone, cruel world listen to me, how can i block bad sites by category etc with Google DSN? Like I block in OpenDNS

  • Raihan_naufal Dec 15, 2009 @ 3:27

    Pertamaaax .. Gan!!!,

    I will try …thanks for research opendns, I hope more smootly than ISP on my country yg agak lemot gitu loh <> 😛



  • Yonit Dec 6, 2009 @ 5:53

    Hi Vivek,
    will this break the CDN setup?
    ie. give you the caching servers closer to google dns?
    or will it just do the resolving from a DNS server closer to Google, and still give you the cache servers closer to you?


    ps. – why did you take off the url part from your comments?

    • 🐧 nixCraft Dec 6, 2009 @ 16:42


      Yes, you will get CDN server closer to Google dns server and not to your geo location. In other words user may get common media and steaming file slowly from cdn networks.

      ps. – why did you take off the url part from your comments?

      It will back later on. I’ve some problem with my custom made spam filters plugin and latest version of WP. This is a temporary situation. I Will update code later on ..

      @Dudley, No problem!

      @Andon, nice suggestion, DJB or bind caching is for small and large network. It will speed up queries.

  • Andon Dec 5, 2009 @ 15:08

    why not run ur own DNS server with ACL to accept queries w/ recursion? (if u are running linux)

  • vivek Dec 5, 2009 @ 8:11

    i was wondering that ISP’s can configure their routers to direct DNS requests to their own servers.

  • Dudley van der Poll Dec 4, 2009 @ 18:53

    My apologies. I just found out Vivek is the creator of this site! Anyway, keep up the good work!:)

  • Dudley van der Poll Dec 4, 2009 @ 18:42

    I enabled open DNS after experiencing problems with my home internet connection, after upgrading to Ubuntu 9.10. It definitely improved things. I block the advertisements using adsweep etc via greasemonkey. The reason this article caught my attention are the comments by Vivek Gite. I started learning shell scripting because of his excellent tutorial. Thank you Vivek! I will not be using Googles DNS services yet till they have gone through the teething problems that all new things are prone to. Thanks once again Vivek!

  • 🐧 nixCraft Dec 4, 2009 @ 14:54

    @Klaus, I got your point. May be someone need to send an email to Google about this problem.

    @ Adi, usually, ISP servers are overloaded and not optimized for caching purpose. However, Google is one of the biggest ad company too. So they do have some sort of interest tracking users.

  • Adi Dec 4, 2009 @ 11:34

    The reason for which Google gives you this service nice and clean even if it is a lot slower than more than 99% of ISP (even basic) DNS servers is quite clear for me:
    DNS queries are very useful in building a very specific and accurate profile of a someone’s behavior on Internet; and this is extremely useful in all kinds of optimization for search engines (SEO) and Company and also is a very normal, obvious step to globalization (as in global control)…
    All they have to do is convince you to use them; and it would not be very hard as many people consider Google services quite stable and “great” without thinking to what they give up in using them.
    Corroborate this with other actions Google has taken in last years and you may see that even having Google as ISP anywhere in the world won’t be very hard to believe…. imagine only what can be obtained from analyzing all traffic a person / organization does! (this kind of analysis is already used for years in planing targeted hacking attacks for example)

    • mrfancypants Jun 21, 2010 @ 23:32

      u know we dont have to REALLY worry if they are killing babies or making dogs eat old peoples food and old people eat the babies until there is suddenly no one posting aboput google’s destiny as the big brother stomping step dad who beats his wife and turns his own mother away on a cold winter night.

      At that point I will thoroughly enjoy being able to say

      “told ya so”
      “I told you”
      “told ya”
      “didn’t I tell you”
      “I told that to you”
      “that was told to you by me”
      “I did the telling of that to you”


      “damn, shoulda moved to china where they knew the game and had a sporting chance….”

      ps. told ya

  • Klaus Alexander Seistrup Dec 4, 2009 @ 9:18


    I’m aware of, but that’s not what I want. I want to be able to look up the IPv6 address of any Google service, and Google’s public resolvers wont let me do that.
    Using 2001:470:20::2 as the resolver for anything in gives me what I want.
    See e.g. for details.

  • Klaus Alexander Seistrup Dec 4, 2009 @ 9:05

    I know that one, but that’s not what I’m looking for. I want to be able to look up the AAAA record for (CNAME directly, and I cannot do that at Google’s public resolvers. I.e., what I want is the second scenario on the pic at — and I can do just that by using 2001:470:20::2 as resolver…

  • 🐧 nixCraft Dec 4, 2009 @ 8:54

    @Klaus, not really, do not have ipv6. They’ve ipv6 at

    dig aaaa @ +short

    dig aaaa @ +short


  • Klaus Alexander Seistrup Dec 4, 2009 @ 6:17

    Fun enough, Google’s public resolvers won’t give you an IPv6 address for

    $ dig aaaa @ +short

    You have to go to other parties to find that:

    $ dig aaaa @2001:470:20::2 +short


  • Jim Gaudet Dec 3, 2009 @ 22:13

    Thanks for the research on this. I have been using OpenDNS because the local DNS servers here in Costa Rica are really bad and go down all the time.

    I can tell you so far, and this has only been a few hours, but my overall net speed is faster. Ping time is slower, but net speed faster. Weird…


  • Travis Heinstrom Dec 3, 2009 @ 22:02

    In virtually all cases, people’s ISP DNS servers will be faster.

    I’m wondering what exactly google’s motive is behind their launch of this service.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @