5
submitted 1 year ago by Knuschberkeks@feddit.de to c/linux@feddit.de

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.

top 6 comments
sorted by: hot top controversial new old
[-] EddyBot@feddit.de 4 points 1 year ago
[-] nerdovic@feddit.de 3 points 1 year ago

Kinda strange that it's not installed by default. Maybe the VPS runs dnsmasq, OP maybe check that before installing.

[-] nerdovic@feddit.de 3 points 1 year ago* (last edited 1 year ago)

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 2 points 1 year ago

the command doesn't output anything.

[-] nerdovic@feddit.de 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.

[-] nerdovic@feddit.de 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

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

Linux

1647 readers
1 users here now

News, Tipps und Tricks zu Linux

founded 2 years ago
MODERATORS