OpenWrt Forum Archive

Topic: Google DNS with DHCP WAN on Kamikaze

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

Following the announcement here,

    http://googleblog.blogspot.com/2009/12/ … c-dns.html

What's the best way to configure Kamikaze to use this as dnsmasq's upstream router, but still use udpchc to get the external (wan) address?  In my case, I'm on RoadRunner.  My WAN port still needs to be DHCP, but would rather use 8.8.8.8 for my DNS.

--C

a. Edit /etc/init.d/dnsmasq

b. Change:

        DNS_SERVERS=""
    to
        DNS_SERVERS="8.8.8.8 8.8.4.4"

c. Reboot.

d. Test:

        $ nslookup google.com

(Last edited by DanSF on 7 Dec 2009, 18:48)

In recent Kamikaze version (8.09.1+) it is also possible to override the DHCP provided DNS servers using the "option dns" directive in the corresponding interface section.

(Last edited by jow on 6 Dec 2009, 00:40)

I tried that on 8.09.2 RC2 without success:

edit /etc/config/network

add to WAN configuration:
    option dns      "8.8.8.8 8.8.4.4"

It looks cleaner and maybe it's in trunk or will be in 8.09.2 final.

"option dns" only works on static interfaces, so if your wan interface is proto dhcp or proto pppoe for instance, the dns option will be ignored.

Try setting the dns option on your static lan interface instead.

Regards,
Niels Böhm

If I have static ip wan connection, and also static addresses (no dhcp) on lan side, for which interface (lan or wan) it is best to assign "option dns"?  is there any difference?

You can assign it to wan then.

The discussion might have continued from here.