my dnsmasq configuration got broken after upgrading to Ubuntu 18.04 from 16.04.
- systemd-resolved is enabled and running
- dnsmasq is enabled and running
Any DNS query to the outside world will hang for some 30 seconds before succeeding. Queries to my local hosts (anything.mylocal) will succeed immediately.
If I stop dnsmasq (i.e.
service dnsmasq stop), then all DNS queries to the outside world will work immediately (but .mylocal, of course, not).
[main] ... # dns=dnsmasq ...
Uncommenting the dns= line will prevent ANY dns query.
[Resolve] #DNS= #FallbackDNS= #Domains= #LLMNR=no #MulticastDNS=no #DNSSEC=no #Cache=yes #DNSStubListener=no
This file is a link to: ../run/resolvconf/resolv.conf, which contains:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 127.0.0.53
passwd: compat systemd group: compat systemd shadow: compat hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis
One noticeable difference with the output of
- With dnsmasq running, the first line in Global reads:
DNS Servers: 127.0.0.1
- With dnsmasq stopped, this line is absent, there is no global DNS Server, and the first useful server is defined in the Link 2 section, which specifies my default gateway (192.168.1.1)
Any help is greatly appreciated :)