Versions in this module Expand all Collapse all v1 v1.0.1 Dec 11, 2017 v1.0.0 Dec 1, 2017 v0 v0.9.10 Nov 3, 2017 v0.9.9 Oct 18, 2017 Changes in this version + const Answer + const Extra + const Ns + func A(rr string) *dns.A + func AAAA(rr string) *dns.AAAA + func CNAME(rr string) *dns.CNAME + func CNAMEOrder(t *testing.T, res *dns.Msg) + func DNAME(rr string) *dns.DNAME + func DNSKEY(rr string) *dns.DNSKEY + func DS(rr string) *dns.DS + func Header(t *testing.T, tc Case, resp *dns.Msg) bool + func MX(rr string) *dns.MX + func NS(rr string) *dns.NS + func NSEC(rr string) *dns.NSEC + func OPT(bufsize int, do bool) *dns.OPT + func PTR(rr string) *dns.PTR + func RRSIG(rr string) *dns.RRSIG + func SOA(rr string) *dns.SOA + func SRV(rr string) *dns.SRV + func Section(t *testing.T, tc Case, sec sect, rr []dns.RR) bool + func SortAndCheck(t *testing.T, resp *dns.Msg, tc Case) + func TCPServer(laddr string) (*dns.Server, string, error) + func TXT(rr string) *dns.TXT + func TempFile(dir, content string) (string, func(), error) + func UDPServer(laddr string) (*dns.Server, string, error) + func WritePEMFiles(dir string) (string, func(), error) + type Case struct + Answer []dns.RR + Do bool + Error error + Extra []dns.RR + Ns []dns.RR + Qname string + Qtype uint16 + Rcode int + func (c Case) Msg() *dns.Msg + type Handler interface + Name func() string + ServeDNS func(context.Context, dns.ResponseWriter, *dns.Msg) (int, error) + func ErrorHandler() Handler + func NextHandler(rcode int, err error) Handler + type HandlerFunc func(context.Context, dns.ResponseWriter, *dns.Msg) (int, error) + func (f HandlerFunc) Name() string + func (f HandlerFunc) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + type RRSet []dns.RR + func (p RRSet) Len() int + func (p RRSet) Less(i, j int) bool + func (p RRSet) Swap(i, j int) + type ResponseWriter struct + func (t *ResponseWriter) Close() error + func (t *ResponseWriter) Hijack() + func (t *ResponseWriter) LocalAddr() net.Addr + func (t *ResponseWriter) RemoteAddr() net.Addr + func (t *ResponseWriter) TsigStatus() error + func (t *ResponseWriter) TsigTimersOnly(bool) + func (t *ResponseWriter) Write(buf []byte) (int, error) + func (t *ResponseWriter) WriteMsg(m *dns.Msg) error + type ResponseWriter6 struct + func (t *ResponseWriter6) LocalAddr() net.Addr + func (t *ResponseWriter6) RemoteAddr() net.Addr