Browse Source

Prevent resolv.conf from changing

Bob Mottram 9 years ago
parent
commit
f0ff1a6067
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone

+ 3
- 0
src/freedombone View File

3592
     # point resolv.conf to tor
3592
     # point resolv.conf to tor
3593
     echo 'nameserver 127.0.0.1:53' > /etc/resolv.conf
3593
     echo 'nameserver 127.0.0.1:53' > /etc/resolv.conf
3594
 
3594
 
3595
+	# prevent resolv.conf from changing
3596
+	chattr +i /etc/resolv.conf
3597
+
3595
     echo 'resolve_dns_via_tor' >> $COMPLETION_FILE
3598
     echo 'resolve_dns_via_tor' >> $COMPLETION_FILE
3596
 }
3599
 }
3597
 
3600