systemd-resolve doesn't work Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
dev_willis
Posts: 2
Joined: Mon Sep 13, 2021 2:34 pm

systemd-resolve doesn't work

Post by dev_willis »

I'm trying to enable mDNS on this device but whenever I run systemd-resolve I get the error sd_bus_open_system: No such file or directory. I can run --help and get the help screen and --version gives me this:

Code: Select all

systemd 241 (241)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid
However, --status produces the above error, as does --set-mdns. What's wrong here?

Thanks!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: systemd-resolve doesn't work

Post by Joulinar »

Hi,

by default DietPi is running with limited amount of packages. This include dbus package as well. Therefore it would need to be installed.

Code: Select all

apt update
apt install dbus
systemctl enable dbus
reboot
probably systemd-resolved service to be started as well

Code: Select all

systemctl enable systemd-resolved.service --force
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dev_willis
Posts: 2
Joined: Mon Sep 13, 2021 2:34 pm

Re: systemd-resolve doesn't work

Post by dev_willis »

Ah! That did it. Thank you! :D
Post Reply