diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-01 22:00:54 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-01 22:00:54 -0800 |
commit | 60ac0d11f9412ba286fe78fa7f9a35904db1e27e (patch) | |
tree | 84208ed330d387bdf6f47d601fbf70e6c6fc9349 /etc/NetworkManager/conf.d/NetworkManager.conf | |
parent | e712d79f37b497b0e0461c5e59a0635415f24474 (diff) |
update
Diffstat (limited to 'etc/NetworkManager/conf.d/NetworkManager.conf')
-rw-r--r-- | etc/NetworkManager/conf.d/NetworkManager.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NetworkManager/conf.d/NetworkManager.conf b/etc/NetworkManager/conf.d/NetworkManager.conf index db6c2c90..fc993b0c 100644 --- a/etc/NetworkManager/conf.d/NetworkManager.conf +++ b/etc/NetworkManager/conf.d/NetworkManager.conf @@ -1,3 +1,9 @@ +# If set dns=none and use mullvad vpn, /etc/resolv.conf will have a `search xxx.yyy` line at the end. I don't know why but it seems that line is needed to resolve and connect to xxx.yyy. +# If not set dns=none and not use mullvad vpn, NetworkManager will copy router's DNSes to /etc/resolv.conf and overwirte it which I don't want. There's multiple ways to prevent it: set immutable file attribute, dns=none in NetworkManager.conf, or /etc/resolv.conf.head and /etc/resolvconf/resolv.conf.d/head (need resolvconf?). I only tested dns=none way. The weired thing is in this case `search xxx.yyy` is not needed to reach xxx.yyy [main] # https://wiki.archlinux.org/title/NetworkManager#Unmanaged_/etc/resolv.conf dns=none + +#[connection] +# connection.mdns=2 is not default and for me it is not needed for mdns to work (arch wiki says needed, I don't know why) +#connection.mdns=2 |