LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2009, 01:05 PM   #16
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled

@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).
 
Old 06-03-2009, 02:25 PM   #17
Cassanova
Member
 
Registered: Feb 2009
Location: An Evil city in Indiana
Distribution: Fedora Core 10 X86_64, and Ubuntu 6.06
Posts: 61

Original Poster
Rep: Reputation: 15
Cool! thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Internet is very slow jpostma Linux - Networking 1 07-17-2007 02:35 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
Fedora Core 2 - Internet is slow, why? ExTerminator Linux - Networking 6 07-05-2004 11:36 AM
slow internet access. too slow!!! iamstinke Linux - Networking 2 01-01-2004 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration