LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-29-2005, 11:10 PM   #1
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Rep: Reputation: 0
Problem with resolv.conf


I am using fedora core 4 . I created a resolv.conf file but
the system keeps overwriting it. How can i prevent this.
Thanks in advance.
 
Old 07-30-2005, 02:38 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
If you're using DHCP then it will get overwritten. If there's no problem with your connectivity then leave it. If you need to change it, either change the nameserver settings on your DHCP server (assuming you have access) or go static.
 
Old 07-30-2005, 11:49 AM   #3
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
thanks a lot
 
Old 07-30-2005, 07:48 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
I ran into this on my Debian client. Found there is a file called /etc/dhclient-conf which by default has all entries commented out.

I uncommented and modified the line that specified the hosts to for name resolution:

supersede domain-name "domain1.com domain2.net domain3.dmz.com";

On my RedHat boxes I'm not doing DHCP but just did a man on dhclient and dhclient.conf and see both man pages are there so it seems likely the same works for Fedora. However they don't have a default dhclient.conf so far as I could see.

Anyway by doing the above on my Debian workstation I am able to use DHCP but keep it from overwriting resolv.conf.
 
Old 07-31-2005, 06:38 AM   #5
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
I also tried to do something like that. There is such a file in
SuSe too.
When I googled I found that there is a file called dhclient.conf
in /etc but none was in mine. I ran man dhclinet.conf too and it
gave me results too showing how to configure it bit not the location.
I tried file search to find such a file but could not find. Maybe it is
is under slightly different name. I think I should try with some
wildcards.
Thanks for your suggestion.
 
Old 08-01-2005, 07:17 AM   #6
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
No problem.

It seems likely it belongs in /etc on RedHat/Fedora. The difference is probably they just don't ship you one - they expect you to create it from scratch. The man page for dhclient (not dhclient.conf) on my RedHat specifically indicates /etc/dhclient.conf as the location. However it does mention this location can be changed by /sbin/dhclient-script. You can view this script to see if it does override defaults.

Since essentially the one on Debian only has the line I show uncommented I think you should just be able to create a one line file called /etc/dhclient.conf. Insert the line shown in my prior post. (Of course you'd change domain1, domain2 and domain3 to those appropriate for your environment.) I don't think it would hurt to try this as at worst it simply wouldn't read the file.
 
Old 08-01-2005, 09:43 PM   #7
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks a lot for the suggestion.
 
  


Reply


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
problem with resolv.conf file romel Linux - Networking 1 07-23-2004 11:49 AM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 04:37 PM
Resolv.conf problem saurya_s Linux - Software 3 01-11-2004 12:53 PM
/etc/resolv.conf problem I guess...... cvlinux Linux - Networking 3 09-13-2001 03:46 PM
resolv.conf SCSI problem Rutnut Linux - Newbie 1 12-22-2000 08:22 AM


All times are GMT -5. The time now is 06:01 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