Queries DNS for the DNS host name of the specified IP address.
- address
- A string containing an IP address.
A System.Net.IPHostEntry instance containing the host information.
Type Reason System.Net.DnsPermission Requires unrestricted permission for accessing DNS information. See System.Net.DnsPermission and System.Security.Permissions.PermissionState.Unrestricted.
Type Reason ArgumentNullException address is null . FormatException address is not a valid IP address. System.Net.Sockets.SocketException An error was encountered executing the DNS query . System.Security.SecurityException The caller does not have permission to access DNS information.
The IP address specified by the address parameter is required to be in dotted-quad notation (for example, "192.168.1.2").
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0