Versions in this module Expand all Collapse all v1 v1.0.1 Dec 12, 2024 Changes in this version + type NetworkConfig struct + AllowDefaultResolverWithBindToDevice bool + BindToDevice func(fd int) (string, error) + CacheExtensionInitialTTL time.Duration + CacheExtensionVerifiedTTL time.Duration + GetDNSServers func() []string + HasIPv6Route func() bool + IPv6Synthesize func(IPv4 string) string + LogHostnames bool + LogWarning func(error) + type ResolveParameters struct + AlternateDNSServer string + AttemptsPerPreferredServer int + AttemptsPerServer int + AwaitTimeout time.Duration + IncludeEDNS0 bool + PreferAlternateDNSServer bool + PreresolvedDomain string + PreresolvedIPAddress string + ProtocolTransformName string + ProtocolTransformSeed *prng.Seed + ProtocolTransformSpec transforms.Spec + RequestTimeout time.Duration + func (r *ResolveParameters) GetFirstAttemptWithAnswer() int + type Resolver struct + func NewResolver(networkConfig *NetworkConfig, networkID string) *Resolver + func (r *Resolver) GetMetrics() string + func (r *Resolver) MakeResolveParameters(p parameters.ParametersAccessor, frontingProviderID string, ...) (*ResolveParameters, error) + func (r *Resolver) ResolveAddress(ctx context.Context, networkID string, params *ResolveParameters, ...) (string, error) + func (r *Resolver) ResolveIP(ctx context.Context, networkID string, params *ResolveParameters, ...) ([]net.IP, error) + func (r *Resolver) Stop() + func (r *Resolver) VerifyCacheExtension(hostname string)