LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2008, 05:58 AM   #1
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Rep: Reputation: 15
How can I avoid network manager from modifying resolv.conf?


Hi,
I want to keep opendns servers in my nameserver list, and I want to know how I can avoid network manager from modifying my resolv.conf after each time it connects to a different network. system-config-network doesn't work since it seems like network manager sets its own policies.

Can anyone advise? I'm on fedora 8.

Last edited by algogeek; 05-10-2008 at 06:32 AM.
 
Old 05-10-2008, 07:01 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
until you get a better answer use a work around.

create a text file with your correct nameserver details and call it
resolve-new

2) create a script inside rc.local that replaces resolve.conf with resolve-new with a name change of course.

something like

mv -f /etc/resolve-new /etc/resolve.conf && chmod 600 /etc/resolve.conf
 
Old 05-12-2008, 02:28 AM   #3
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
1. Create the file /etc/dhclient-enter-hooks that contains the following function

make_resolv_conf() {
echo "Do nothing"
}

2. chmod 644 /etc/dhclient-enter-hooks
 
  


Reply

Tags
fedora, manager, network, resolvconf, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is the use of network-script, resolv.conf, network nawuza Linux - Software 3 01-06-2007 08:23 AM
how to avoid resolv.conf been modified by dhcp-client septanla Linux - Networking 3 03-18-2006 05:25 PM
how to avoid resolv.conf been modified by dhcp-client septanla Linux - Networking 1 03-07-2006 07:40 AM
resolv.conf changing everytime network restart cuco76 Linux - Networking 4 11-29-2004 08:19 PM


All times are GMT -5. The time now is 01:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration