#[SOLVED] NetworkManager keeps overriding /etc/resolv.conf after suspend

8 messages · Page 1 of 1 (latest)

hidden musk
#

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.

hidden musk
#

bump

gilded lion
#

nmtui then edit connections blabla you know the drill i know youre smart enough to do the rest

viral flume
#

Note: after chattr if you want to edit it do:- chattr -i /etc/resolv.conf first

hidden musk
orchid basinBOT
#

shashwat20 received a thank you cookie!