How to Update resolv.conf on Ubuntu
linuxhint.com › update-resolv-conf-on-ubuntuHow to Update “/etc/resolv.conf” File This file is managed by a system service called systemd-resolved (for providing network name resolution to local applications) and can be updated by network service daemons and also manually by hand. But manual changes are overwritten on system or network reboot by various sources like: The resolvconf program
resolv.conf - Debian Wiki
wiki.debian.org › resolvThis approach will render /etc/resolv.conf immutable so that it cannot be changed, regardless of what packages are installed or what tries to modify it. rm -f /etc/resolv.conf editor /etc/resolv.conf chattr +i /etc/resolv.conf Obviously, you will need to put the appropriate content into the file before setting the immutable bit.