LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2004, 10:50 PM   #1
sandipkumar
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Angry 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

 
Old 07-04-2004, 11:11 PM   #2
dharmu_r
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
HI Sandeep,

tTry

#ping 127.0.0.1
#ping localhost

And let us know what happened!

dharmu_r@indiatimes.com
 
Old 07-05-2004, 11:32 AM   #3
sandipkumar
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 07-05-2004, 10:42 PM   #4
dharmu_r
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
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.
 
Old 07-06-2004, 07:42 AM   #5
sandipkumar
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 07-06-2004, 11:36 PM   #6
dharmu_r
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
I think there is a routing problem. See what does the route output gives in the Linux Box.

Dharmendra T.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can my linux computer be a router AND a regular computer? DJOtaku Linux - Wireless Networking 4 06-09-2005 07:22 AM
WRT54G and Linux Router metallica1973 Linux - Networking 11 02-24-2005 01:53 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 11:03 AM
Linux gateway computer can't resolve names krsnendu Linux - Networking 4 12-17-2003 09:30 AM
I can't ping to any windows computer durukan Linux - Networking 3 07-23-2003 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration