[Dnsmasq-discuss] Why does dnsmasq append a local domain in DNS queries?

Ptits de Barbe ettavolt at gmail.com
Fri Jan 8 06:46:06 GMT 2016


I believe you've wrongly interpreted the log. Let me describe how do I  
understand it.
> 15:45:32.035381 IP 127.0.0.1.18520 > 127.0.2.1.5353: 1536+ A (QM)?  
> dupaa.com. (27)
Something running on your router sends request to 127.0.2.1:5353. It's  
dnscrypt there, so that most likely was a dnsmasq request.
> 15:45:37.040620 IP 127.0.0.1.18520 > 127.0.2.1.5353: 1536+ A (QM)?  
> dupaa.com. (27)
Same. Have no idea why is there a second same request.
> 15:45:38.045687 IP 127.0.2.1.5353 > 127.0.0.1.18520: 1536 ServFail 0/0/1  
> (38)
dnscrypt responded.
> 15:45:38.046118 IP 192.168.1.150.6289 > 192.168.1.1.53: 57153+ A?  
> dupaa.com.mhouse.lh. (37)
And there someone from outside of the router (192.168.1._150_) queries  
dnsmasq running on router.

To my knowledge, clients always requery their configured DNS with local  
network suffix appended in case first query wasn't resolved. This is good,  
because with small patch dnsmasq will resolve subdomains in local network  
(like aba.caba.<hostname>).
Also, though I don't see further log, I suspect that there were no  
requests like
> 15:45:32.035381 IP 127.0.0.1.18520 > 127.0.2.1.5353: 1536+ A (QM)?  
> dupaa.com.mhouse.lh. (27)
meaning dnsmasq correctly filters local network domains and doesn't query  
upstream servers for them. At least your configuration looks correct.



More information about the Dnsmasq-discuss mailing list