After upgrading from Xubuntu 16.04 to 16.10, DNS lookups start failing after an amount of time, restarting dnsmasq appears to temporarily resolve the issue, but I'm forever restarting it throughout the day.
When the lookups stop working, Chrome gives me one of the following errors:
"ERR_NAME_NOT_RESOLVED", "DNS_PROBE_FINISHED_BAD_CONFIG", "DNS_PROBE_FINISHED_NXDOMAIN";
This is for both sites on the Internet and web interfaces served by other machines on my local network; if I try ssh to another machine on my network (e.g. my DNS server), I get the following:
➜ ~ ssh dns ssh: Could not resolve hostname dns: Name or service not known
I had dnsmasq installed locally when running 16.04 so that I could have a wildcard DNS entry to ease development work (*.dev in my browser for different projects). My
/etc/dnsmasq.conf looks like this:
listen-address=127.0.0.1 bind-interfaces address=/dev/127.0.0.1
From what I understand, dnsmasq is installed by default on 16.10 in order to offer a local DNS cache, could there be some conflicting config somewhere that's breaking things?
I've been reading a bunch of solutions for similar DNS issues experienced by others, but none of them appear to be working for me. One was to make changes to
/ets/nsswitch.conf (which did solve another issue I was having), of which mine currently looks like:
passwd: compat group: compat shadow: compat #hosts: files resolve [!UNAVAIL=return] dns mdns4_minimal [NOTFOUND=return] mdns4 myhostname hosts: files resolve dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis
/etc/resolv.conf is often asked for in DNS questions, mine looks like:
# 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 nameserver 127.0.0.1
In the "Edit connections" interface for my NIC, I have my DNS servers set to
127.0.0.1, 192.168.0.254, 220.127.116.11 in IPv4 and
::1, fe80::ba27:ebff:fe78:2761 in IPv6.
I have another DNS server on my local network running dnsmasq that handles DHCP and mapping other static IPs to names - I'm not sure if this is relevant, this is the second of the IPv4/6 addresses above.
Any ideas as to what I could try to resolve this? (Other than telling cron to run
service dnsmasq restart every so often!)