2
As is common with home routers, my router, an ASUS RT-N66U, is configured to act as a caching nameserver for my LAN. It looks like the router uses dnsmasq for name service. The router also offers DHCP service, and allows reserving IP addresses for particular MAC addresses -- local-only, RFC 1918 addresses of course. Conveniently, this router allows name resolution for those reserved IP addresses. So, at the command line, "ping mykids-pc" will correctly resolve the local IP address for that device and successfully ping it.
On my Linux desktop, I have BIND configured both as a caching nameserver, and as an authoritative server for virtual machines I run on my Linux desktop. So, "ping centos.posix.test" will resolve the IP and successfully ping it.
The problem is, I can't find a way to do both conveniently at the same time. I haven't figured out how to get BIND on my desktop to use the router as a forwarder for RFC 1918 addresses, or how to configure dnsmasq on my router to use my desktop as a forwarder.
Is there a way to do this?
You can't configure a DNS server to forward requests for specific addresses, since it won't know the address until after the name gets resolved... You can, however, configure Bind9 to forward requests for specific domains, using
zone "foo" { type forward; forwarders ... };
is one possible way. – user1686 – 2012-08-24T00:33:40.860That pretty much gets at the central problem; given my current setup, I can't actually do both things at once. – bgvaughan – 2012-08-28T11:22:50.990