LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ping works, host works, ping host does not (https://www.linuxquestions.org/questions/linux-networking-3/ping-works-host-works-ping-host-does-not-52568/)

dublin212 03-30-2003 06:06 PM

ping works, host works, ping host does not
 
I'm 97% towards getting networking to fly on this ibm t23 laptop with redhat 8, but something strange is failing.

ping to an ip address works
host to an ip name works (returns the ip address)
dig to an ip name works and properly reports the dns servers
ping to an ip name does not work

somehow the resolver is not using whatever host uses to resolve the address

other configuration data: wireless lan on eth1 (orinico card) talking to an orinoco residential gateway, connected to verizon dsl. eth0 is out of the picture.

Any thoughts?
Thanks much

dubliner in the big apple

geno976 03-30-2003 06:23 PM

are you pinging/host'ing the fqdn (ping host.domain.com) or just the host (ping host) ? whichever way you're doing it, i'm assuming your doing the same way for both ping AND host/dig ..

does your /etc/resolv.conf have the 'search' line ? i.e

search domain.com
nameserver 65.65.65.65

if all looks ok so far i would suggest taking a packet trace (tcpdump or ethereal (gui)) to help narrow down where the prblm is..

-geno

dublin212 03-31-2003 10:45 PM

yes, I am using the fqdn.
Thanks for the suggestion.

Getting closer. dig tells me the nameserver. I put that in /etc/resolv.conf
(without a search line) and all works fine ... for a few minutes. Then some process rewrites /etc/resolv.conf to have a bogus search line and a bogus nameserver line. How interesting.
(it's putting 10.0.1.1, the router, as the nameserver, but of course the nameserver lives on the other (public) side of the router)

geno976 03-31-2003 11:38 PM

Quote:

Then some process rewrites /etc/resolv.conf to have a bogus search line and a bogus nameserver line.
most likely this is dhcp ... check to see if this host is dhcp enabled, and if so, check to see that the dhcp server is configured to supply the correct parameters (default gw, nameserver, etc) .. maybe your router/access point or whatever this box connects to is acting as the dhcp server for your network?

-geno


All times are GMT -5. The time now is 03:54 PM.