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

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.


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
  • This answer works for me, thank you so much! – user2875289 May 11 at 1:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.