How To Setup OpenDNS On Ubuntu

I already heard about OpenDNS a while ago but for some reason never looked much into it. Until I got request to setting up the server for a community which has policy to block adult sites, phishing sites and individual sites. This request reminded me about OpenDNS so I thought I need take a look. One advantage from openDNS is the configuration can change from their website, Just create user on openDNS website and tick the website category which needed to block.

So, what is OpenDNS?

OpenDNS protects millions of people a day across hundreds of thousands of schools, businesses and homes. We block phishing sites, give you the power to filter out adult sites and proxies among more than 50 categories, and provide the precision to block individual domains.

The network setting will using squid proxy server to handle all http request from the client. The squid proxy server will use openDNS as default DNS for the network. We just stop using 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.


Now, Open the terminal and type

sudo vim /etc/resolv.conf

Then put the DNS IP from openDNS on the fle

name server 208.67.222.222
name server 208.67.220.220

Once your entry matches this you will want to save the file and restart networking. The network ready to serve the client with openDNS. If you want to control which site will block just login to the openDNS site and choose the one that fit with your network.


2 Responses to “How To Setup OpenDNS On Ubuntu”

  1. thx so much :)

  2. Hi. Thank you for posting this write-up. It helps a great deal of persons, a person of them is me because though I am reading, I’m learning new items that I can apply in everyday life. Wonderful web page! I’ll bookmark your website and I will often search for your update.

Leave a Reply