Lookup the host name(s) for an IP address.
Namespace:
JHSoftwareAssembly: JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax
| C# |
|---|
public static string[] LookupReverse( IPAddress ipAddress, DnsClient..::.RequestOptions options ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function LookupReverse ( _ ipAddress As IPAddress, _ options As DnsClient..::.RequestOptions _ ) As String() |
Parameters
- ipAddress
- Type: System.Net..::.IPAddress
The IP address to look up reverse DNS for.
- options
- Type: JHSoftware..::.DnsClient..::.RequestOptions
The options to use with the DNS request.
Return Value
Host name / aliases
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | ipAddress is null/nothing. |
| JHSoftware..::.DnsClient..::.NoDnsServersException | No DNS servers where specified, and no DNS servers could be found in this computer's IP configuration |
| JHSoftware..::.DnsClient..::.NXDomainException | The requested domain name does not exist (DNS server returned RCode 3 NXDomain). |
| JHSoftware..::.DnsClient..::.NoDataException | The requested domain name exists but has no records of the requested type. |
| JHSoftware..::.DnsClient..::.NoDefinitiveAnswerException | None of the DNS servers returned a definitive answer. |