I noticed that the network manager frequently changed my DNS server, so I wanted to set the immutable bit on the /etc/resolv.conf
file, which didn't work. I noticed that the /etc/resolv.conf
file is actually a symbolic link to /run/resolvconf/resolv.conf
.
Now, sudo chattr +i /run/resolvconf/resolv.conf
results in:
chattr: Inappropriate ioctl for device while reading flags on /run/resolvconf/resolv.conf
From what I can tell, this means that /run/resolvconf/
doesn't support such attributes. Is that right?
Xubuntu 15.10;
How can I write-protect my resolv.conf
file?