views:

28

answers:

0

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?