ComponentSpace DNS Class Library Reference

DnsClient.Lookup Method 

Performs a forward DNS lookup to resolve the host name to one or more IP addresses. For example, www.componentspace.com is resolved to 66.210.153.10.

[Visual Basic]
Public Function Lookup( _
   ByVal hostName As String _
) As IPAddress()
[C#]
public IPAddress[] Lookup(
   string hostName
);

Parameters

hostName
The host name to resolve.

Return Value

The resolved IP addresses.

Exceptions

Exception Type Condition
DnsLookupException Thrown when the lookup fails.

See Also

DnsClient Class | ComponentSpace.Dns Namespace