systemd-resolved configuration does not resolve any hostnames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
systemd-resolved will, unter certain circumstances create local only DNS resolution:
# host google.com
;; connection timed out; no servers could be reached
looking at what is going on behind:
# cat /etc/resolv.conf (linked to /run/resolvconf
nameserver 127.0.0.1
nameserver 127.0.0.53
search <search1> <search2> <search3> DOMAINS
# systemd-resolve --status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=
resolv.conf mode: foreign
Current DNS Server: 127.0.0.1
DNS Servers: 127.0.0.1
DNS Domain: DOMAINS <search1> <search2> <search3>
Link 2 (eth0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
DNS Domain: DOMAINS
Link 3 (virbr0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
Link 4 (vmnet1)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
Link 5 (vmnet2)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
Link 6 (vmnet8)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
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
ProcVersionSign
Uname: Linux 5.8.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu57
Architecture: amd64
CasperMD5CheckR
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
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to hirsute on 2018-11-23 (815 days ago)
dmi.bios.date: 11/10/2011
dmi.bios.release: 2.15
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: J01 v02.15
dmi.board.name: 1497
dmi.board.vendor: Hewlett-Packard
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.family: 103C_53307F G=D
dmi.product.name: HP Compaq 6200 Pro MT PC
dmi.product.sku: XL504AV
dmi.sys.vendor: Hewlett-Packard
mtime.conffile.
> # 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).