Returns the aliases defined for the current hostname. 
         
        Syntax
        
          object.HostAlias(Index) 
         
        Remarks
        
          The HostAlias property array returns the aliases assigned
          to the host specified by the HostAddress or HostName
          properties. If the host address or name can be resolved, the first
          element in the HostAlias array always refers to the host's
          fully qualified domain name. The end of the alias list is indicated
          when the property returns an empty string. The property array is zero
          based, meaning that the first index value is zero. 
         
        Data Type
        
          String 
         
        Example
        
          The following example places the all of the aliases for a specific
          host into a listbox: 
         
        
          
            
Dim nIndex As Integer
List1.Clear
DnsClient1.HostName = Trim(Text1.Text)
For nIndex = 0 To DnsClient1.HostAliases - 1
     List1.AddItem DnsClient1.HostAlias(nIndex)
     nIndex = nIndex + 1
Loop
           
         
        See Also
        
          HostAddress Property, 
          HostAliases Property, 
          HostName Property 
         
       |