Solved

Can't ping machine by name, even though the names are explicitly defined in Hosts file

Posted on 2008-10-28
5
211 Views
Last Modified: 2010-04-21
Dear Experts,

Sorry for throwing out this question, but I just can't quite understand why my computer cannot resolve computer names, even though I set them in the hosts file.  I am setting up a monitoring tools on a server, to perform different kinds of tests (ping, url check, crc, memory available ...etc) on selected servers.  Along those tests, I make the monitoring machine to test other servers by using computer name.  I made a list of computer names along with their IPs in the C:\windows\system32\drivers\etc\hosts table, But for some reasons, some Windows computers can be ping by using computer name.  But for linux machines, URLs (eg. ns1.yahoo.com), windows machines on the other geograpic location could not be resolved.

As I understand (please correct me if I am wrong), when I send a command like "Ping Server1", it will try to lookup the name "server1" by hosts table, then if that doesnt' resolve, it'll check the DNS... is there any other that would take precedence of the hosts table?  

any thing that I might did wrong?  thanks.



0
Comment
Question by:wingkchan
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Kaddict earned 400 total points
ID: 22828511
If most of your machines answer to ping, isn't it a firewall blocking ping on those which does not work ?

When you ping, first line looks like : Sending ping to server-name [xx.xx.xx.xx]   <=== do you see the IP and it does not answer, or you see no IP at all?
0
 
LVL 2

Author Comment

by:wingkchan
ID: 22828563
Kaddict, thank you for the lightening reply.  Most computers are within the network, and previously we have another monitoring machine that can do those ping tests... so I think that might not be the firewall issue.

When I execute: "ping server-anme", it returns the following:
Ping request could not find host server-name, please check the name and try again
0
 
LVL 2

Author Comment

by:wingkchan
ID: 22837476
Got it to work again.  I think the reason that the hosts file was not put to use might have because it was corrupted somehow.  I renamed the original hosts file, and then create another one, add the entries in, and now, I can connect to other machines by names.
0
 
LVL 4

Expert Comment

by:Kaddict
ID: 22837716
That "corruption" may have been bad permissions too.

Hope I helped at least a little =)

-kaddict
0
 
LVL 2

Author Closing Comment

by:wingkchan
ID: 31511049
Thanks Kaddict... sometimes to find the answer requires lots of trials and error...
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dentrix G4 1 76
SolarWind and DNS Server 12 87
Monitor bandwidth 3 125
How to set IPSec under Server 2008 R2 and Server 2012 R2 3 44
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question