LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   network up, but not resolving correctly. (https://www.linuxquestions.org/questions/linux-networking-3/network-up-but-not-resolving-correctly-200508/)

BrianK 07-02-2004 09:19 PM

network up, but not resolving correctly.
 
One of my machines has a working network, but isn't resolving names properly.

the entry in /etc/resolv.conf is correct (set to the ip of my router - same as the rest of the machines in the office), but when I try to "ping yahoo.com" I get nothing.. if I try to "ping 66.218.71.198" (which is yahoo) I get a proper ping.

Any idea what might be the cause?

bruno buys 07-02-2004 09:27 PM

Is this machine set to renew dns server on dhcp?

BrianK 07-02-2004 09:29 PM

Quote:

Originally posted by bruno buys
Is this machine set to renew dns server on dhcp?
it's not using DHCP. so no. ;)

mritch 07-02-2004 09:32 PM

while trying to resolve the hostname run something like iptraf on that interface and log any paket that is transmitted. maybe this will give you a clue.

sl mritch.

Ninaw 07-03-2004 08:46 AM

I'm having a similar problem in slackware 9.0 using a D-Link router: I can only visit several sites. Whenever I ping some sites like ctan.org it says host not found; yet I can visit them under windoze. My router is configured as DHCP server so there might be something wrong with the renewal of the DNS server. I hope when I resolve this problem I could help you in some way too.

idaho 07-03-2004 11:05 AM

try invoking:
host 66.218.71.198

For more verbose output, also invoke:
host -v 66.218.71.198

Suggestions:
1) you have a typo in /etc/resolv.conf
2) check /etc/nsswitch.conf, where your "hosts" line should look something like:
hosts: files dns

Ninaw 07-03-2004 12:10 PM

have you tried using dig?

BrianK 07-06-2004 01:07 PM

Quote:

Originally posted by idaho
Suggestions:
1) you have a typo in /etc/resolv.conf
2) check /etc/nsswitch.conf, where your "hosts" line should look something like:
hosts: files dns

Ahh ha! I just made this machine an NIS server. In my attempts to get things going, I removed the "dns" entry from the hosts line in the nsswitch file.

Thanks!

idaho 07-06-2004 02:37 PM

You are welcome.


All times are GMT -5. The time now is 07:55 AM.