Hi, I have a wireguard server, and I connect to it from other networks. I start it by running sudo systemctl start wg-quick@wg0, and it fully works.
The issue comes after I suspend, because after suspend, Im still connected to wireguard, my IP is from the wireguard server, and I can access services on it, but the DNS is back to normal router servers and not the wireguard DNS servers. Looking into it, I found that when starting wireguard, resolvconf writes the correct wireguard servers to /etc/resolv.conf, but after suspend NetworkManager overrides it with the router one. Any way to fix this? I have tried to clear the DNS servers from NetworkManager and disable automatic DNS, but networkmanager just overrides it with nothing but a comment.