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,677
Reaction score
1,296
Credits
11,063
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
415
Reaction score
414
Credits
2,862
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.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Staff online


Top