Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

Dns

class Dns

Module: System.Networking
Assembly: System.Networking.dll
Source file: Dns.rvn

Inheritance: Object → Dns

Resolves hostnames to a bounded read-only sequence of numeric IPv4 addresses.

Remarks

Development after Preview 9. Host-backed resolution runs off the VM owner thread. It is separate from connecting; preserve the original hostname for HTTP and future TLS identity. No IPv6, IDNA conversion or DNS record API is provided. Development overloads accept CancellationToken. See the on-site networking guide.

Methods

6 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
Static member: GetHostAddresses(hostName: string, cancellationToken?: CancellationToken) -> Task<Result<Sequence<IPAddress>, DnsError>> Requests cancellation cooperatively; the task is cancelled after provider acknowledgement.
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString