On Tue, 29 Sep 2020 17:12:51 +0100 Mark Rogers mark@more-solutions.co.uk allegedly wrote:
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.)
Try adding your local addresses to the static hosts file on the router and make sure that your resolv.conf (or whatever resolver routines you use) point to the openwrt router and that router can correctly resolve local addresses.
I have a siilar setup, but I have two separate internal networks, each with their own DNS server running DNSmasq (and stubby for DNS encryption) I have no trouble resolving internal addresses.
Mick
--------------------------------------------------------------------- Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 https://baldric.net/about-trivia ---------------------------------------------------------------------