System-resolved.service does not exist

nwenner76

New Member
Joined
May 28, 2021
Messages
1
Reaction score
0
Credits
12
New to linux.
I can ping world, but no DNS resolution.
Research led me to many rabbit trails, and now system tells me:
Failed to enable unit: Unit file sysemd-resolved.service does not exist.

This is after i typed: sudo systemctl enable systemd-resolved
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,017
Reaction score
691
Credits
5,145
Are using DHCP to get your IP address?

If you...

cat /etc/resolv.conf

does it list any nameservers? (along with their IP addresses).

If you are using static IP's, you will have to manually add the DNS server IPs.
(usually this is done via nmcli, or in the interface-ifcfg files).
 

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
274
Reaction score
274
Credits
1,905
Put the DNS servers you are wanting to use in:
/etc/systemd/resolved.conf
There are examples in the file that you can use.
Save it then reboot.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top