Um, alternatively, if your /etc/resolv.conf gets changed automatically, you can prevent access to modifying it (Even root can't modify) by giving:
sudo chattr +i /etc/resolv.conf
(You can undo this by manually giving -i later, if you need something changed within)
Um, alternatively, if your /etc/resolv.conf gets changed automatically, you can prevent access to modifying it (Even root can't modify) by giving:
sudo chattr +i /etc/resolv.conf
(You can undo this by manually giving -i later, if you need something changed within)