systemd-resolve: fallback from resolve causes lookup of local network hosts to fail

Bug #1641468 reported by Joseph Yasi
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading to Ubuntu 16.10 from 16.04, DNS resolution of hosts on my local network fails.

The hosts line in /etc/nsswitch.conf is:
hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns mdns4

If I change it to:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

I can resolve hosts on my local network. Appending .local to the hostname also allows DNS resolution since systemd-resolve returns a different error for that case.

Ex:
systemd-resolve rt-ac66u
rt-ac66u: resolve call failed: All attempts to contact name servers or networks failed

systemd-resolve rt-ac66u.local
rt-ac66u.local: resolve call failed: No appropriate name servers or networks for name found

"dig rt-ac66u" returns the correct ip.

Tags: resolved
Martin Pitt (pitti)
tags: added: resolved
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Yasi (joe-yasi) wrote :

I've just upgraded to zesty, and this problem is still present. Since systemd-resolved is sticking a 127.0.0.53 nameserver in resolv.conf, the problem is worse. To work around it, I have to replace resolv.conf with the old dnsmasq 127.0.1.1 address instead to prevent DNS lookups from going through systemd-resolved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.