API Reference
DnsResolverEndpoint
Describes a DNS resolver endpoint and its behavior.
Inheritance
- Object
- DnsResolverEndpoint
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method DnsResolverEndpointFactory.From
- Property DnsResponse.UsedEndpoint
- Method EndpointParser.TryParseMany
Accepted by parameters
- Constructor DnsMultiResolver.DnsMultiResolver
- Method DnsMultiResolver.ClearFastestCacheFor
- Method EndpointParser.BuildDohUri
Constructors
public DnsResolverEndpoint() #Methods
Inherited Methods
Properties
public String Host { get; set; } #Hostname or IP address for UDP/TCP/DoT. For DoH, the host part of DohUrl.
public Int32 Port { get; set; } #Port number. Defaults to 53 for UDP/TCP, 853 for DoT, and 443 for DoH when not specified.
public Nullable<AddressFamily> Family { get; set; } #Optional preferred address family when resolving hostnames.
public Transport Transport { get; set; } #Transport protocol used to query this endpoint.
public Nullable<TimeSpan> Timeout { get; set; } #Optional per-endpoint timeout. When null, a library default is used.
public Boolean AllowTcpFallback { get; set; } #Allow automatic TCP fallback when UDP responses are truncated.
public Nullable<Int32> EdnsBufferSize { get; set; } #Optional EDNS buffer size for UDP queries.
public Nullable<Boolean> DnsSecOk { get; set; } #Sets the DO bit (DNSSEC OK) in queries to request DNSSEC records.
public Uri DohUrl { get; set; } #For DoH transports, the full resolver URL (e.g. https://dns.google/dns-query).