LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-17-2004, 07:46 PM   #1
kmasaryk
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, RHEL, OS X
Posts: 23

Rep: Reputation: 15
Mandrake adds unwanted entry to resolv.conf


Every time I reboot, the following line is added to my resolv.conf file:

Code:
nameserver 127.0.0.1
If I delete the line, Mandrake just adds it back in next time I reboot. How do I get it to stop adding the line back in??

Thanks,
KevinM
 
Old 11-17-2004, 09:16 PM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
If you haven't at least installed a caching nameserver, Mandrake will always add that line back in.

It's required so that X windows will run.

With a caching name server in place the machine knows it's own "name" by IP and the line is not required for localhost resolution.
 
Old 11-17-2004, 11:07 PM   #3
kmasaryk
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, RHEL, OS X
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by opjose
If you haven't at least installed a caching nameserver, Mandrake will always add that line back in.

It's required so that X windows will run.

With a caching name server in place the machine knows it's own "name" by IP and the line is not required for localhost resolution.
Sorry but I don't think any of this is correct. X does not require a caching nameserver to function. 'localhost' can be resolved via the hosts file just fine.

There's absolutely NO reason this line needs to be in my resolv.conf file. Besides, the question isn't whether it's required or not, it's how does it keep getting added? What config file from Mandrake is adding this line back in? I've looked everywhere under /etc/sysconfig and can't seem to find it.
 
Old 11-17-2004, 11:24 PM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
No it IS correct.

X does NOT require a caching name server.

I never said it did!

You misread my post. (lousy punctuation I used...)

X DOES require that the machine be able to determine it's own name.

When there is no entry for an active DNS nor eth0 hostname entry, it reestablishes the contents of /etc/resolv.conf at startup so that X knows which machine it is responsible for.

Yes, resolution via HOSTS also works, and you could do away with the /etc/resolv.conf file entry, but the scripts & programs will not see it and restore the localhost entries to /etc/resolv.conf to PROTECT the functionality of X.

This gets brought up every once in a while since others have encountered the same thing...



Anyway check out /etc/netprofile
 
Old 11-18-2004, 12:40 AM   #5
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
If it is not a mandrake specific thing, it is probably comming from your network script when it starts dhcpd. Try passing it the -R option to prevent this.
 
Old 11-18-2004, 12:56 AM   #6
kmasaryk
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, RHEL, OS X
Posts: 23

Original Poster
Rep: Reputation: 15
ok, I understand what you were trying to say in your first post better now and I agree.

I looked under /etc/netprofile and still can't seem to find where it's coming from. I'll keep looking..
 
Old 11-18-2004, 01:16 AM   #7
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Quote:
Originally posted by colnago
If it is not a mandrake specific thing, it is probably comming from your network script when it starts dhcpd. Try passing it the -R option to prevent this.
No it's not a DHCP issue, it's a "Mandrake" thing.

It's specifically there for machines w/o ethernet interfaces to make X function properly.
 
Old 11-18-2004, 07:40 PM   #8
kmasaryk
LQ Newbie
 
Registered: May 2004
Distribution: Ubuntu, RHEL, OS X
Posts: 23

Original Poster
Rep: Reputation: 15
Maybe this will help clear things up a bit. I have 1 interface, eth0, which has a static IP assigned to it. In my resolv.conf, in addition to the erroneous entry, I have my search domain listed correctly and my real nameserver listed correctly. If I leave the 127.0.0.1 entry in that file, it takes a long time to resolve anything (naturally, since it's not a DNS server). If I take that line out, resolution works very fast.

KevinM
 
Old 11-27-2004, 03:40 PM   #9
albundy
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Rep: Reputation: 0
I am having the same problem only the address 192.168.8.1 keeps popping up and not only after reboot it pops up every 5 minutes or so. This address 192.168.8.1 is the address of my router and my router does use dns forwarding however this address does not work in linux only windows if I disable dns forwarding then my windows boxes stop working but the address keeps popping up in my resolv.conf. I am using mandrake. I was told to use the route command ok now how does the route command let me enter dns info. I checked the man pages and find nothing about dns so im lost there. I have also tried deleting the entry then typing chmod 100 which allows read to the owner and nothing else. This changes and permissions revert back to what they were before this also happens about every 5 minutes.
 
  


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
Bogus entry in /etc/resolv.conf jeffbarish Linux - Networking 10 12-12-2006 07:48 PM
MDK adds unwanted line to fstab kmasaryk Mandriva 4 11-17-2004 09:14 PM
Mandrake 9.2, 80.11b Wireless Card, resolv.conf file? ImpiousPunk Linux - Newbie 2 11-24-2003 05:31 PM
Mandrake changes my /etc/resolv.conf ksgill Linux - Newbie 1 07-10-2003 12:05 AM
resolv.conf is evil! (Mandrake 9.1) Tom Bozack Linux - Networking 4 06-26-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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