Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created November 18, 2023 17:56
Show Gist options
  • Save yordanoweb/c92dc2a0e991de04d35fc3f1fa7c1bf2 to your computer and use it in GitHub Desktop.
Save yordanoweb/c92dc2a0e991de04d35fc3f1fa7c1bf2 to your computer and use it in GitHub Desktop.
Free access to resolv.conf

Check that resolv.conf is inmutable

lsattr /etc/resolv.conf

If it is, the previous command will output something like this:

----i---------e------- /etc/resolv.conf

Then remove the inmutability state with:

chattr -i /etc/resolv.conf

After that, you are able to destroy resolv.conf :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment