How To Setup OpenDNS On Ubuntu

By | 2007/03/14

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

17 thoughts on “How To Setup OpenDNS On Ubuntu

  1. Pingback: mindwarp.net » Blog Archive » Caching name server with OpenDNS

  2. Pingback: Ubuntu | Steven Harms: Caching name server with OpenDNS

  3. Pingback: Setting up OpenDNS On Ubuntu « Microwave Biscuit

  4. Jelle Raaijmakers

    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 🙂

    Reply
  5. Pingback: Ubuntu Learner » Connection problem solved

  6. Michael Olson

    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

    Reply
  7. Irritated

    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.

    Reply
  8. Pingback: How To Run a Tor Server : Donate to the Tor Network : Ubuntu Tutorials : Dapper - Edgy - Feisty - Gutsy

  9. Pingback: Christer Edwards: How To Run a Tor Server : Donate bandwidth to the Tor Network // The Linux Index

  10. Pingback: - simply chris - » Blog Archive » Open DNS

  11. Steve K

    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)

    Reply
  12. Christer Edwards Post author

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

    Reply
  13. Michael

    @Michael Olson
    Thank you for that. Depending on your preferences, you can choose either the “head” or the “base” file, depending on whether you want it prepended (at the top) or appended at the bottom.

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.