OpenWrt Forum Archive

Topic: trouble with dns and my bridge, do i need dnsmasq?

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

Actually dont think its dnsmasq i need. i have my wrt setup as a bridge but its wireless interface gets its ip from dhcp. i have to edit the /etc/resolv.conf file and add my nameserver to the list for me to have working dns. I tried setting the wan_dns option in nvram but then dhcp no longer works. I also tried changing the permissions of /etc/resolv.conf but thats not happening. ?

(Last edited by discord on 6 Apr 2006, 04:31)

Edit this file : /usr/share/udhcpc/default.script

and at line 39, before : ${domain:+echo search $domain} >> $RESOLV_CONF
add this : dns="$(nvram get ${interface}_dns) $dns"

Now if your wan interface is vlan1, just do in shell : nvram set vlan1_dns="x.x.x.x x.x.x.x"

do ifdown wan, and ifup wan, and its must work wink
Its work very nice for me wink

no luck right now, I'll mess around it tommorow.

The discussion might have continued from here.