An NDoc Documented Class Library

SimpleDNSLookup.GetHostName Method 

Returns the hostname for a given IP Address.

public static string GetHostName(
   IPAddress addr
);

Parameters

addr
IPAddress for which the hostname should be returned.

Return Value

Hostname for the given IP address. null if no record is found.

Exceptions

Exception Type Condition
SocketException If the response is not received within the Timeout period.
Exception If the Name Server can't be determined or any other internal error occurs.

See Also

SimpleDNSLookup Class | Lavantech.Dns Namespace