Skip to content

default DNS Resolver #7

Description

@jol64

in my setup, ResolverFactory.GetResolver returned 6 DNS servers with the first three being defunct w.r.t. application use (in fact they do what is expected for Hyper-V internals). The internals of Resolver obviously do not cycle through the listed DNS servers until they succeed.

Unfortunately the default resolver is a static variable in static class DnsResolver and all other methods use the default or need the optional IPAddress dnsHost = null which limits one to exactly one DNS server. One server may work if you specify DNS servers like 1.1.1.1 which are highly available, but best practice is to support multiple DNS servers.

Imho it would be preferable to allow to pass a Resolver instead of a single host, or as Stephan suggested in #5, get rid of the static class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2To be completed in v2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions