systemd-resolved configuration does not resolve any hostnames

Bug #1915746 reported by Thomas Schweikle
This bug affects 1 person
Affects Status Importance Assigned to Milestone
resolvconf (Ubuntu)

Bug Description

systemd-resolved will, unter certain circumstances create local only DNS resolution:

# host
;; connection timed out; no servers could be reached

looking at what is going on behind:

# cat /etc/resolv.conf (linked to /run/resolvconf/resolv.conf)
search <search1> <search2> <search3> DOMAINS

# systemd-resolve --status
         Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: foreign
Current DNS Server:
       DNS Servers:
        DNS Domain: DOMAINS <search1> <search2> <search3>

Link 2 (eth0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
    DNS Domain: DOMAINS

Link 3 (virbr0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (vmnet1)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 5 (vmnet2)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 6 (vmnet8)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

This is a useless configuration: dnsmasq asks systemd-resolvd, systemd-resolvd asks dnsmasq. Without ever going to any of the upstream servers. One of them: systemd-resolvd or dnsmasq shall ask upstream servers. But non of them does.

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: systemd 247.1-4ubuntu1
ProcVersionSignature: Ubuntu 5.8.0-36.40+21.04.1-generic 5.8.18
Uname: Linux 5.8.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu57
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Mon Feb 15 19:16:05 2021
InstallationDate: Installed on 2014-01-31 (2572 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
MachineType: Hewlett-Packard HP Compaq 6200 Pro MT PC
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.8.0-36-generic root=UUID=de4af024-5d59-4f85-b5ca-11f17f085706 ro rootflags=subvol=@ consoleblank=0 video=DP-1:e,HDMI-1:e
SourcePackage: systemd
UpgradeStatus: Upgraded to hirsute on 2018-11-23 (815 days ago) 11/10/2011
dmi.bios.release: 2.15
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: J01 v02.15 1497
dmi.board.vendor: Hewlett-Packard
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvrJ01v02.15:bd11/10/2011:br2.15:svnHewlett-Packard:pnHPCompaq6200ProMTPC:pvr:rvnHewlett-Packard:rn1497:rvr:cvnHewlett-Packard:ct6:cvr: 103C_53307F G=D HP Compaq 6200 Pro MT PC
dmi.product.sku: XL504AV
dmi.sys.vendor: Hewlett-Packard
mtime.conffile..etc.systemd.resolved.conf: 2021-02-15T19:09:12.129281

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Dan Streetman (ddstreet) wrote :

> # cat /etc/resolv.conf (linked to /run/resolvconf/resolv.conf)

resolvconf has been discouraged for a while; you should remove it, and have resolv.conf symlink to the systemd-resolved stub-resolv.conf file.

Even if you need to keep it, this isn't a systemd bug, it would be a bug in resolvconf (or possibly just a local misconfiguration).

affects: systemd (Ubuntu) → resolvconf (Ubuntu)
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.