Using Google’s public DNS service as resolvers in your server

December 4, 2009 • By admin

Google recently introduced this service. You can use this service as resolver for your server.

Login to your server as root

Background current resolver settings:

cp /etc/resolv.conf /etc/resolv.conf.backup

Open the file using vi:

vi /etc/resolv.conf

Remove the current entries by pressing dd

Put the following lines in the file:

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the file and exit (press :x ).

You are done!


Read this for more information