Kevin Fenzi writes:
So, I think if you:
disable systemd-resolved or make /etc/resolv.conf a real file, not a link. or set 'DNSStubListener=no' in /etc/systemd/resolved.conf
It will not be replaced anymore.
I did not even /have/ systemd-resolved installed.
dnf system-upgrade installed it on its own, enabled it, and /etc/resolv.conf was replaced as a result.