Local DNS lookups go out to the internet
Migrated from: https://tracker.clearos.com/view.php?id=870
Reported by: Nick Howitt
When monitoring my OpenDNS log I saw a lot of DNS queries with howitts.lan at the end of the URL going out to OpenDNS. howitts.lan is my internal LAN so queries should not go out into the internet. Please see this thread: http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,28/func,view/id,33723/#33723. [^]
I fixed mine by adding my LAN domain to /etc/dnsmasq:
local=/howitts.co.uk/
Bug comment 1:
Note this can give issues if you use the same domain on your LAN as your public domain and you may then need to set up extra rules for things like domainkeys to resolve correctly if you still want to pick up the value from your external DNS. As an example, I now have:
local=/howitts.co.uk/
# Allow domainkey queries out to the external DNS provider
local=/_domainkey.howitts.co.uk/#
to allow me to set and validate my domainkey externally.