LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 05-25-2007, 01:21 PM   #1
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Rep: Reputation: 15
resolv.conf keeps getting rewritten!!


Hi

I need some help. I run Mandriva 2006 and I use a wireless network sometimes and other times a wired network. They are different networks. Every time I change the resolv.conf file to match what I need, it keeps changing back to the default.

Please help!!
 
Old 05-25-2007, 04:55 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
There's a command you can put into /etc/rc.inet1.conf which will tell the thing NOT to change the resolv.conf (this is particular to DHCP but might work otherwise too, though I suspect your wireless is DHCP anyways). Try adding this to rc.inet1.conf:
DHCP_KEEPRESOLV="yes"

Does it help?


PS - if for example you have a [2] or a [1] or whatever, indicating the connection affecting the resolv.conf file, then put the same on the line I gave, so: DHCP_KEEPRESOLV[1]="yes"

Last edited by GrapefruiTgirl; 05-25-2007 at 04:56 PM.
 
Old 05-25-2007, 06:12 PM   #3
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
there is no /etc/rc.inet1.conf file. any other ideas?
 
Old 05-25-2007, 06:22 PM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Erk!! Try /etc/rc.d/rc.inet1.conf

Sorry



Edit: I don't know what it is about the 'rc.d' part -- I seem to omit that more often than not when posting..

Last edited by GrapefruiTgirl; 05-25-2007 at 06:36 PM.
 
Old 05-25-2007, 08:56 PM   #5
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
there is still no /etc/rc.d/rc.inet1.conf. sorry.
 
Old 05-25-2007, 09:03 PM   #6
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Code:
IFNAME="eth0"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
GATEWAY="192.168.0.1"
NETWORKING_IPV6="no"
DHCP_KEEPRESOLV="yes"
DHCP_KEEPGW="yes"
DEBUG_ETH_UP="yes"
OK, perhaps it is named differently on your distribution. If you can locate a networking config file with information in it similar to the above, you would have the correct file.
I hope this helps.

Edit - poke around in /etc/sysconfig/<networking_files>

Last edited by GrapefruiTgirl; 05-25-2007 at 09:09 PM.
 
Old 05-26-2007, 11:16 AM   #7
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
Actually, I think I found a good solution. My networks do not require DHCP so I disabled VMware services and removed my wireless network card and I deleted all of my interfaces. Then I put my wireless network card back in and I went through the network creation wizard I now I have no problems. I think when I configure VMware and my other network it will do it again so I'll try that.

I'll tell you if it works or doesn't.

Last edited by jcbparry; 05-26-2007 at 11:32 AM.
 
Old 05-28-2007, 08:34 AM   #8
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
it seems to work.
thank you for your help.
 
  


Reply

Tags
mandriva, 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
DNS Hosts.conf or resolv.conf problem mac_casey Suse/Novell 0 03-26-2006 09:21 AM
My resolv.conf file is being rewritten JimRivera Linux - Networking 1 12-08-2005 07:17 PM
Sound muted at boot, ntpd.conf rewritten spaceballs Slackware 1 02-22-2005 01:14 AM
/etc/resolv.conf being rewritten at startup jawaking00 Linux - Networking 2 07-01-2004 08:17 AM
resolv.conf is rewritten on startup smurf Linux - Networking 1 03-23-2004 03:19 AM


All times are GMT -5. The time now is 09:04 AM.

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