Adding a great DNS server in Ubuntu

Almost everyone tried at one point to access a site on-line but got an error from the browser saying that the address is unreachable. The problem is complex but one of the solution could be to add some dns servers to resolve the domain properly.

Adding a Dns server might resolve the problem if your ISP provider doesn’t update their dns cache accordingly.OpenDNS is the best free alternative. All you have to do is add 2 new Dns to your network settings and the problem might be resolved.

You need 2 ips:

208.67.222.222 208.67.220.220

Add them to this file : resolv.conf

sudo vi /etc/resolv.conf

The second step will be to save the settings permanently.You can accomplish this in the following way :

sudo gedit /etc/dhcp3/dhclient.conf

Now change the line that starts with prepand :

prepend domain-name-servers 208.67.222.222,208.67.220.220;

Your all set. If dns was the problem then your sites should work with no problem.

Update :

Forget OpenDNS , It is a free service with a twist : it will hijack firefox and queries made from it will redirect to opendns search engine. The principle is the same but use a good free DNS service close to you.

About Nikesh Jain

The Creator of ThinkAnytime. I live in Bangalore (India), a country with plenty of computer geeks around. • I have been in the computer field for few years now and am very passionate about gaming, building & modifying computer and experimenting with them. Always ready to help ☺

Posted on May 19, 2011, in How to, Tips & Tricks, OS - Ubuntu and tagged , , , , , . Bookmark the permalink. Leave a comment.

Leave a footprint..