Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-10-2004, 11:42 PM
|
#1
|
Member
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231
Rep:
|
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?
|
|
|
08-10-2004, 11:52 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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...
|
|
|
08-11-2004, 12:15 AM
|
#3
|
Member
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231
Original Poster
Rep:
|
/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?
|
|
|
08-11-2004, 12:43 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
|
|
|
08-11-2004, 03:46 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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...
|
|
|
All times are GMT -5. The time now is 05:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|