Versions in this module Expand all Collapse all v0 v0.5.0 Jun 27, 2025 v0.4.0 May 14, 2025 Changes in this version + var ErrNotFound = errors.New("no records found") + func GetDNSServers() (nameservers []netip.AddrPort) — darwin/amd64, linux/amd64 + func ValidateDNSServer(servers []string) ([]string, error) + type Options struct + Hostsfile string + Order []string + Servers []string + SkipTest bool + Timeout time.Duration + type Resolver struct + func NewResolver(option Options) (*Resolver, error) + func (r *Resolver) Lookup(ctx context.Context, host string, queryOrder ...[]string) ([]string, error)