Versions in this module Expand all Collapse all v1 v1.11.1 Mar 21, 2024 Changes in this version + const Answer + const Extra + const Ns + func A(rr string) *dns.A + func AAAA(rr string) *dns.AAAA + func CAA(rr string) *dns.CAA + func CNAME(rr string) *dns.CNAME + func CNAMEOrder(res *dns.Msg) error + func DNAME(rr string) *dns.DNAME + func DNSKEY(rr string) *dns.DNSKEY + func DS(rr string) *dns.DS + func HINFO(rr string) *dns.HINFO + func Header(tc Case, resp *dns.Msg) error + func MX(rr string) *dns.MX + func MetricValue(name string, mfs []*MetricFamily) (string, map[string]string) + func MetricValueLabel(name, label string, mfs []*MetricFamily) (string, map[string]string) + func NAPTR(rr string) *dns.NAPTR + 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 ScrapeMetricAsInt(addr string, name string, label string, nometricvalue int) int + func Section(tc Case, sec sect, rr []dns.RR) error + func SortAndCheck(resp *dns.Msg, tc Case) error + func TXT(rr string) *dns.TXT + func TempFile(dir, content string) (string, func(), error) + func WritePEMFiles(t *testing.T) (string, error) + type Case struct + Answer []dns.RR + AuthenticatedData bool + 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 MetricFamily struct + Help string + Metrics []interface{} + Name string + Type string + func Scrape(url string) []*MetricFamily + 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 + RemoteIP string + TCP bool + Zone string + 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