Today Google unveiled its new project: Google Public DNS. It means now anybody can use Google’s DNS servers for resolving domain names into IP addresses and back. According to Google it should speedup browsing as well as security. Hope I won’t see adsense ads once tried to load expired domain name (that’s how OpenDNS acts today).
Here are easy-to-remember Google Public DNS IP addresses: 8.8.8.8 and 8.8.4.4.
In order to set up Google public DNS to your Linux settings place the following lines into /etc/resolv.conf:
nameserver 8.8.8.8
nameserver 8.8.4.4
Use command dig @8.8.8.8 linuxscrew.com to test how long it takes to resolve linuxscrew.com:
artiomix@artiomix-laptop:~$ dig @8.8.8.8 linuxscrew.com
...
;; ANSWER SECTION:
linuxscrew.com. 51844 IN A 69.164.195.222
;; Query time: 80 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Dec 3 21:53:29 2009
;; MSG SIZE rcvd: 48