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
 


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).
 
Try running
Code:
sudo dpkg-reconfigure resolvconf
 
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.
 

Staff online

Members online


Top