this post was submitted on 27 Aug 2023
4 points (100.0% liked)

Linux

55 readers
1 users here now

News, Tipps und Tricks zu Linux

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 1 points 1 year ago (2 children)

the command doesn't output anything.

[–] [email protected] 1 points 1 year ago

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.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

Then it really does not exist, strange. Maybe check where the systemd binaries are located and check if something's there, for example which systemctl and look in that directory