# Functions
A returns an A record from rr.
AAAA returns an AAAA record from rr.
CNAME returns a CNAME record from rr.
CNAMEOrder makes sure that CNAMES do not appear after their target records.
DNAME returns a DNAME record from rr.
DNSKEY returns a DNSKEY record from rr.
DS returns a DS record from rr.
ErrorHandler returns a Handler that returns ServerFailure error when called.
Header test if the header in resp matches the header as defined in tc.
MX returns an MX record from rr.
NextHandler returns a Handler that returns rcode and err.
NS returns an NS record from rr.
NSEC returns an NSEC record from rr.
OPT returns an OPT record with UDP buffer size set to bufsize and the DO bit set to do.
PTR returns a PTR record from rr.
RRSIG returns an RRSIG record from rr.
Section tests if the the section in tc matches rr.
SOA returns a SOA record from rr.
SortAndCheck sorts resp and the checks the header and three sections against the testcase in tc.
SRV returns a SRV record from rr.
TCPServer starts a DNS server with a TCP listener on laddr.
TempFile will create a temporary file on disk and returns the name and a cleanup function to remove it later.
TXT returns a TXT record from rr.
UDPServer starts a DNS server with an UDP listener on laddr.
WritePEMFiles creates a tmp dir with ca.pem, cert.pem, and key.pem and the func to remove it.
# Structs
Case represents a test case that encapsulates various data from a query and response.
ResponseWriter is useful for writing tests.
ResponseWriter6 returns fixed client and remote address in IPv6.
# Interfaces
No description provided by the author