Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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

nameserver  208.67.222.222
nameserver 208.67.220.220

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
1  
you restarted your board and are using Debian-server, right? If it is the case, please try to add nameserver 208.67.220.220``and nameserver 208.67.222.222` 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 google.com –  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

Your Answer

 
discard

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.