publicdns
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package publicdns contains mapping and helpers for working withpublic DNS providers.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcDoHEndpointFromIP¶added inv1.32.0
DoHEndpointFromIP returns the DNS-over-HTTPS base URL for a given IPand whether it's DoH-only (not speaking DNS on port 53).
The ok result is whether the IP is a known DNS server.
funcDoHIPsOfBase¶
DoHIPsOfBase returns the IP addresses to use to dial the provided DoH baseURL.
It is basically the inverse of DoHEndpointFromIP with the exception that forNextDNS it returns IPv4 addresses that DoHEndpointFromIP doesn't map back.
funcDoHV6¶
DoHV6 returns the first IPv6 DNS address from a given public DNS providerif found, along with a boolean indicating success.
funcIPIsDoHOnlyServer¶added inv1.32.0
IPIsDoHOnlyServer reports whether ip is a DNS server that should only useDNS-over-HTTPS (not regular port 53 DNS).
funcKnownDoHPrefixes¶added inv1.32.0
func KnownDoHPrefixes() []string
KnownDoHPrefixes returns the list of DoH base URLs.
It returns a new copy each time, sorted. It's meant for tests.
It does not include providers that have customer-specific DoH URLs likeNextDNS.
Types¶
This section is empty.