[Dnsmasq-discuss] Where does dnsmasq get upstream DNS servers by default?

Uwe Schindler uwe at thetaphi.de
Sun May 29 22:49:22 UTC 2022


Hi Chris
> However this brings me back to where my original question came from, since there
> is no 'nameserver' entry pointing at localhost will dnsmasq cache?  Or do I have
> to manually add a 'nameserver 127.0.0.1' somewhere?

Dnsmasq will cache for requests coming from localhost (like local tools, 
ssh,...) and also from other devices on your local network. Local 
programs on same machine like SSH, browsers, webservers, mailservers,... 
work because of your /etc/resolv.conf file: It points to  dnsmasq.

Dnsmasq caches and forwards unknown requests to the server provided by 
NetworkManager (which does similar stuff like resolvconf package). 
Somebody should change the /etc/default/dnsmasq comment and say 
"resolvconf or NetworkManager").

Uwe

>> Am 29.05.2022 um 16:18 schrieb Chris Green:
>>> With the default /etc/default/dnsmasq file on Ubuntu it says:-
>>>
>>>       # If the resolvconf package is installed, dnsmasq will use its output
>>>       # rather than the contents of /etc/resolv.conf to find upstream
>>>       # nameservers. Uncommenting this line inhibits this behaviour.
>>>       # Note that including a "resolv-file=<filename>" line in
>>>       # /etc/dnsmasq.conf is not enough to override resolvconf if it is
>>>       # installed: the line below must be uncommented.
>>>       #IGNORE_RESOLVCONF=yes
>>>
>>> I'm pretty sure I don't have resolvconf (or openresolv) so, in this
>>> case how does dnsmasq find the upstream servers.  /etc/resolv.conf is :-
>>>
>>>       # Generated by resolvconf
>>>       nameserver 127.0.0.1
>>>       search zbmc.eu
>>> Which is a bit odd since I don't have resolvconf.
>>>
>>> The system works OK, DNS works, but I'd like to know how.
>>>
>>>
>> -- 
>> Uwe Schindler
>> Achterdiek 19, D-28357 Bremen
>> https://www.thetaphi.de
>> eMail: uwe at thetaphi.de
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

-- 
Uwe Schindler
Achterdiek 19, D-28357 Bremen
https://www.thetaphi.de
eMail: uwe at thetaphi.de




More information about the Dnsmasq-discuss mailing list