OpenWrt Forum Archive

Topic: Enable OpenDNS in Kamikaze

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

First, a little background...

Many of us like OpenDNS because you can configure it to *not* present a help page when trying to connect to a non-existent domain name.  Earthlink's DNS, for example, will resolve non-existent domain names so that they can direct you to a help page.

This really sucks if you need to be sure a domain name is good or not.

Anyway, the easiest, cleanest way to work around this in Kamikaze:

Create a file called /etc/resolv.conf.opendns

in that file, put:

nameserver 208.67.222.222
nameserver 208.67.220.220

Now, in /etc/dnsmasq.conf, change the line:

resolv-file=/tmp/resolv.conf.auto

to

resolv-file=/etc/resolv.conf.opendns

...and reboot.

This will work for anytime you need to *not* use the DNS servers provided by your ISP.

Enjoy!

Thanks a lot for the tip !

I am running an ASUS WL-500W with OpenWrt Kamikaze 7.09/X-WRT and I can't get this to work, after the changes are done I can't access the web without forcing manually a DNS address, did anyone else had this problem?

Thanks

Hello,

I did this for my work around since the first post didnt work for me on my Asus 500gp.

edit /etc/rc.d/S60dnsmasq

add the following to DNS_SERVERS=""

DNS_SERVERS="208.67.222.222 208.67.220.220"

save the file then run
/etc/rc.d/S60dnsmasq restart

check resolv.conf

root@OpenWrt:/etc/rc.d# cat /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 127.0.0.1
root@OpenWrt:/etc/rc.d#

should now have setup openDNS on openwrt

(Last edited by digitalexpl0it on 16 Aug 2009, 05:11)

The discussion might have continued from here.