systemd-resolved.service still breaks (now 20.04, since as least 16)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
There are still occurrences of this service breaking down.
At some moment the service just stops working correctly and is not able to recover.
I can reset the service by restarting it:
systemctl restart systemd-
I've also tried to set the caching off, but it still fails on me occasionally (on 18.04 as well).
There is a local DNS in the network, I would like to directly use that in stead of:
nameserver 127.0.0.53
Example:
geus@desk-02:~$ ssh smb-01
ssh: Could not resolve hostname smb-01: Temporary failure in name resolution
...
root@desk-
root@desk-
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: smb-01.lan
Address: 192.168.178.39
...
geus@desk-02:~$ ssh smb-01
geus@smb-01's password:
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemd 245.4-4ubuntu3.2
ProcVersionSign
Uname: Linux 5.4.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Sat Aug 8 17:03:50 2020
InstallationDate: Installed on 2020-05-31 (69 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Lsusb:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t:
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 480M
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /usr/lib/
[EXTENDED] /usr/lib/
2 overridden configuration files found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
To debug the systemd-resolved service, you can run
$ sudo systemctl edit systemd-resolved
and in the editor that is opened, add and save this content:
[Service] SYSTEMD_ LOG_LEVEL= debug
Environment=
then restart systemd-resolved, or reboot. Then once the problem happens again, check:
$ journalctl -b -u systemd-resolved
to see if there are any problems logged. You can check the current log also, as it may have logged some problems even without debugging enabled, although to check the logs for previous boots you should leave the -b parameter off.
If any problem was logged you can paste that part of the log here, or just attach the full log.