Lookup the host name(s) for an IP address.

Namespace:  JHSoftware
Assembly:  JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)

Syntax

C#
public static string[] LookupReverse(
	IPAddress ipAddress
)
Visual Basic (Declaration)
Public Shared Function LookupReverse ( _
	ipAddress As IPAddress _
) As String()

Parameters

ipAddress
Type: System.Net..::.IPAddress
The IP address to look up reverse DNS for.

Return Value

Host name / aliases

Remarks

This overload queries the DNS servers found in the local computer's IP configuration using default DNS request options (see remarks in properties of the DnsClient..::.RequestOptions object).

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionipAddress is null/nothing.
JHSoftware..::.DnsClient..::.NoDnsServersExceptionNo DNS servers where specified, and no DNS servers could be found in this computer's IP configuration
JHSoftware..::.DnsClient..::.NXDomainExceptionThe requested domain name does not exist (DNS server returned RCode 3 NXDomain).
JHSoftware..::.DnsClient..::.NoDataExceptionThe requested domain name exists but has no records of the requested type.
JHSoftware..::.DnsClient..::.NoDefinitiveAnswerExceptionNone of the DNS servers returned a definitive answer.

See Also