Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want my Raspberry Pi to use OpenDNS to resolve domain names. How can I modify this setting?

share|improve this question

If you are using Debian on Raspberry Pi, then you need to edit /etc/resolv.conf

nano /etc/resolv.conf

then add the server IP of the openDNS


Btw, if you have any concern about speed of the DNS you may want to take a look at this post

share|improve this answer
I did this, but it's still not using OpenDNS. – Josiah Sprague Jul 10 '13 at 5:53
you restarted your board and are using Debian-server, right? If it is the case, please try to add nameserver``and nameserver` to /etc/network/interfacesthen restart your board or do /etc/init.d/networking restart. If it is still not working, please paste output of dig – Angs Jul 10 '13 at 6:07
Should the IPs be in both /etc/resolv.conf and /etc/network/interfaces? – Josiah Sprague Jul 10 '13 at 15:36
The /etc/resolv.conf entry is created from the /etc/network/interfaces config. Note: this works only if you're using static network configuration. If you're using dynamic settings, then you'll need to change the settings provided by the DHCP server. – joat Jul 13 '13 at 13:58

Add this line into file /etc/dhcp/dhclient.conf:

option domain-name-servers,,

Then it will work.

share|improve this answer
The first IP address is a random private address. The other two are the IP addresses of Google servers - not OpenDNS. – Anthony Geoghegan Sep 1 '15 at 9:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.