get computername

Tags:
Networking
Hi, while using the ping -a <ip addr> command, it often does not come up with the computer name[ruleout: ip addr of routers].Please let me know the possible reasons why this happens. Thanks and Regards
ASKED: August 27, 2005  2:56 AM
UPDATED: August 27, 2005  9:09 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The ping -a needs a source to get the name – either DNS or active directory (don’t think ping can use broadcast to determine the name, although it may on Microsoft platforms).

If you really need to know the device name of a WinTel box, try NBTSTAT -a [ipaddress]. It’ll request information from the Windows stack, and give you machine name, domain, and (usually) the logged-on user as well. The USER part will fail if (a) user isn’t logged on, or (b) the user is logged onto more than one machine.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • HatcherBob
    It depends on the locations of where the DNS is in availibilty to the intended computer. If a DNS near the intended computer is not configured to forward info of a certain range of addresses ytou'll never know about it. If a computer does not have a gateway address and the DNS is outside of the LAN then again it is not seen. Finally ping -a is a udp command and with the advent of virues a lot of DNS's are now configured to not allow ICMP protocols as well as the firewalls on SP2 of Windows XP systems. If you arew trying to locate some pcs get a scanning tool. Hope this helps.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following