5

I'd like to start using systemd-resolved on Oracle Linux 7.6.

I've installed systemd-networkd and systemd-resolved. I've enabled these services and I've disabled network and NetworkManager.

From the possible working modes I'd like to use systemd-resolved as a local resolver and for the compatibility reasons I'd like to link /etc/resolv.conf to /run/systemd/resolve/stub-resolv.conf which is supposed to point to nameserver 127.0.0.53.

However the /run/systemd/resolve/stub-resolv.conf file is missing in my installation. Would you please be able to tell why? /run/systemd/resolve/resolv.conf is present though.

1 Answer 1

10

Sorry, i am late to the party, but maybe this will help others. I had the same problem, and actually, the /run/systemd/resolv directory was missing.

Then I realized that systemd-resolved.service was not running. For some reason, it got disabled.

So I had to simply just bring it up again.

sudo systemctl enable --now systemd-resolved.service
3
  • This answer works for me, thank you so much! May 11, 2021 at 1:49
  • Error: Failed to enable unit: Unit file systemd-resolved.service does not exist. What to do?!
    – Porcupine
    Jan 10 at 9:16
  • Wow, finally issue resolved. For many days, i was looking for this. Thanks Aug 10 at 13:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .