Prevent resolv.conf from changing

This commit is contained in:
Bob Mottram 2016-04-21 17:49:22 +01:00
parent 62fb59d8b4
commit f0ff1a6067
1 changed files with 3 additions and 0 deletions

View File

@ -3592,6 +3592,9 @@ function resolve_dns_via_tor {
# point resolv.conf to tor # point resolv.conf to tor
echo 'nameserver 127.0.0.1:53' > /etc/resolv.conf echo 'nameserver 127.0.0.1:53' > /etc/resolv.conf
# prevent resolv.conf from changing
chattr +i /etc/resolv.conf
echo 'resolve_dns_via_tor' >> $COMPLETION_FILE echo 'resolve_dns_via_tor' >> $COMPLETION_FILE
} }