posted 14 years ago
I believe it first checks the local DNS cache.
A more reliable way would be to ping or traceroute(if a firewall doesn't drop it) or try to connect. Other than that you will need raw packets, or use another program such as nmap or hping2.
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra