I have my main router set up with all my local LAN IPs and names in its dnsmasq. From any computer on the network, I can ping guardian, or ping roswell and that succeeds. But I can't do that from my OpenWrt devices set up as client bridges. It works fine from computers connected TO the bridges, since they are just getting their DHCP passed through to the main router. It just doesn't work when I am logged into the client bridges themselves.
OpenWrt sets its resolv.conf to point to 127.0.0.1, so I am trying to configure the client bridges dnsmasq to pass on domainless DNS requests to the main server. I turned off "Domain Required" on the setup page, which boils down to removing "domain-needed" from the dnsmasq config. What else is needed to get this to work?
I suppose I could just manually point resolf.conf to the main router, but I'd rather figure out how to get dnsmasq configured properly. Any ideas?
I did that as part of the troubleshooting, wondering if dnsmasq was automatically adding .lan to the domain before sending it. I've added those config lines back in and no effect. Here is what happens:
root@horizon:~# ping guardian
ping: bad address 'guardian'
root@horizon:~# echo "nameserver 192.168.2.1" > /etc/resolv.conf
root@horizon:~# ping guardian
PING guardian (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=64 time=1.214 ms
64 bytes from 192.168.2.1: seq=1 ttl=64 time=4.181 ms
64 bytes from 192.168.2.1: seq=2 ttl=64 time=1.079 ms
64 bytes from 192.168.2.1: seq=3 ttl=64 time=1.934 ms
^C
--- guardian ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 1.079/2.102/4.181 ms
root@horizon:~# echo "nameserver 127.0.0.1" > /etc/resolv.conf
root@horizon:~# ping guardian
ping: bad address 'guardian'
So the upstream nameserver works fine. Just the local dnsmasq isn't passing the requests.