LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2004, 11:42 PM   #1
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
nameserver question


I finally solved a problem that I've had for the past 36 hours or so, in which my laptop has been able to open SOME web pages consistently, while other pages could be opened sometimes, but at other times "www.suchandsuch could not be found", and a few pages could not be opened at all.

I finally found that the nameservers listed in /etc/resolv.conf on the laptop were completely different from the ones listed in that file on my desktop machines, so I edited resolv.conf on the laptop to agree with the desktops, and voila, everything seems to work.

But I'm wondering how I got those apparently bogus entries in the laptop, which, except for these past 2 days, has always worked OK. I'm guessing that it has something to do with the fact that the last time I used it before this episode, it wasn't plugged into the router in my home network, but instead into a cable modem at another location.

Can anybody explain how, and when, and how often, that file is generated and/or modified? On the first line it says:
; generated by /sbin/dhclient-script

Are changes in this file a natural consequence of moving to a different internet connection? Does the problem suggest that someone hacked into it and changed those entries?
 
Old 08-10-2004, 11:52 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, when you plugged in at the other location your dhcp client downloaded the new ip configuration... among it were the different dns servers...

the weird thing is that your dhcp client didn't overwrite these when you came back to the original location...

 
Old 08-11-2004, 12:15 AM   #3
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
/sbin/dhclient and /sbin/dhclient-script appear to be unchanged since I installed RH9 on this machine a year and a half ago.

Does /sbin/dhclient run each time linux boots up?

Where do the nameserver entries come from? Does dhclient download them from the ISP?
 
Old 08-11-2004, 12:43 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
http://www.linuxquestions.org/questi...53#post1101553
 
Old 08-11-2004, 03:46 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
the dns server ip addresses are part of the information your dhcp client downloads from your dhcp server... your dhcp client will write the dns server addresses to /etc/resolv.conf...

the dhcp client is usually set to run at startup time...
 
  


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
which is my nameserver. bruse Linux - Networking 3 07-16-2005 01:45 AM
Nameserver setup tpjets62 Fedora 3 04-27-2004 02:43 AM
having nameserver problems DigiCrime Linux - Networking 12 03-01-2003 04:34 PM
secondary nameserver dilberim82 Linux - Networking 2 10-24-2001 06:47 AM
router and a nameserver IcyHot Linux - General 1 10-11-2001 03:00 PM

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

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