Windows Linux WRT54G router: Ping can not resolve local computer name
I have a home network with Linksys WRT54G router and cable modem. # machines are Windows XP/ Advanced Server in workgroup. I can do directory share, ping and telnet/ ftp among those machines. PING with name and ip address works successfully.
Now, the 4th machine is Linux. I can PING other machines by IP address but not by names. Similarly, I can PING linux machine from WIndows by IP address but not by names. PING outside (Internet) works successfully with Name and IP address. Any Help Thanks :confused: |
HI Sandeep,
tTry #ping 127.0.0.1 #ping localhost And let us know what happened! dharmu_r@indiatimes.com |
In my hosts file, I configured localhost (localhost.localdomain) as 127.0.0.1
When I ping 127.0.0.1 and localhost it works fine since the information is present in hosts file. Since my Linux machine v1 is connected to my other windows machines A1 and S1 via Linksys router. If I ping A1 from S1 (or S1 from A1), I can see them. in A1 ping S1 or in S1 ping A1 Both of these work fine. But If I try to ping V1 from either machine in A1 or S1 ping V1 It will give error the unknown host V1 Similarly, if I am in V1 (Linux based) then ping A1 or ping S1 or ping V1 (self) also give error unknown host If I ping www.oracle.com or www.google.com it works fine. If I ping A1, S1 or V1 from any machine (windows/ linux) via local IP address assigned by Linux router, it works fine. Only the name resolution does not work. Thanks |
Hi.
try seeing into /etc/host.conf file. This is the file where in you can specify in what order the resolution has to be done. In my machine I have configured to tlook into the hosts file and then contact dns. Dharmendra T. |
Hi,
I do not want to update hosts file with the name and IP addresses since the IP addresses get changed every alternate day from DHCP (Router). I want to get this IP address autometically from DHCP server (Router), which is given as Primary DNS Server in Network configuration. This way, wheneven I need to access an URL (Server) by name, based upon nsswitch.conf (hosts file dns), it will first look at hosts, then it will look at Primary DNS and try to resolve. That is where my issue is, when it goes to resolve IP address from Primary DNS (Router), it goes outside for www.oracle.com (GOOD), but it does not find (S1 or A1 or V1) from Primary DNS (Router), why? When I do the same thing from WIndows machine, how does it work for another window machine (but not for Linux machine). Thanks |
I think there is a routing problem. See what does the route output gives in the Linux Box.
Dharmendra T. |
All times are GMT -5. The time now is 09:25 PM. |