Dns Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides simple domain name resolution functionality.

Namespace:  System.Net
Assembly:  System (in System.dll)

public static class Dns

The Dns type exposes the following members.

Public methodStatic memberGetHostEntryResolves a host name or IP address to an IPHostEntry instance.

The Dns class is a static class that retrieves information about a specific host from the Internet Domain Name System (DNS).

The host information from the DNS query is returned in an instance of the IPHostEntry class. If the specified host has more than one entry in the DNS database, IPHostEntry contains multiple IP addresses and aliases.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.