I have the following configuration: - External hosted DNS for *.example.com - Some hosts point to "local" IP addresses, eg test.example.com => 192.168.0.100
If I use dig or nslookup on my laptop, test.example.com resolves correctly to 192.168.0.100. But if I put that into my web browser I cannot access the site (to be clear here: 192.168.0.100 is on my local network and I can access it using its IP.) Chrome reports a DNS lookup error.
My home network uses OpenWRT (on a Pi4) and if I use the network diagnostics on that to lookup test.example,com it fails. (It works for hosts configured with routable addresses, but not for any on my local network.) OpenWRT uses dnsmasq.
Any suggestions how I can get this to work? Or even just why it doesn't?
(Yes I know it's an odd configuration! But I am not aware of a reason why it shouldn't work and I've never had a problem with it before.)