jkl555 DD-WRT Novice
Joined: 14 Mar 2011 Posts: 8
|
Posted: Sun Oct 09, 2011 12:09 Post subject: [SOLVED] Try to get dnsmasq to resolve hostname |
|
I have a E3000 running DD-WRT v24-sp2 (04/13/11) big - build 16785. Previously I had a E1000 but still have the same problem on the set up.
The problem is I can't get the router itself to resolve the hostname by itself. For example,
root@E3000:/tmp# ping yahoo.com
ping: unknown host
My setting (under Service tab)
I have localDNS box enabled
I have "dhcp-option=6, 8.8.8.8"
I also add "8.8.8.8" to Static DNS 1 under Setup tab but no use.
I can see under /tmp these settings but that doesn't force the router to resolve anything
root@E3000:/tmp# cat resolv.dnsmasq
nameserver 8.8.8.8
nameserver 64.71.255.198
root@E3000:/tmp# cat resolv.conf
nameserver 192.168.1.1
Here is the dnsmasq.conf if it helps
root@E3000:/tmp# cat dnsmasq.conf
interface=br0,br1
resolv-file=/tmp/resolv.dnsmasq
all-servers
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=104
dhcp-option=lan,3,192.168.1.1
dhcp-option=br1,3,192.168.2.1
dhcp-authoritative
dhcp-range=lan,192.168.1.100,192.168.1.149,255.255.255.0,1440m
dhcp-range=br1,192.168.2.100,192.168.2.150,255.255.255.0,1400m
stop-dns-rebind
dhcp-option=6, 8.8.8.8
Finally the only work around is to edit /etc/resolv.conf manually to add the 8.8.8.8 but it only lasts until the next reboot.
I wonder if I am missing something simple in the set up. Any help will be appreciated.
Thanks.
Last edited by jkl555 on Mon Oct 10, 2011 22:46; edited 1 time in total |
|