From 9bad440d78af54d7506f2c64903ac37bedb409a8 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 10 Mar 2023 05:46:30 -0800 Subject: try use vpn, so no need some DNS settings --- etc/NetworkManager/conf.d/NetworkManager.conf | 9 --------- etc/resolv.conf | 1 - 2 files changed, 10 deletions(-) delete mode 100644 etc/NetworkManager/conf.d/NetworkManager.conf delete mode 100644 etc/resolv.conf diff --git a/etc/NetworkManager/conf.d/NetworkManager.conf b/etc/NetworkManager/conf.d/NetworkManager.conf deleted file mode 100644 index fc993b0c..00000000 --- a/etc/NetworkManager/conf.d/NetworkManager.conf +++ /dev/null @@ -1,9 +0,0 @@ -# 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 diff --git a/etc/resolv.conf b/etc/resolv.conf deleted file mode 100644 index 8dda3fc0..00000000 --- a/etc/resolv.conf +++ /dev/null @@ -1 +0,0 @@ -nameserver 1.1.1.1 -- cgit v1.2.3-70-g09d2