Static DNS settings broken with WAN disabled (i.e. operating as AP)

Issue #13 resolved
Mark Smith created an issue

Use case: using router as an access point (only) while still using DNS lookups for NTP etc

Pertinent settings: LAN DHCP server disabled and static IP assigned to LAN with correct subnet and mask WAN set to disabled WAN to LAN ports bridged (testing indicates this is not pertinent to the issue but included for completeness) Default Gateway set to the correct value for the network Static DNS entries set correctly (one or both - no difference)

Symptoms: Cannot do dns lookups from console or in the GUI i.e. tomatoanon fails, ntp fails

root@wifi:/tmp/etc# nslookup www.google.com Server: 127.0.0.1 Address 1: 127.0.0.1 localhost

nslookup: can't resolve 'www.google.com' root@wifi:/tmp/etc#

root@wifi:/tmp/etc# cat /tmp/etc/resolv.conf nameserver 127.0.0.1 root@wifi:/tmp/etc# cat /tmp/etc/dnsmasq.conf pid-file=/var/run/dnsmasq.pid resolv-file=/etc/resolv.dnsmasq addn-hosts=/etc/dnsmasq dhcp-hostsfile=/etc/dnsmasq expand-hosts min-port=4096 stop-dns-rebind rebind-localhost-ok interface=br0 dhcp-lease-max=255 dhcp-authoritative

root@wifi:/tmp/etc# cat /etc/resolv.dnsmasq root@wifi:/tmp/etc#