Hi,
I have a VPS running debian 12. If I run resolvectl dns eth0 I get the output -bash: resolvectl: command not found. I thought resolvectl was part of systemd, so it should be available on a pretty much stock debian install.
Hi,
I have a VPS running debian 12. If I run resolvectl dns eth0 I get the output -bash: resolvectl: command not found. I thought resolvectl was part of systemd, so it should be available on a pretty much stock debian install.
6 Comments
EddyBot@feddit.de · 3 pts · 2y
Try installing systemd-resolved
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#systemd-resolved
seems like Debian split it into a seperate package
nerdovic@feddit.de · 2 pts · 2y
Kinda strange that it's not installed by default. Maybe the VPS runs dnsmasq, OP maybe check that before installing.
nerdovic@feddit.de · 2 pts · 2y
Maybe it's not in the $PATH? I remember having similar problems a while ago.
You could search for it
find / -name resolvectl(might take a while when searching in/), and check if the path is present in the $PATH variable.Knuschberkeks@feddit.de · 1 pts · 2y
the command doesn't output anything.
nerdovic@feddit.de · 1 pts · 2y
I just saw that there seems to be a separate package for systemd-resolved on Debian (https://packages.debian.org/search?searchon=contents&keywords=resolvectl&mode=exactfilename&suite=bookworm&arch=any), maybe check if the package systemd-resolved is actually installed.
nerdovic@feddit.de · 0 pts · 2y
Then it really does not exist, strange. Maybe check where the systemd binaries are located and check if something's there, for example
which systemctland look in that directory