by octoberfranklin · 4y ago · 0 comments
echo 'nameserver 127.0.0.1' > /etc/resolv.conf
chattr +i /etc/resolv.conf
You can thank me later.So you essentially block any program trying to write it?
The only option is to replace the "execute this when DHCP reply is recieved" script, which is not a simple script at all. And then you're stuck three-way-merging your changes to that script with every security update.
So now I have a job that watch for that and does a bind mount to make everything work.