Thanks @RMerlin, although it begs the question "If stop-dns-rebind is a good thing why isn't it enabled by default? What's the catch?".
The way dnsmasq implements this is by rejecting any resolved IP coming from an upstream server and that's within a non-routable block. So if for instance you somehow had mynas.mydomain.com pointing to 192.168.1.200, dnsmasq would prevent its resolution. Granted, using a public DNS zone to resolve a LAN IP is generally not a good idea, however it's not that uncommon, and would cause hard-to-troubleshoot problems (I actually do it for a customer of mine, using a delegated subdomain).
There's an example on how it looks like when dnsmasq tries to resolve a hostname pointing to 192.168.1.1, with this option enabled:
Code:
Jun 21 17:48:18 dnsmasq[29899]: possible DNS-rebind attack detected: testrb.lostrealm.ca
Name resolution attempt that I've done from my desktop returned an error message.
So since dnsmasq's solution is to partly break the way name resolution works, it's not a good idea to enable it by default. For this reason, while I do intend to add a webui setting to enable/disable it, it will default to be disabled.
Last edited: