I have dnsmasq setup for my network, the server it runs on is configured like this:
(eth1 is my external interface)
The server uses itself to look up addresses, dnsmasq is configured to use a different resolv file than the default.
So whether the query comes from the network or the server dnsmasq will be doing all the work and using OpenDNS to resolve it, then it will cache the result.
The problem is when the server tries to resolve hosts on the local domain. In my log file I see this:
Dec 14 13:01:01 dnsmasq: query[AAAA] server.localdomain from 127.0.0.1
Dec 14 13:01:01 dnsmasq: forwarded server.localdomain to 22.214.171.124
From the documentation I have read about dnsmasq it should look up the cache first, then the /etc/hosts file next, then the DHCP leases file and lastly it should query the external dns server.
My question is, how do I stop dnsmasq forwarding the query's for the localdomain to the external server and resolve them itself?