LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Slow internet only on Fedora (https://www.linuxquestions.org/questions/linux-networking-3/slow-internet-only-on-fedora-718514/)

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).

Cassanova 06-03-2009 02:25 PM

Cool! thanks!


All times are GMT -5. The time now is 06:40 AM.