Get machine name for remote computer on local network
Posted
by durza
on Stack Overflow
See other posts from Stack Overflow
or by durza
Published on 2010-06-15T18:40:33Z
Indexed on
2010/06/15
18:42 UTC
Read the original article
Hit count: 147
Hi, I've 2 machines with names Comp1, Comp2. There is a DNS name for them, that mask them as one, let say DNSName.
I get IP addresses for both machines via Dns.GetHostEntry("DNSName").
But when I try get Dns.GetHostEntry(ipAddress) entry.HostName always contains DNSName.
I found some way to get name through WMI. But our policy doesn't allow WMI on remote machines.
I can do parsing of nbstat -a output, but I would like to do some clean aproach to this.
Is there some way?
© Stack Overflow or respective owner