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

Ptits de Barbe ettavolt at gmail.com
Sat Jan 9 14:19:07 GMT 2016


At least we can see, that query[A] dupaa.com.mhouse.lh is not  
dnsmasq-initiated.

Description of ndots options in resolv.conf suggests that search paths are  
always tried. And domain is always added as one of the search paths. So,  
I'm afraid there is no way to disable local queries for complex domain  
names.
Unless you would like to patch DNS resolver in libc, of course. :)

Mikhail Morfikov <mmorfikov at gmail.com> писал(а) в своём письме Sat, 09 Jan  
2016 17:00:56 +0300:

> I've enabled the logs, but there's no visible difference between setting
> "search" or "domain" to "mhouse.lh" in the /etc/resolv.conf file. In both
> cases, it looks like this:
>
> Jan 09 14:33:30 morfikownia dnsmasq[35363]: query[A] dupaa.com from  
> 127.0.0.1
> Jan 09 14:33:30 morfikownia dnsmasq[35363]: forwarded dupaa.com to  
> 127.0.2.1
> Jan 09 14:33:35 morfikownia dnsmasq[35363]: query[A] dupaa.com from  
> 127.0.0.1
> Jan 09 14:33:35 morfikownia dnsmasq[35363]: forwarded dupaa.com to  
> 127.0.2.1
> Jan 09 14:33:36 morfikownia dnsmasq[35363]: query[A] dupaa.com.mhouse.lh  
> from 127.0.0.1
> Jan 09 14:33:36 morfikownia dnsmasq[35363]: forwarded  
> dupaa.com.mhouse.lh to 192.168.1.1



More information about the Dnsmasq-discuss mailing list