J
Johno
I'm using the Dns class to query host names to check that
they actually exist on our network and to determine the
aliases for each host name. However, I've noticed that the
IPHostEntry instance returned by Dns.GetHostByName doesn't
return the host name's aliases in the IPHostEntry.Aliases
list. But if I pass a host alias to GetHostByName it
returns the alias in IPHostEntry.Aliases and the true host
name in IPHostEntry.Hostname.
It appears that the IPHostEntry.Aliases does not work in
the way suggested by the SDK docs, but can anyone tell me
how I can get a list of DNS aliases for a known DNS host
entry?
Thanks
John
they actually exist on our network and to determine the
aliases for each host name. However, I've noticed that the
IPHostEntry instance returned by Dns.GetHostByName doesn't
return the host name's aliases in the IPHostEntry.Aliases
list. But if I pass a host alias to GetHostByName it
returns the alias in IPHostEntry.Aliases and the true host
name in IPHostEntry.Hostname.
It appears that the IPHostEntry.Aliases does not work in
the way suggested by the SDK docs, but can anyone tell me
how I can get a list of DNS aliases for a known DNS host
entry?
Thanks
John