Linux - NetworkingThis 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.
Lately I've been having a really strange browsing problem.
Here's my setup.
Dualboot:
Slackware 9.0
Windoze XP
Internet Connection: DSL-PPPoE
-Configured the router to use its DHCP server.
-Used Slack's netconfig util to configure the DHCP client.
Router (D-Link DPT DI-704P)
--A. 5-port Switch
--------1. My own computer (Let's call it PC1)
--------2. Another computer
--------3. Another computer
--B. Single computer
(A and B directly connected to the router; 1,2,3 connected to A)
Under linux in PC1, I can't visit some sites, particularly .org domains and some subdomains, e.g. ctan.org, fluxbox.sourceforge.net. I tried pinging the said sites only to get "host not found" errors. Yet I can visit some subdomains like groups.yahoo.com. When I used the router's own ping tool it reported that it was able to ping the sites that I was not able to ping under linux.
However, under windoze in PC1, I can visit the said sites without any problems.
So now I am quite confused whether it is a problem with the hub, or with how linux interacts with the router, or it's something really mysterious that I am not supposed to discover.
I noticed also after I have visited a site using its IP address, I can use its url for subsequent visits.
Also, the host name of PC1, 'anino,' isn't showing up in the router's browser-based control interface; only the IP address is present in the DHCP clients list.
I've discovered the problem. DHCP places the nameservers of my isp in my resolv.conf file although the correct value should be the ip address of my router. The question I have now is how to maintain the dynamically set IP addresses yet have a fixed nameserver.
Have a look in /etc/sysconfig/network/ (or at least that's where it is in SuSE) for ifcfg-ethX where X is whatever your NIC is (usually 0 if you only have one NIC).
In there you may have the following or there may be nothing like this as it could be using defaults. You can put these in there and they will override any defaults. Just change the 'yes' to 'no' for MODIFY_RESOLV_CONF and it won't modify your resolv.conf
Originally posted by andrewdodsworth Have a look in /etc/sysconfig/network/ (or at least that's where it is in SuSE) for ifcfg-ethX where X is whatever your NIC is (usually 0 if you only have one NIC).
In there you may have the following or there may be nothing like this as it could be using defaults. You can put these in there and they will override any defaults. Just change the 'yes' to 'no' for MODIFY_RESOLV_CONF and it won't modify your resolv.conf
thanks, this is probably better than what I did
I modified rc.inet1 and added a -R option to the dhcp line so that it doesn't override resolv.conf (talk about inelegant)
Originally posted by Ninaw thanks, this is probably better than what I did
I modified rc.inet1 and added a -R option to the dhcp line so that it doesn't override resolv.conf (talk about inelegant)
Well so long as you're sorted - I needed to sort out a fight between onboard ethernet and unsupported PCMCIA wireless card both using DHCP and didn't really want to muck about with system scripts as the wireless card isn't usually in the machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.