Mar
14
How To Setup OpenDNS On Ubuntu
Filed Under Internet
I had heard about OpenDNS a while ago but for some reason never looked much into it. A magazine article tonight reminded me about OpenDNS so I thought I’d take a look. Well, I’m happy that I did so far. I thought I would outline a few steps for you to get OpenDNS setup on your machine.
First, what is OpenDNS?
OpenDNS is a better DNS, free to all. OpenDNS uses its distributed network of DNS servers to speed up your Internet experience, increase reliability, improve security and make DNS smarter for users all over the world.
Basically you can stop using your ISPs DNS, which can often be slower or unreliable, and use this instead. Here is how to set it up on an Ubuntu machine. You can see the Ubuntu setup instructions on the OpenDNS site if you’d like more information.
sudo cp /etc/resolv.conf /etc/resolv.conf.auto
sudo gedit /etc/dhcp3/dhclient.conf
Look for the below line, which will be commented, and match this setting.
# append the following line to the document
prepend domain-name-servers 208.67.222.222,208.67.220.220;
Once your entry matches this you will want to save the file and restart networking using a command such as the one below.
sudo ifdown eth0 && sudo ifup eth0
You can then visit this address to verify that you’re using the new OpenDNS service.
I post tutorials very regularly on this site. You may want to consider subscribing to the RSS feed. Or if you'd prefer these tips sent to your inbox you can use Email Subscriptions.
Related Posts
Random Posts
-->Comments
13 Responses to “How To Setup OpenDNS On Ubuntu”
Leave a Reply
[...] is good to go. These name servers are noticeably faster than my ISP provided ones. Update: Also check out Christer’s post, didn’t check the planet before I [...]
[...] is good to go. These name servers are noticeably faster than my ISP provided ones. Update: Also check out Christer’s post, didn’t check the planet before I posted. Previous Post: Vincent Untz: [...]
[...] Setting up OpenDNS On Ubuntu Via: How To Setup OpenDNS On Ubuntu : Ubuntu Tutorials : Breezy - Dapper - Edgy - Feisty [...]
Very Kewl! I dig your tutorials. Keep up the good work.
Cheers,
art.in.memphis
I think that article is quite biased, e.g. “OpenDNS is a _better_ DNS”. Just because it has ‘open’ in it’s name doesn’t mean it’s always better. My ISP has an excellent and very reliable DNS-server with a ping roundtrip of a few milliseconds. I’d like to see OpenDNS beat that
[...] How to set up Open DNS in Ubuntu [...]
Another method for accomplishing this (provided you have resolvconf installed) is to add the following to /etc/resolvconf/resolv.conf.d/base.
# OpenDNS nameservers (http://www.opendns.com/)
nameserver 208.67.222.222
nameserver 208.67.220.220
This is a good tutorial about changing DNS servers. OpenDNS is good, but I dont think its that good. I live in the UK and have used several ISP’s. Most of them have poor DNS but I always end up using Pipex’s DNS servers, even though I’m no longer a customer. Infact, you can usually use any ISP’s DNS server!
If you’re in the UK instead of OpenDNS, try Pipex:
Primary 212.103.224.51
Secondary 212.103.224.52
http://www.pipex.net/support/wirelessbroadband/troubleshoot.php
Also worth mentioning, on many routers you can telnet into them and change the default DNS address it connects too. This way every computer connected will use the new DNS.
[...] If your machine is able to resolve domains quickly and easily you’re set. If not, consider configuring OpenDNS on your [...]
[...] If your machine is able to resolve domains quickly and easily you’re set. If not, consider configuring OpenDNS on your [...]
[...] OpenDns.com Guide for Linux (ubuntu) [...]
My ISP just started intercepting “mistyped” URLs for fun and profit, so I just switched over to OpenDNS. So far it’s all good.
:o)
@Steve K - you should know that OpenDNS will do something similar, although I don’t think I’ve ever seen it in day-to-day use.