Versions in this module Expand all Collapse all v0 v0.1.0 Aug 11, 2024 Changes in this version + func DNSQuery(srv, addr string, qtype uint16) (*dns.Msg, dns.RR, error) + func GetFreePort() string + func MakeStaticHandler(tb testing.TB, answer string) func(dns.ResponseWriter, *dns.Msg) + func NewRR(tb testing.TB, s string) dns.RR + func ServeTestDNSServer(addr string, handler func(dns.ResponseWriter, *dns.Msg)) + func WaitForDNSServer(addr string) error + func WaitForHTTPServer(addr string) error + type TestResolver struct + Initialized bool + LastQuery *dns.Msg + MaintainC chan bool + RespError error + Response *dns.Msg + func NewTestResolver() *TestResolver + func (r *TestResolver) Init() error + func (r *TestResolver) Maintain() + func (r *TestResolver) Query(req *dns.Msg, tr *trace.Trace) (*dns.Msg, error)