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.

http://welcome.opendns.com

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”

  1. mindwarp.net » Blog Archive » Caching name server with OpenDNS on March 14th, 2007 4:56 pm

    [...] 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 [...]

  2. Ubuntu | Steven Harms: Caching name server with OpenDNS on March 14th, 2007 5:29 pm

    [...] 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: [...]

  3. Setting up OpenDNS On Ubuntu « Microwave Biscuit on March 14th, 2007 5:30 pm

    [...] Setting up OpenDNS On Ubuntu Via: How To Setup OpenDNS On Ubuntu : Ubuntu Tutorials : Breezy - Dapper - Edgy - Feisty [...]

  4. Art Murphy on March 14th, 2007 10:43 pm

    Very Kewl! I dig your tutorials. Keep up the good work.
    Cheers,
    art.in.memphis

  5. Jelle Raaijmakers on March 15th, 2007 5:53 am

    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 :)

  6. Ubuntu Learner » Connection problem solved on March 16th, 2007 3:30 am

    [...] How to set up Open DNS in Ubuntu [...]

  7. Michael Olson on March 16th, 2007 2:30 pm

    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

  8. Irritated on March 17th, 2007 6:48 am

    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.

  9. How To Run a Tor Server : Donate to the Tor Network : Ubuntu Tutorials : Dapper - Edgy - Feisty - Gutsy on August 31st, 2007 11:02 am

    [...] If your machine is able to resolve domains quickly and easily you’re set. If not, consider configuring OpenDNS on your [...]

  10. Christer Edwards: How To Run a Tor Server : Donate bandwidth to the Tor Network // The Linux Index on August 31st, 2007 1:53 pm

    [...] If your machine is able to resolve domains quickly and easily you’re set. If not, consider configuring OpenDNS on your [...]

  11. - simply chris - » Blog Archive » Open DNS on March 22nd, 2008 3:31 pm

    [...] OpenDns.com Guide for Linux (ubuntu) [...]

  12. Steve K on April 1st, 2008 7:18 pm

    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)

  13. Christer Edwards on April 1st, 2008 9:22 pm

    @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.

Leave a Reply




    OSCON


    OSCON 2008

    Subscribe to the RSS feed!


    subscribe to the ubuntu tutorials RSS feed

    Polls


  • Regarding the Ads on Ubuntu Tutorials...

    • I dislike all web-based ads and use AdBlock (or similar) to destroy them! (49%, 155 Votes)
    • I don't mind the text-based ads on ubuntu-tutorials.com and currently view them. (31%, 99 Votes)
    • I would be willing to disable AdBlock (or similar) for this site considering I have found it helpful. (16%, 51 Votes)
    • I subscribe to ubuntu-tutorials.com via RSS or email so ads are a non-issue. (15%, 48 Votes)
    • I'd be willing to use the "Donate" button instead of see ads. (5%, 17 Votes)

    Total Voters: 316

    Loading ... Loading ...

  • Blogroll

  • Ads by Google