Prevent Changing resolv.conf
dhcp linux ip- Protect the /etc/resolv.conf file
chattr +i /etc/resolv.conf
- Remove the protect attribute
chattr -i /etc/resolv.conf
- Check the protect attribute
lsattr /etc/resolv.conf
Written on August 20, 2019