I’ve been reading posts at https://wiki.archlinux.org/index.php/Unbound to configure my Manjaro Gnome Linux install to use local DNS resolution.
I tried the two following options, but I do continue to see Network Manager overwrite the /etc/resolv.conf file:
(1) chattr +i /etc/resolv.conf
(2) Putting the preferred dns of 127.0.0.1 in the /etc/systemd/resolved.conf file but I notice the /etc/resolv.conf file continues to be over written by Network Manager. Maybe this is expected?
That being said, I found the following solution. I’d like to get some feedback on whether this is the best option for someone using Manjaro:
By default, NetworkManager Linux dynamically updates the
/etc/resolv.conf file with the DNS settings from active NetworkManager connection profiles. This section describes different options on how to disable this feature to manually configure DNS settings in
(1) Create the 90-dns-none.conf configuration file.
sudo touch /etc/NetworkManager/conf.d/90-dns-none.conf
(2) Add the following text to the 90-dns-none.conf file.
sudo nano /etc/NetworkManager/conf.d/90-dns-none.conf
(3) Update the /etc/resolv.conf file to use local system for DNS resolution
sudo nano /etc/resolv.conf
(4) Restart the Network Manager
systemctl reload NetworkManager