Static DNS settings broken with WAN disabled (i.e. operating as AP)
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#
Comments (3)
-
-
reporter Thank you Pedro :)
-
repo owner - changed status to resolved
router: rc: services.c: fix: Static DNS settings broken with WAN disabled (i.e. operating as AP)
- thanks to @ctrlesc: https://www.linksysinfo.org/index.php?threads/fork-freshtomato-mips.74145/page-6#post-300299
- fixes issue
#13: https://bitbucket.org/kille72/freshtomato-arm/issues/13/static-dns-settings-broken-with-wan
→ <<cset 7a6090a68924>>
- Log in to comment
Fix: https://bitbucket.org/pedro311/freshtomato-arm/commits/2e040474c701195c7740d503289c80b8b1b19f01