Mono Class Library: System.Net.Dns Overview | Members

System.Net.Dns.GetHostByAddress Method

Queries DNS for the DNS host name of the specified IP address.

[System.Obsolete("Use GetHostEntry instead")]
public static IPHostEntry GetHostByAddress (IPAddress address)

Parameters

address
A System.Net.IPAddress instance.

Returns

A System.Net.IPHostEntry instance containing the host information.

Permissions

TypeReason
System.Net.DnsPermissionRequires unrestricted permission for accessing DNS information. See System.Net.DnsPermission and System.Security.Permissions.PermissionState.Unrestricted.

Exceptions

TypeReason
ArgumentNullExceptionaddress is null .
System.Net.Sockets.SocketExceptionAn error was encountered executing the DNS query .
System.Security.SecurityExceptionThe caller does not have permission to access DNS information.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0