PDA

View Full Version : Failed to restart systemd-resolved.service: Unit systemd-resolved.service not found.



highrider420
2022-09-17, 03:42
Hello, as the title suggests this is about my resolved.conf file, I am trying to connect to the tryhackme breaching AD room to participate, but I ran into an issue, part of the steps to properly connect is to edit the DNS settings under resolved.conf. As you can see by the screenshots, the resolved.conf file exists in my system. I included the original and the edited versions for how tryhackme wants me to change it to be able to connect to the AD environment. Yet, as the output shows in the other screenshots it tells me that it doesn't exist, and it's not installed. I'm not sure what to do to resolve this issue. Below s the current version I am running of Kali. Any other info needed to help resolve this, please just let me know. I would appreciate any advice anyone can give me,

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2022.3"
VERSION_ID="2022.3"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

Trihexagonal
2022-09-23, 06:56
It's very hard to see the small print on your images, and I have never played tny of their games, but you should be using the Private IP they give you if you're connecting to their network.

Not the Public IP, which I believe appears in your shot.

Fred Sheehan
2022-10-11, 11:24
..as the title suggests this is about my resolved.conf

And there is your error, systemctl is already looking inside the systemd folder so systemd-resolved.service won't exist (the real path would be systemd/resolved.conf anyway), but resolved.service will;

systemctl restart resolved

This is what happens when you blindly follow tutorials without properly understanding what they are trying to do!

In one of your own screenshots, it tells you how to check the settings in that file, and where to find the manual for resolved.conf for more information. Hacking is 80% about the person and their knowledge, and only 20% about the tools they use. Linux is only a kernel, and the tools on top are from the GNU project, which means in true UNIX fashion, they come with good manual documents already included which will help you use them correctly. Even tools you have never used before become better understand by reading the manual!
Happy hacking.