Return the number of aliases for the specified host name.
An integer value which specifies the number of host aliases.
The HostAliases property returns the number of aliases for the host specified by the HostName property. If the specified host name cannot be resolved, this property will return a value of zero.
This property is typically used in conjunction with the HostAlias array.
[Visual Basic]
Dim nIndex As Integer
ListBox1.Items.Clear()
dnsClient.HostName = strHostName
For nIndex = 0 To dnsClient.HostAliases - 1
ListBox1.Items.Add(dnsClient.HostAlias(nIndex))
Next
DnsClient Class | SocketTools Namespace | HostAlias Field