Best way to fix VPNs that don't work with systemd-resolved

Honestly, I don’t think there is. I’ve reverted to NetworkManager for DNS on all of my Fedora machines and that fixed all my resolution issues.

Unfortunately, it’s not quite as simple as disabling the service. To do this, you need to set DNS to “default” in the /etc/NetworkManager config*, systemctl disable --now systemd-resolved, delete the /etc/resolv.conf symlink, then systemctl restart NetworkManager and you should be good to go from there.

* To set this in NetworkManager, put this in /etc/NetworkManager/conf.d/dns.conf :

[main]
dns=default
1 Like