# Functions
AddToDebugInfo adds the system status to the given debug.Info.
GetIPInfo gets an IPInfo record from the database.
GetNameRecord gets a NameRecord from the database.
GetResolversInScope returns all resolvers that are in scope the resolve the given query and options.
GetRRCache tries to load the corresponding NameRecord from the database and convert it.
IsResolverAddress returns whether the given ip and port match a configured resolver.
NewHTTPSResolver returns a new HTTPSResolver.
NewPlainResolver returns a new TPCResolver.
NewTCPResolver returns a new TPCResolver.
QueryPortmasterEnv queries the environment resolver directly.
ResetCachedRecord deletes a NameRecord from the cache database.
Resolve resolves the given query for a domain and type and returns a RRCache object or nil, if the query failed.
ResolveIPAndValidate finds (reverse DNS), validates (forward DNS) and returns the domain name assigned to the given IP.
SetLocalAddrFactory supplies the intel package with a function to get permitted local addresses for connections.
# Constants
Supported upstream block detections.
Supported upstream block detections.
Supported upstream block detections.
Supported upstream block detections.
DNS Classes.
DNS resolver scheme aliases.
InternalSpecialUseDomain is the domain scope used for internal services.
IPInfoProfileScopeGlobal is the profile scope used for unscoped IPInfo entries.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS Resolver Attributes.
DNS resolver scheme aliases.
# Variables
Configuration Keys.
Configuration Keys.
Configuration Keys.
Configuration Keys.
Configuration Keys.
Configuration Keys.
This is a workaround for enabling the resolver to work with the compat module without importing it.
This is a workaround for enabling the resolver to work with the compat module without importing it.
This is a workaround for enabling the resolver to work with the compat module without importing it.
ErrBlocked is basic error that will match all "blocked" errors.
ErrContinue is returned when the resolver has no answer, and the next resolver should be asked.
ErrFailure is returned when the type of failure is unclear.
ErrInvalid wraps ErrNotFound.
ErrLocalhost is returned to *.localhost queries.
ErrNoCompliance wraps ErrBlocked and is returned when no resolvers were able to comply with the current settings.
ErrNotFound is a basic error that will match all "not found" errors.
ErrOffline is returned when no network connection is detected.
ErrShuttingDown is returned when the resolver is shutting down.
ErrSpecialDomainsDisabled wraps ErrBlocked.
ErrTestDomainsDisabled wraps ErrBlocked.
ErrTimeout is returned when a query times out.
FailThreshold is amount of errors a resolvers must experience in order to be regarded as failed.
# Structs
BasicResolverConn implements ResolverConn for standard dns clients.
BlockedUpstreamError is returned when a DNS request has been blocked by the upstream server.
DNSRequestContext is a static structure to add information to DNS request connections.
HTTPSQuery holds the query information for a hTTPSResolverConn.
HTTPSResolver is a resolver using just a single tcp connection with pipelining.
IPInfo represents various information about an IP.
NameRecord is helper struct to RRCache to better save data to the database.
PlainResolver is a resolver using plain DNS.
Query describes a dns query.
ResolvedDomain holds a Domain name and a list of CNAMES that have been resolved.
Resolver holds information about an active resolver.
ResolverInfo is a subset of resolver attributes that is attached to answers from that server in order to use it later for decision making.
RRCache is a single-use structure to hold a DNS response.
Scope defines a domain scope and which resolvers can resolve it.
TCPResolver is a resolver using just a single tcp connection with pipelining.
# Interfaces
ResolverConn is an interface to implement different types of query backends.
# Type aliases
ResolvedDomains is a helper type for operating on a slice of ResolvedDomain.