summaryrefslogtreecommitdiff
path: root/etc/NetworkManager
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-03-12 06:09:56 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-03-12 06:09:56 -0700
commit8b5ca620f48287d6ada5c075a74787096a6634c3 (patch)
treeb00a9671411ff0efed2649045dc43240219d3a50 /etc/NetworkManager
parent48fe68a506ad9d9d5563327dce75591301ce8336 (diff)
update
Diffstat (limited to 'etc/NetworkManager')
-rw-r--r--etc/NetworkManager/conf.d/NetworkManager.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NetworkManager/conf.d/NetworkManager.conf b/etc/NetworkManager/conf.d/NetworkManager.conf
new file mode 100644
index 00000000..bf2a3802
--- /dev/null
+++ b/etc/NetworkManager/conf.d/NetworkManager.conf
@@ -0,0 +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