Resolving resolv.conf
I still haven’t decided on which router to go with the AT&T gateway (holding out for black friday. sort of. I am cash strapped.) and have been forced to enter pi-hole DNS address on my devices like a neanderthal. My laptop is where I spend my time mostly and although uBlock origin and other add-ons on firefox takes care of most of the ads and trackers, I noticed some ads sneaking in through which should have been caught by the Pi.
The file to make the DNS change is /etc/resolv.conf
and was losing my DNS changes because NetworkManager was overwriting it. Few seconds on the Arch wiki and I had an answer to prevent this from happening. The file /etc/resolv.conf
needs to be made immutable by:
sudo chattr +i /etc/resolv.conf
And when I try to edit the file after running the command:

Not even the root
user can change the file unless its reverted like this.
sudo chattr -i /etc/resolv.conf
Pretty neat.
Day 40 - Join Me in #100DaysToOffload