anomie |
05-23-2009 01:05 PM |
@Cassanova: let's revisit and automate the steps here. If you want to exclusively use the OpenDNS nameservers, copy and paste this into a text file called e.g. myscript.sh:
Code:
#!/bin/sh
_nsfile='/etc/resolv.conf'
#
# Remove (potentially) existing immutable flag
#
chattr -i ${_nsfile}
#
# Clobber existing nameserver file contents with
# OpenDNS entries
#
echo 'nameserver 208.67.222.222' > ${_nsfile}
echo 'nameserver 208.67.220.220' >> ${_nsfile}
#
# Make immutable so that it won't be modified
# by other applications
#
chattr +i ${_nsfile}
exit 0
Save myscript.sh, and then from the command line (as root), run:
Code:
# chmod u+x /path/to/myscript.sh && /path/to/myscript.sh
That should run without errors and you'll be in business again. You should have to do it only once (not every time you boot).
|