LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-29-2007, 02:17 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Fedore Core 7 Forgets Its DNS Settings on Reboot


Hi there --

I have a Fedora Core 7 server that loses its DNS settings on system reboot. The /etc/resolv.conf file does not maintain its entries even though they are entered by the root user.

The workaround that I have implemented involves the resolv.conf file saved under a different name, and a symbolic link under the appropriate name pointing to the other file. While this works, it does not fix the original problem.

Has anyone seen this, know what the cause is, and how it can be fixed? Thanks.
 
Old 11-29-2007, 02:47 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If your IP address is provided by DHCP then it is DHCP that is likely also overwriting your resolv.conf. Have a look at dhclient.conf.

There is a man page for that - you can tell it to use defined entries instead of overwriting from DHCP server.

Type "man dhclient.conf" to see detailed information for this file.
 
Old 11-29-2007, 03:01 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Hi there --

I ran a find command, and there apparently is no dhclient.conf file on the system.
 
Old 11-29-2007, 04:08 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Do you use DHCP. If so, which client do you run. Look up the man pages for it, to see if it has an option to NOT overwrite /etc/resolv.conf.

Cheers.
 
Old 11-30-2007, 10:01 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Reviewing the /etc/sysconfig/network-scripts/ifup-eth0 script I see refrences to /etc/dhclient-${DEVICE}.conf.

This suggests it is using per device dhclient.conf files (e.g. dhclient-eth0.conf).

In the directory mentioned above have a look at your ifcfg-eth0 (or eth1 or eth2 etc... depending on which interfaces you're using) to see if you have "BOOTPROTO=dhcp" in the active ones. Then look for the device specific dhclient.conf files.

Also in above I notice a reference to the default /etc/dhclient.conf being allowed for generic purposes so you can probably create one if necessary. It likely isn't there because it is allowing for device specific ones.
 
  


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
Fedore does not reboot after replacing my Monitor johnsanty Linux - General 3 08-27-2006 10:53 PM
Yast forgets DNS allelopath SUSE / openSUSE 5 02-24-2006 09:37 PM
SuSe 10 forgets DNS settings on reboot IglooGuy SUSE / openSUSE 1 01-06-2006 02:45 PM
My linux forgets my game settings Deag^ Linux - Games 0 11-16-2004 07:06 AM
Mandrake Forgets Connection Settings JimH Linux - Software 3 01-19-2002 05:39 PM

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

All times are GMT -5. The time now is 11:33 PM.

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