[Dnsmasq-discuss] local domain added when forwarding to upstream DNS servers

Lixus Zoran gps at muellers.ms
Tue May 5 15:38:40 BST 2009


Hello Simon,
 
> You seem to have both /etc/resolvconf/resolv.conf.d/upstream and 
> /var/run/dnsmasq/resolv.conf 

Yes, that is correct, i have both files:
-rw-r--r-- 1 root root 24 2009-04-30 11:06 /etc/resolvconf/resolv.conf.d/upstream
-rw-r--r-- 1 root root 21 2009-05-04 16:04 /var/run/dnsmasq/resolv.conf

> set as resolv files but you don't mention 
> the second one in your initial post. 

I wasn't aware that /var/run/dnsmasq/resolv.conf exists.
I explicitly specified only one singel resolve file in /etc/dnsmasq.conf
resolv-file=/etc/resolvconf/resolv.conf.d/upstream
so I am wondering why /var/run/dnsmasq/resolv.conf is checked instead.

Furthermore I have no idea where /var/run/dnsmasq/resolv.conf is coming from.
It contains 127.0.0.1 and looks like it is created with 127.0.0.1 each time dnsmasq gets restarted.
  # cat /var/run/dnsmasq/resolv.conf
  nameserver 127.0.0.1
I suspect that this is related to the debian packages resolvconf and/or ifupdown.

However I now removed the package resolvconf 
and manually edited /var/run/dnsmasq/resolv.conf to "nameserver 85.214.73.63" 
and removed the "resolv-file=/etc/resolvconf/resolv.conf.d/upstream" line from my dnsmasq.conf

And now it is working fine
Thanks a lot for your help!

Regards 
Lixus






More information about the Dnsmasq-discuss mailing list