[Dnsmasq-discuss] Where does dnsmasq get upstream DNS servers by default?
Chris Green
cl at isbd.net
Sun May 29 17:29:14 UTC 2022
On Sun, May 29, 2022 at 05:29:41PM +0200, Uwe Schindler via Dnsmasq-discuss wrote:
[snip - useful explanation, thank you]
Ah, now I see how it's working. I have a file in /etc/dnsmasq.d which
contains:-
resolv-file=/run/NetworkManager/no-stub-resolv.conf
... and /run/NetworkManager/no-stub-resolv.conf is:-
# Generated by NetworkManager
search zbmc.eu
nameserver 192.168.1.2
(and I have a fully configured dnsmasq running on 192.168.1.2 with links up
to upstream nameservers)
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?
> 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
--
Chris Green
More information about the Dnsmasq-discuss
mailing list