Versions in this module Expand all Collapse all v1 v1.1.12 May 21, 2019 v1.1.11 May 20, 2019 v1.1.10 May 19, 2019 v1.1.9 Apr 30, 2019 Changes in this version type Msg + func (dns *Msg) Truncate(size int) v1.1.6 Mar 11, 2019 v1.1.3 Jan 12, 2019 Changes in this version + type NULL struct + Data string + Hdr RR_Header + func (rr *NULL) Header() *RR_Header + func (rr *NULL) String() string v1.1.1 Dec 2, 2018 Changes in this version + type MsgAcceptAction int + const MsgAccept + const MsgIgnore + const MsgReject + type MsgAcceptFunc func(dh Header) MsgAcceptAction + var DefaultMsgAcceptFunc MsgAcceptFunc = defaultMsgAcceptFunc type Server + MsgAcceptFunc MsgAcceptFunc + type ZoneParser struct + func NewZoneParser(r io.Reader, origin, file string) *ZoneParser + func (zp *ZoneParser) Comment() string + func (zp *ZoneParser) Err() error + func (zp *ZoneParser) Next() (RR, bool) + func (zp *ZoneParser) SetDefaultTTL(ttl uint32) + func (zp *ZoneParser) SetIncludeAllowed(v bool) v1.0.11 Sep 29, 2018 Changes in this version + func IsDuplicate(r1, r2 RR) bool + type ConnectionStater interface + ConnectionState func() *tls.ConnectionState type Server + ReusePort bool + func (srv *Server) ShutdownContext(ctx context.Context) error v1.0.8 Jun 4, 2018 Changes in this version + const CertACPKIX + const CertIACPKIX + const CertIPGP + const CertIPIX + const CertISPKI + const CertOID + const CertPGP + const CertPKIX + const CertSPKI + const CertURI + const ClassANY + const ClassCHAOS + const ClassCSNET + const ClassHESIOD + const ClassINET + const ClassNONE + const DH + const DSA + const DSANSEC3SHA1 + const DefaultMsgSize + const ECCGOST + const ECDSAP256SHA256 + const ECDSAP384SHA384 + const ED25519 + const ED448 + const EDNS0COOKIE + const EDNS0DAU + const EDNS0DHU + const EDNS0EXPIRE + const EDNS0LLQ + const EDNS0LOCALEND + const EDNS0LOCALSTART + const EDNS0N3U + const EDNS0NSID + const EDNS0PADDING + const EDNS0SUBNET + const EDNS0TCPKEEPALIVE + const EDNS0UL + const GOST94 + const HmacMD5 + const HmacSHA1 + const HmacSHA256 + const HmacSHA512 + const INDIRECT + const LOC_ALTITUDEBASE + const LOC_DEGREES + const LOC_EQUATOR + const LOC_HOURS + const LOC_PRIMEMERIDIAN + const MaxMsgSize + const MinMsgSize + const OpcodeIQuery + const OpcodeNotify + const OpcodeQuery + const OpcodeStatus + const OpcodeUpdate + const PRIVATEDNS + const PRIVATEOID + const REVOKE + const RSAMD5 + const RSASHA1 + const RSASHA1NSEC3SHA1 + const RSASHA256 + const RSASHA512 + const RcodeBadAlg + const RcodeBadCookie + const RcodeBadKey + const RcodeBadMode + const RcodeBadName + const RcodeBadSig + const RcodeBadTime + const RcodeBadTrunc + const RcodeBadVers + const RcodeFormatError + const RcodeNXRrset + const RcodeNameError + const RcodeNotAuth + const RcodeNotImplemented + const RcodeNotZone + const RcodeRefused + const RcodeServerFailure + const RcodeSuccess + const RcodeYXDomain + const RcodeYXRrset + const SEP + const SHA1 + const SHA256 + const SHA384 + const SHA512 + const TypeA + const TypeAAAA + const TypeAFSDB + const TypeANY + const TypeATMA + const TypeAVC + const TypeAXFR + const TypeCAA + const TypeCDNSKEY + const TypeCDS + const TypeCERT + const TypeCNAME + const TypeCSYNC + const TypeDHCID + const TypeDLV + const TypeDNAME + const TypeDNSKEY + const TypeDS + const TypeEID + const TypeEUI48 + const TypeEUI64 + const TypeGID + const TypeGPOS + const TypeHINFO + const TypeHIP + const TypeISDN + const TypeIXFR + const TypeKEY + const TypeKX + const TypeL32 + const TypeL64 + const TypeLOC + const TypeLP + const TypeMAILA + const TypeMAILB + const TypeMB + const TypeMD + const TypeMF + const TypeMG + const TypeMINFO + const TypeMR + const TypeMX + const TypeNAPTR + const TypeNID + const TypeNIMLOC + const TypeNINFO + const TypeNS + const TypeNSAPPTR + const TypeNSEC + const TypeNSEC3 + const TypeNSEC3PARAM + const TypeNULL + const TypeNXT + const TypeNone + const TypeOPENPGPKEY + const TypeOPT + const TypePTR + const TypePX + const TypeRKEY + const TypeRP + const TypeRRSIG + const TypeRT + const TypeReserved + const TypeSIG + const TypeSMIMEA + const TypeSOA + const TypeSPF + const TypeSRV + const TypeSSHFP + const TypeTA + const TypeTALINK + const TypeTKEY + const TypeTLSA + const TypeTSIG + const TypeTXT + const TypeUID + const TypeUINFO + const TypeUNSPEC + const TypeURI + const TypeX25 + const ZONE + var AlgorithmToHash = map[uint8]crypto.Hash + var AlgorithmToString = map[uint8]string + var CertTypeToString = map[uint16]string + var ClassToString = map[uint16]string + var DefaultServeMux = NewServeMux() + var ErrAlg error = &Error + var ErrAuth error = &Error + var ErrBuf error = &Error + var ErrConnEmpty error = &Error + var ErrExtendedRcode error = &Error + var ErrFqdn error = &Error + var ErrId error = &Error + var ErrKey error = &Error + var ErrKeyAlg error = &Error + var ErrKeySize error = &Error + var ErrLongDomain error = &Error + var ErrNoSig error = &Error + var ErrPrivKey error = &Error + var ErrRRset error = &Error + var ErrRcode error = &Error + var ErrRdata error = &Error + var ErrSecret error = &Error + var ErrShortRead error = &Error + var ErrSig error = &Error + var ErrSoa error = &Error + var ErrTime error = &Error + var ErrTruncated error = &Error + var HashToString = map[uint8]string + var Id = id + var OpcodeToString = map[int]string + var RcodeToString = map[int]string + var StringToAlgorithm = reverseInt8(AlgorithmToString) + var StringToCertType = reverseInt16(CertTypeToString) + var StringToClass = reverseInt16(ClassToString) + var StringToHash = reverseInt8(HashToString) + var StringToOpcode = reverseInt(OpcodeToString) + var StringToRcode = reverseInt(RcodeToString) + var StringToType = reverseInt16(TypeToString) + var TypeToRR = map[uint16]func() RR + var TypeToString = map[uint16]string + var Version = V + func ActivateAndServe(l net.Listener, p net.PacketConn, handler Handler) error + func CertificateToDANE(selector, matchingType uint8, cert *x509.Certificate) (string, error) + func CompareDomainName(s1, s2 string) (n int) + func CountLabel(s string) (labels int) + func Field(r RR, i int) string + func Fqdn(s string) string + func Handle(pattern string, handler Handler) + func HandleFailed(w ResponseWriter, r *Msg) + func HandleFunc(pattern string, handler func(ResponseWriter, *Msg)) + func HandleRemove(pattern string) + func HashName(label string, ha uint8, iter uint16, salt string) string + func IsDomainName(s string) (labels int, ok bool) + func IsFqdn(s string) bool + func IsMsg(buf []byte) error + func IsRRset(rrset []RR) bool + func IsSubDomain(parent, child string) bool + func Len(r RR) int + func ListenAndServe(addr string, network string, handler Handler) error + func ListenAndServeTLS(addr, certFile, keyFile string, handler Handler) error + func NextLabel(s string, offset int) (i int, end bool) + func NumField(r RR) int + func PackDomainName(s string, msg []byte, off int, compression map[string]int, compress bool) (off1 int, err error) + func PackRR(rr RR, msg []byte, off int, compression map[string]int, compress bool) (off1 int, err error) + func ParseZone(r io.Reader, origin, file string) chan *Token + func PrevLabel(s string, n int) (i int, start bool) + func PrivateHandle(rtypestr string, rtype uint16, generator func() PrivateRdata) + func PrivateHandleRemove(rtype uint16) + func ReverseAddr(addr string) (arpa string, err error) + func SMIMEAName(email, domain string) (string, error) + func Split(s string) []int + func SplitDomainName(s string) (labels []string) + func StringToTime(s string) (uint32, error) + func TLSAName(name, service, network string) (string, error) + func TimeToString(t uint32) string + func TsigGenerate(m *Msg, secret, requestMAC string, timersOnly bool) ([]byte, string, error) + func TsigVerify(msg []byte, secret, requestMAC string, timersOnly bool) error + func UnpackDomainName(msg []byte, off int) (string, int, error) + func WriteToSessionUDP(conn *net.UDPConn, b []byte, session *SessionUDP) (int, error) + type A struct + A net.IP + Hdr RR_Header + func (rr *A) Header() *RR_Header + func (rr *A) String() string + type AAAA struct + AAAA net.IP + Hdr RR_Header + func (rr *AAAA) Header() *RR_Header + func (rr *AAAA) String() string + type AFSDB struct + Hdr RR_Header + Hostname string + Subtype uint16 + func (rr *AFSDB) Header() *RR_Header + func (rr *AFSDB) String() string + type ANY struct + Hdr RR_Header + func (rr *ANY) Header() *RR_Header + func (rr *ANY) String() string + type AVC struct + Hdr RR_Header + Txt []string + func (rr *AVC) Header() *RR_Header + func (rr *AVC) String() string + type CAA struct + Flag uint8 + Hdr RR_Header + Tag string + Value string + func (rr *CAA) Header() *RR_Header + func (rr *CAA) String() string + type CDNSKEY struct + func (rr *CDNSKEY) Header() *RR_Header + type CDS struct + func (rr *CDS) Header() *RR_Header + type CERT struct + Algorithm uint8 + Certificate string + Hdr RR_Header + KeyTag uint16 + Type uint16 + func (rr *CERT) Header() *RR_Header + func (rr *CERT) String() string + type CNAME struct + Hdr RR_Header + Target string + func (rr *CNAME) Header() *RR_Header + func (rr *CNAME) String() string + type CSYNC struct + Flags uint16 + Hdr RR_Header + Serial uint32 + TypeBitMap []uint16 + func (rr *CSYNC) Header() *RR_Header + func (rr *CSYNC) String() string + type Class uint16 + func (c Class) String() string + type Client struct + DialTimeout time.Duration + Dialer *net.Dialer + HTTPClient *http.Client + Net string + ReadTimeout time.Duration + SingleInflight bool + TLSConfig *tls.Config + Timeout time.Duration + TsigSecret map[string]string + UDPSize uint16 + WriteTimeout time.Duration + func (c *Client) Dial(address string) (conn *Conn, err error) + func (c *Client) Exchange(m *Msg, address string) (r *Msg, rtt time.Duration, err error) + func (c *Client) ExchangeContext(ctx context.Context, m *Msg, a string) (r *Msg, rtt time.Duration, err error) + type ClientConfig struct + Attempts int + Ndots int + Port string + Search []string + Servers []string + Timeout int + func ClientConfigFromFile(resolvconf string) (*ClientConfig, error) + func ClientConfigFromReader(resolvconf io.Reader) (*ClientConfig, error) + func (c *ClientConfig) NameList(name string) []string + type Conn struct + TsigSecret map[string]string + UDPSize uint16 + func Dial(network, address string) (conn *Conn, err error) + func DialTimeout(network, address string, timeout time.Duration) (conn *Conn, err error) + func DialTimeoutWithTLS(network, address string, tlsConfig *tls.Config, timeout time.Duration) (conn *Conn, err error) + func DialWithTLS(network, address string, tlsConfig *tls.Config) (conn *Conn, err error) + func (co *Conn) Read(p []byte) (n int, err error) + func (co *Conn) ReadMsg() (*Msg, error) + func (co *Conn) ReadMsgHeader(hdr *Header) ([]byte, error) + func (co *Conn) Write(p []byte) (n int, err error) + func (co *Conn) WriteMsg(m *Msg) (err error) + type DHCID struct + Digest string + Hdr RR_Header + func (rr *DHCID) Header() *RR_Header + func (rr *DHCID) String() string + type DLV struct + func (rr *DLV) Header() *RR_Header + type DNAME struct + Hdr RR_Header + Target string + func (rr *DNAME) Header() *RR_Header + func (rr *DNAME) String() string + type DNSKEY struct + Algorithm uint8 + Flags uint16 + Hdr RR_Header + Protocol uint8 + PublicKey string + func (k *DNSKEY) Generate(bits int) (crypto.PrivateKey, error) + func (k *DNSKEY) KeyTag() uint16 + func (k *DNSKEY) NewPrivateKey(s string) (crypto.PrivateKey, error) + func (k *DNSKEY) ReadPrivateKey(q io.Reader, file string) (crypto.PrivateKey, error) + func (k *DNSKEY) ToCDNSKEY() *CDNSKEY + func (k *DNSKEY) ToDS(h uint8) *DS + func (r *DNSKEY) PrivateKeyString(p crypto.PrivateKey) string + func (rr *DNSKEY) Header() *RR_Header + func (rr *DNSKEY) String() string + type DS struct + Algorithm uint8 + Digest string + DigestType uint8 + Hdr RR_Header + KeyTag uint16 + func (d *DS) ToCDS() *CDS + func (rr *DS) Header() *RR_Header + func (rr *DS) String() string + type DecorateReader func(Reader) Reader + type DecorateWriter func(Writer) Writer + type EDNS0 interface + Option func() uint16 + String func() string + type EDNS0_COOKIE struct + Code uint16 + Cookie string + func (e *EDNS0_COOKIE) Option() uint16 + func (e *EDNS0_COOKIE) String() string + type EDNS0_DAU struct + AlgCode []uint8 + Code uint16 + func (e *EDNS0_DAU) Option() uint16 + func (e *EDNS0_DAU) String() string + type EDNS0_DHU struct + AlgCode []uint8 + Code uint16 + func (e *EDNS0_DHU) Option() uint16 + func (e *EDNS0_DHU) String() string + type EDNS0_EXPIRE struct + Code uint16 + Expire uint32 + func (e *EDNS0_EXPIRE) Option() uint16 + func (e *EDNS0_EXPIRE) String() string + type EDNS0_LLQ struct + Code uint16 + Error uint16 + Id uint64 + LeaseLife uint32 + Opcode uint16 + Version uint16 + func (e *EDNS0_LLQ) Option() uint16 + func (e *EDNS0_LLQ) String() string + type EDNS0_LOCAL struct + Code uint16 + Data []byte + func (e *EDNS0_LOCAL) Option() uint16 + func (e *EDNS0_LOCAL) String() string + type EDNS0_N3U struct + AlgCode []uint8 + Code uint16 + func (e *EDNS0_N3U) Option() uint16 + func (e *EDNS0_N3U) String() string + type EDNS0_NSID struct + Code uint16 + Nsid string + func (e *EDNS0_NSID) Option() uint16 + func (e *EDNS0_NSID) String() string + type EDNS0_PADDING struct + Padding []byte + func (e *EDNS0_PADDING) Option() uint16 + func (e *EDNS0_PADDING) String() string + type EDNS0_SUBNET struct + Address net.IP + Code uint16 + Family uint16 + SourceNetmask uint8 + SourceScope uint8 + func (e *EDNS0_SUBNET) Option() uint16 + func (e *EDNS0_SUBNET) String() (s string) + type EDNS0_TCP_KEEPALIVE struct + Code uint16 + Length uint16 + Timeout uint16 + func (e *EDNS0_TCP_KEEPALIVE) Option() uint16 + func (e *EDNS0_TCP_KEEPALIVE) String() (s string) + type EDNS0_UL struct + Code uint16 + Lease uint32 + func (e *EDNS0_UL) Option() uint16 + func (e *EDNS0_UL) String() string + type EID struct + Endpoint string + Hdr RR_Header + func (rr *EID) Header() *RR_Header + func (rr *EID) String() string + type EUI48 struct + Address uint64 + Hdr RR_Header + func (rr *EUI48) Header() *RR_Header + func (rr *EUI48) String() string + type EUI64 struct + Address uint64 + Hdr RR_Header + func (rr *EUI64) Header() *RR_Header + func (rr *EUI64) String() string + type Envelope struct + Error error + RR []RR + type Error struct + func (e *Error) Error() string + type GID struct + Gid uint32 + Hdr RR_Header + func (rr *GID) Header() *RR_Header + func (rr *GID) String() string + type GPOS struct + Altitude string + Hdr RR_Header + Latitude string + Longitude string + func (rr *GPOS) Header() *RR_Header + func (rr *GPOS) String() string + type HINFO struct + Cpu string + Hdr RR_Header + Os string + func (rr *HINFO) Header() *RR_Header + func (rr *HINFO) String() string + type HIP struct + Hdr RR_Header + Hit string + HitLength uint8 + PublicKey string + PublicKeyAlgorithm uint8 + PublicKeyLength uint16 + RendezvousServers []string + func (rr *HIP) Header() *RR_Header + func (rr *HIP) String() string + type Handler interface + ServeDNS func(w ResponseWriter, r *Msg) + type HandlerFunc func(ResponseWriter, *Msg) + func (f HandlerFunc) ServeDNS(w ResponseWriter, r *Msg) + type Header struct + Ancount uint16 + Arcount uint16 + Bits uint16 + Id uint16 + Nscount uint16 + Qdcount uint16 + type KEY struct + func (rr *KEY) Header() *RR_Header + type KX struct + Exchanger string + Hdr RR_Header + Preference uint16 + func (rr *KX) Header() *RR_Header + func (rr *KX) String() string + type L32 struct + Hdr RR_Header + Locator32 net.IP + Preference uint16 + func (rr *L32) Header() *RR_Header + func (rr *L32) String() string + type L64 struct + Hdr RR_Header + Locator64 uint64 + Preference uint16 + func (rr *L64) Header() *RR_Header + func (rr *L64) String() string + type LOC struct + Altitude uint32 + Hdr RR_Header + HorizPre uint8 + Latitude uint32 + Longitude uint32 + Size uint8 + Version uint8 + VertPre uint8 + func (rr *LOC) Header() *RR_Header + func (rr *LOC) String() string + type LP struct + Fqdn string + Hdr RR_Header + Preference uint16 + func (rr *LP) Header() *RR_Header + func (rr *LP) String() string + type MB struct + Hdr RR_Header + Mb string + func (rr *MB) Header() *RR_Header + func (rr *MB) String() string + type MD struct + Hdr RR_Header + Md string + func (rr *MD) Header() *RR_Header + func (rr *MD) String() string + type MF struct + Hdr RR_Header + Mf string + func (rr *MF) Header() *RR_Header + func (rr *MF) String() string + type MG struct + Hdr RR_Header + Mg string + func (rr *MG) Header() *RR_Header + func (rr *MG) String() string + type MINFO struct + Email string + Hdr RR_Header + Rmail string + func (rr *MINFO) Header() *RR_Header + func (rr *MINFO) String() string + type MR struct + Hdr RR_Header + Mr string + func (rr *MR) Header() *RR_Header + func (rr *MR) String() string + type MX struct + Hdr RR_Header + Mx string + Preference uint16 + func (rr *MX) Header() *RR_Header + func (rr *MX) String() string + type Msg struct + Answer []RR + Compress bool + Extra []RR + Ns []RR + Question []Question + func Exchange(m *Msg, a string) (r *Msg, err error) + func ExchangeConn(c net.Conn, m *Msg) (r *Msg, err error) + func ExchangeContext(ctx context.Context, m *Msg, a string) (r *Msg, err error) + func (dns *Msg) Copy() *Msg + func (dns *Msg) CopyTo(r1 *Msg) *Msg + func (dns *Msg) IsEdns0() *OPT + func (dns *Msg) IsTsig() *TSIG + func (dns *Msg) Len() int + func (dns *Msg) Pack() (msg []byte, err error) + func (dns *Msg) PackBuffer(buf []byte) (msg []byte, err error) + func (dns *Msg) SetAxfr(z string) *Msg + func (dns *Msg) SetEdns0(udpsize uint16, do bool) *Msg + func (dns *Msg) SetIxfr(z string, serial uint32, ns, mbox string) *Msg + func (dns *Msg) SetNotify(z string) *Msg + func (dns *Msg) SetQuestion(z string, t uint16) *Msg + func (dns *Msg) SetRcode(request *Msg, rcode int) *Msg + func (dns *Msg) SetRcodeFormatError(request *Msg) *Msg + func (dns *Msg) SetReply(request *Msg) *Msg + func (dns *Msg) SetTsig(z, algo string, fudge uint16, timesigned int64) *Msg + func (dns *Msg) SetUpdate(z string) *Msg + func (dns *Msg) String() string + func (dns *Msg) Unpack(msg []byte) (err error) + func (u *Msg) Insert(rr []RR) + func (u *Msg) NameNotUsed(rr []RR) + func (u *Msg) NameUsed(rr []RR) + func (u *Msg) RRsetNotUsed(rr []RR) + func (u *Msg) RRsetUsed(rr []RR) + func (u *Msg) Remove(rr []RR) + func (u *Msg) RemoveName(rr []RR) + func (u *Msg) RemoveRRset(rr []RR) + func (u *Msg) Used(rr []RR) + type MsgHdr struct + AuthenticatedData bool + Authoritative bool + CheckingDisabled bool + Id uint16 + Opcode int + Rcode int + RecursionAvailable bool + RecursionDesired bool + Response bool + Truncated bool + Zero bool + func (h *MsgHdr) String() string + type NAPTR struct + Flags string + Hdr RR_Header + Order uint16 + Preference uint16 + Regexp string + Replacement string + Service string + func (rr *NAPTR) Header() *RR_Header + func (rr *NAPTR) String() string + type NID struct + Hdr RR_Header + NodeID uint64 + Preference uint16 + func (rr *NID) Header() *RR_Header + func (rr *NID) String() string + type NIMLOC struct + Hdr RR_Header + Locator string + func (rr *NIMLOC) Header() *RR_Header + func (rr *NIMLOC) String() string + type NINFO struct + Hdr RR_Header + ZSData []string + func (rr *NINFO) Header() *RR_Header + func (rr *NINFO) String() string + type NS struct + Hdr RR_Header + Ns string + func (rr *NS) Header() *RR_Header + func (rr *NS) String() string + type NSAPPTR struct + Hdr RR_Header + Ptr string + func (rr *NSAPPTR) Header() *RR_Header + func (rr *NSAPPTR) String() string + type NSEC struct + Hdr RR_Header + NextDomain string + TypeBitMap []uint16 + func (rr *NSEC) Header() *RR_Header + func (rr *NSEC) String() string + type NSEC3 struct + Flags uint8 + Hash uint8 + HashLength uint8 + Hdr RR_Header + Iterations uint16 + NextDomain string + Salt string + SaltLength uint8 + TypeBitMap []uint16 + func (rr *NSEC3) Cover(name string) bool + func (rr *NSEC3) Header() *RR_Header + func (rr *NSEC3) Match(name string) bool + func (rr *NSEC3) String() string + type NSEC3PARAM struct + Flags uint8 + Hash uint8 + Hdr RR_Header + Iterations uint16 + Salt string + SaltLength uint8 + func (rr *NSEC3PARAM) Header() *RR_Header + func (rr *NSEC3PARAM) String() string + type Name string + func (n Name) String() string + type OPENPGPKEY struct + Hdr RR_Header + PublicKey string + func (rr *OPENPGPKEY) Header() *RR_Header + func (rr *OPENPGPKEY) String() string + type OPT struct + Hdr RR_Header + Option []EDNS0 + func (rr *OPT) Do() bool + func (rr *OPT) ExtendedRcode() int + func (rr *OPT) Header() *RR_Header + func (rr *OPT) SetDo(do ...bool) + func (rr *OPT) SetExtendedRcode(v uint8) + func (rr *OPT) SetUDPSize(size uint16) + func (rr *OPT) SetVersion(v uint8) + func (rr *OPT) String() string + func (rr *OPT) UDPSize() uint16 + func (rr *OPT) Version() uint8 + type PTR struct + Hdr RR_Header + Ptr string + func (rr *PTR) Header() *RR_Header + func (rr *PTR) String() string + type PX struct + Hdr RR_Header + Map822 string + Mapx400 string + Preference uint16 + func (rr *PX) Header() *RR_Header + func (rr *PX) String() string + type ParseError struct + func (e *ParseError) Error() (s string) + type PrivateRR struct + Data PrivateRdata + Hdr RR_Header + func (r *PrivateRR) Header() *RR_Header + func (r *PrivateRR) String() string + type PrivateRdata interface + Copy func(PrivateRdata) error + Len func() int + Pack func([]byte) (int, error) + Parse func([]string) error + String func() string + Unpack func([]byte) (int, error) + type Question struct + Name string + Qclass uint16 + Qtype uint16 + func (q *Question) String() (s string) + type RFC3597 struct + Hdr RR_Header + Rdata string + func (rr *RFC3597) Header() *RR_Header + func (rr *RFC3597) String() string + func (rr *RFC3597) ToRFC3597(r RR) error + type RKEY struct + Algorithm uint8 + Flags uint16 + Hdr RR_Header + Protocol uint8 + PublicKey string + func (rr *RKEY) Header() *RR_Header + func (rr *RKEY) String() string + type RP struct + Hdr RR_Header + Mbox string + Txt string + func (rr *RP) Header() *RR_Header + func (rr *RP) String() string + type RR interface + Header func() *RR_Header + String func() string + func Copy(r RR) RR + func Dedup(rrs []RR, m map[string]RR) []RR + func NewRR(s string) (RR, error) + func ReadRR(q io.Reader, filename string) (RR, error) + func UnpackRR(msg []byte, off int) (rr RR, off1 int, err error) + func UnpackRRWithHeader(h RR_Header, msg []byte, off int) (rr RR, off1 int, err error) + type RRSIG struct + Algorithm uint8 + Expiration uint32 + Hdr RR_Header + Inception uint32 + KeyTag uint16 + Labels uint8 + OrigTtl uint32 + Signature string + SignerName string + TypeCovered uint16 + func (rr *RRSIG) Header() *RR_Header + func (rr *RRSIG) Sign(k crypto.Signer, rrset []RR) error + func (rr *RRSIG) String() string + func (rr *RRSIG) ValidityPeriod(t time.Time) bool + func (rr *RRSIG) Verify(k *DNSKEY, rrset []RR) error + type RR_Header struct + Class uint16 + Name string + Rdlength uint16 + Rrtype uint16 + Ttl uint32 + func (h *RR_Header) Header() *RR_Header + func (h *RR_Header) String() string + type RT struct + Hdr RR_Header + Host string + Preference uint16 + func (rr *RT) Header() *RR_Header + func (rr *RT) String() string + type Reader interface + ReadTCP func(conn net.Conn, timeout time.Duration) ([]byte, error) + ReadUDP func(conn *net.UDPConn, timeout time.Duration) ([]byte, *SessionUDP, error) + type ResponseWriter interface + Close func() error + Hijack func() + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + TsigStatus func() error + TsigTimersOnly func(bool) + Write func([]byte) (int, error) + WriteMsg func(*Msg) error + type SIG struct + func (rr *SIG) Header() *RR_Header + func (rr *SIG) Sign(k crypto.Signer, m *Msg) ([]byte, error) + func (rr *SIG) Verify(k *KEY, buf []byte) error + type SMIMEA struct + Certificate string + Hdr RR_Header + MatchingType uint8 + Selector uint8 + Usage uint8 + func (r *SMIMEA) Sign(usage, selector, matchingType int, cert *x509.Certificate) (err error) + func (r *SMIMEA) Verify(cert *x509.Certificate) error + func (rr *SMIMEA) Header() *RR_Header + func (rr *SMIMEA) String() string + type SOA struct + Expire uint32 + Hdr RR_Header + Mbox string + Minttl uint32 + Ns string + Refresh uint32 + Retry uint32 + Serial uint32 + func (rr *SOA) Header() *RR_Header + func (rr *SOA) String() string + type SPF struct + Hdr RR_Header + Txt []string + func (rr *SPF) Header() *RR_Header + func (rr *SPF) String() string + type SRV struct + Hdr RR_Header + Port uint16 + Priority uint16 + Target string + Weight uint16 + func (rr *SRV) Header() *RR_Header + func (rr *SRV) String() string + type SSHFP struct + Algorithm uint8 + FingerPrint string + Hdr RR_Header + Type uint8 + func (rr *SSHFP) Header() *RR_Header + func (rr *SSHFP) String() string + type ServeMux struct + func NewServeMux() *ServeMux + func (mux *ServeMux) Handle(pattern string, handler Handler) + func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Msg)) + func (mux *ServeMux) HandleRemove(pattern string) + func (mux *ServeMux) ServeDNS(w ResponseWriter, request *Msg) + type Server struct + Addr string + DecorateReader DecorateReader + DecorateWriter DecorateWriter + Handler Handler + IdleTimeout func() time.Duration + Listener net.Listener + MaxTCPQueries int + Net string + NotifyStartedFunc func() + PacketConn net.PacketConn + ReadTimeout time.Duration + TLSConfig *tls.Config + TsigSecret map[string]string + UDPSize int + Unsafe bool + WriteTimeout time.Duration + func (srv *Server) ActivateAndServe() error + func (srv *Server) ListenAndServe() error + func (srv *Server) Shutdown() error + type SessionUDP struct + func ReadFromSessionUDP(conn *net.UDPConn, b []byte) (int, *SessionUDP, error) + func (s *SessionUDP) RemoteAddr() net.Addr + type TA struct + Algorithm uint8 + Digest string + DigestType uint8 + Hdr RR_Header + KeyTag uint16 + func (rr *TA) Header() *RR_Header + func (rr *TA) String() string + type TALINK struct + Hdr RR_Header + NextName string + PreviousName string + func (rr *TALINK) Header() *RR_Header + func (rr *TALINK) String() string + type TKEY struct + Algorithm string + Error uint16 + Expiration uint32 + Hdr RR_Header + Inception uint32 + Key string + KeySize uint16 + Mode uint16 + OtherData string + OtherLen uint16 + func (rr *TKEY) Header() *RR_Header + func (rr *TKEY) String() string + type TLSA struct + Certificate string + Hdr RR_Header + MatchingType uint8 + Selector uint8 + Usage uint8 + func (r *TLSA) Sign(usage, selector, matchingType int, cert *x509.Certificate) (err error) + func (r *TLSA) Verify(cert *x509.Certificate) error + func (rr *TLSA) Header() *RR_Header + func (rr *TLSA) String() string + type TSIG struct + Algorithm string + Error uint16 + Fudge uint16 + Hdr RR_Header + MAC string + MACSize uint16 + OrigId uint16 + OtherData string + OtherLen uint16 + TimeSigned uint64 + func (rr *TSIG) Header() *RR_Header + func (rr *TSIG) String() string + type TXT struct + Hdr RR_Header + Txt []string + func (rr *TXT) Header() *RR_Header + func (rr *TXT) String() string + type Token struct + Comment string + Error *ParseError + type Transfer struct + DialTimeout time.Duration + ReadTimeout time.Duration + TsigSecret map[string]string + WriteTimeout time.Duration + func (t *Transfer) In(q *Msg, a string) (env chan *Envelope, err error) + func (t *Transfer) Out(w ResponseWriter, q *Msg, ch chan *Envelope) error + func (t *Transfer) ReadMsg() (*Msg, error) + func (t *Transfer) WriteMsg(m *Msg) (err error) + type Type uint16 + func (t Type) String() string + type UID struct + Hdr RR_Header + Uid uint32 + func (rr *UID) Header() *RR_Header + func (rr *UID) String() string + type UINFO struct + Hdr RR_Header + Uinfo string + func (rr *UINFO) Header() *RR_Header + func (rr *UINFO) String() string + type URI struct + Hdr RR_Header + Priority uint16 + Target string + Weight uint16 + func (rr *URI) Header() *RR_Header + func (rr *URI) String() string + type V struct + Major int + Minor int + Patch int + func (v V) String() string + type Writer interface + type X25 struct + Hdr RR_Header + PSDNAddress string + func (rr *X25) Header() *RR_Header + func (rr *X25) String() string