Created
October 23, 2023 20:34
-
-
Save bernhardkaindl/30e17204ee730bcbd91a62694e9a2319 to your computer and use it in GitHub Desktop.
Debian/Ubuntu: Prevent changes to /etc/resolv.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.cyberciti.biz/faq/dhclient-etcresolvconf-hooks/ | |
chattr +i /etc/resolv.conf | |
/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate | |
make_resolv_conf(){ | |
: | |
} | |
chmod +x /etc/dhcp/dhclient-enter-hooks.d/nodnsupdate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment