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

Linux

1786 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
[–] nerdovic@feddit.de 3 points 2 years ago* (last edited 2 years ago) (3 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.

[–] Knuschberkeks@feddit.de 2 points 2 years ago (2 children)

the command doesn't output anything.

[–] nerdovic@feddit.de 1 points 2 years 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.

load more comments (1 replies)
load more comments (1 replies)