Once upon a time, Gordon Messmer <gordon.messmer(a)gmail.com> said:
systemctl disable systemd-resolved && systemctl stop
systemd-resolved
BTW for quite some time, this can just be "systemctl disable --now
<service>".
rm /etc/resolv.conf
systemctl restart NetworkManager
As documented in the original change proposal:
https://fedoraproject.org/wiki/Changes/systemd-resolved
If that's what required, then an update to systemd-resolved is in order,
since the generated resolv.conf says:
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
Nothing about disabling/stopping/restarting any services.
--
Chris Adams <linux(a)cmadams.net>