Versions in this module Expand all Collapse all v0 v0.1.0 Aug 11, 2024 Changes in this version + func NewCachingResolver(back Resolver) *cachingResolver + type DomainMap map[string]string + func DomainMapFromString(s string) (DomainMap, error) + func (m DomainMap) GetExact(domain string) (string, bool) + func (m DomainMap) GetMostSpecific(domain string) (string, bool) + func (m DomainMap) Set(domain, value string) + type Resolver interface + Init func() error + Maintain func() + Query func(r *dns.Msg, tr *trace.Trace) (*dns.Msg, error) + type Server struct + Addr string + func New(addr string, resolver Resolver, unqUpstream string, serverOverrides DomainMap) *Server + func (s *Server) Handler(w dns.ResponseWriter, r *dns.Msg) + func (s *Server) ListenAndServe()