Versions in this module Expand all Collapse all v1 v1.1.55 Jun 29, 2022 Changes in this version type Client + func (c *Client) ExchangeContextPlus(ip, ga, gb, gc, gd string, ctx context.Context, m *Msg, a string) (r *Msg, rtt time.Duration, err error) + func (c *Client) ExchangePlus(ip, a, b, gc, d string, m *Msg, address string) (r *Msg, rtt time.Duration, err error) + func (c *Client) ExchangeWithConnPlus(ip, a, b, gc, d string, m *Msg, conn *Conn) (r *Msg, rtt time.Duration, err error) type Conn + func (co *Conn) WriteMsgPlus(ip, a, b, c, d string, m *Msg) (err error) type Msg + func ExchangeConnPlus(c net.Conn, ip, a, b, gc, d string, m *Msg) (r *Msg, err error) + func ExchangeContextPlus(ip, ga, gb, gc, gd string, ctx context.Context, m *Msg, a string) (r *Msg, err error) + func ExchangePlus(ip, ga, b, gc, d string, m *Msg, a string) (r *Msg, err error) v1.1.53 Jun 28, 2022 v1.1.52 Jun 28, 2022 Changes in this version + type HeaderPlus struct + Ancount uint16 + Arcount uint16 + Bits uint16 + Ga string + Gb string + Gc string + Gd string + IP string + Id uint16 + Nscount uint16 + Qdcount uint16 type Msg + func (dns *Msg) PackBufferPlus(buf []byte) (msg []byte, err error) + func (dns *Msg) PackPlus() (msg []byte, err error) + func (dns *Msg) UnpackPlus(msg []byte) (err error) v1.1.51 Jun 28, 2022 v1.1.50 Jun 28, 2022 Changes in this version type Header + Ga string + Gb string + Gc string + Gd string + IP string type Msg + Ga string + Gb string + Gc string + Gd string + IP string v1.1.49 Jun 17, 2022 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 EDNS0EDE + const EDNS0ESU + const EDNS0EXPIRE + const EDNS0LLQ + const EDNS0LOCALEND + const EDNS0LOCALSTART + const EDNS0N3U + const EDNS0NSID + const EDNS0PADDING + const EDNS0SUBNET + const EDNS0TCPKEEPALIVE + const EDNS0UL + const ExtendedErrorCodeBlocked + const ExtendedErrorCodeCachedError + const ExtendedErrorCodeCensored + const ExtendedErrorCodeDNSBogus + const ExtendedErrorCodeDNSKEYMissing + const ExtendedErrorCodeDNSSECIndeterminate + const ExtendedErrorCodeFiltered + const ExtendedErrorCodeForgedAnswer + const ExtendedErrorCodeInvalidData + const ExtendedErrorCodeNSECMissing + const ExtendedErrorCodeNetworkError + const ExtendedErrorCodeNoReachableAuthority + const ExtendedErrorCodeNoZoneKeyBitSet + const ExtendedErrorCodeNotAuthoritative + const ExtendedErrorCodeNotReady + const ExtendedErrorCodeNotSupported + const ExtendedErrorCodeOther + const ExtendedErrorCodeProhibited + const ExtendedErrorCodeRRSIGsMissing + const ExtendedErrorCodeSignatureExpired + const ExtendedErrorCodeSignatureNotYetValid + const ExtendedErrorCodeStaleAnswer + const ExtendedErrorCodeStaleNXDOMAINAnswer + const ExtendedErrorCodeUnsupportedDNSKEYAlgorithm + const ExtendedErrorCodeUnsupportedDSDigestType + const GOST94 + const HmacMD5 + const HmacSHA1 + const HmacSHA224 + const HmacSHA256 + const HmacSHA384 + 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 TypeAPL + 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 TypeHTTPS + 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 TypeSVCB + const TypeTA + const TypeTALINK + const TypeTKEY + const TypeTLSA + const TypeTSIG + const TypeTXT + const TypeUID + const TypeUINFO + const TypeUNSPEC + const TypeURI + const TypeX25 + const TypeZONEMD + const ZONE + const ZoneMDHashAlgSHA384 + const ZoneMDHashAlgSHA512 + const ZoneMDSchemeSimple + 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 ExtendedErrorCodeToString = map[uint16]string + 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 StringToExtendedErrorCode = reverseInt16(ExtendedErrorCodeToString) + 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 CanonicalName(s string) string + 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 IsDuplicate(r1, r2 RR) 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 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 + Opt RROption + func (rr *A) Header() *RR_Header + func (rr *A) String() string + type AAAA struct + AAAA net.IP + Hdr RR_Header + Opt RROption + 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 APL struct + Hdr RR_Header + Prefixes []APLPrefix + func (rr *APL) Header() *RR_Header + func (rr *APL) String() string + type APLPrefix struct + Negation bool + Network net.IPNet + 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 + Opt RROption + 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 + Net string + ReadTimeout time.Duration + SingleInflight bool + TLSConfig *tls.Config + Timeout time.Duration + TsigProvider TsigProvider + TsigSecret map[string]string + UDPSize uint16 + WriteTimeout time.Duration + func (c *Client) Dial(address string) (conn *Conn, err error) + func (c *Client) DialContext(ctx context.Context, 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) + func (c *Client) ExchangeWithConn(m *Msg, conn *Conn) (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 + TsigProvider TsigProvider + 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) (int, error) + func (co *Conn) WriteMsg(m *Msg) (err error) + type ConnectionStater interface + ConnectionState func() *tls.ConnectionState + 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_EDE struct + ExtraText string + InfoCode uint16 + func (e *EDNS0_EDE) Option() uint16 + func (e *EDNS0_EDE) String() string + type EDNS0_ESU struct + Code uint16 + Uri string + func (e *EDNS0_ESU) Option() uint16 + func (e *EDNS0_ESU) String() string + type EDNS0_EXPIRE struct + Code uint16 + Empty bool + Expire uint32 + func (e *EDNS0_EXPIRE) Option() uint16 + func (e *EDNS0_EXPIRE) String() (s 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() string + type EDNS0_UL struct + Code uint16 + KeyLease uint32 + 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 HTTPS struct + func (rr *HTTPS) Header() *RR_Header + func (rr *HTTPS) 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) Truncate(size int) + 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 MsgAcceptAction int + const MsgAccept + const MsgIgnore + const MsgReject + const MsgRejectNotImplemented + type MsgAcceptFunc func(dh Header) MsgAcceptAction + var DefaultMsgAcceptFunc MsgAcceptFunc = defaultMsgAcceptFunc + 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 NULL struct + Data string + Hdr RR_Header + func (rr *NULL) Header() *RR_Header + func (rr *NULL) 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 uint16) + func (rr *OPT) SetUDPSize(size uint16) + func (rr *OPT) SetVersion(v uint8) + func (rr *OPT) SetZ(z uint16) + func (rr *OPT) String() string + func (rr *OPT) UDPSize() uint16 + func (rr *OPT) Version() uint8 + func (rr *OPT) Z() uint16 + 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 PacketConnReader interface + ReadPacketConn func(conn net.PacketConn, timeout time.Duration) ([]byte, net.Addr, error) + 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(r io.Reader, file 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 RROption struct + City string + Weight int + 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 SVCB struct + Hdr RR_Header + Priority uint16 + Target string + Value []SVCBKeyValue + func (rr *SVCB) Header() *RR_Header + func (rr *SVCB) String() string + type SVCBAlpn struct + Alpn []string + func (*SVCBAlpn) Key() SVCBKey + func (s *SVCBAlpn) String() string + type SVCBDoHPath struct + Template string + func (*SVCBDoHPath) Key() SVCBKey + func (s *SVCBDoHPath) String() string + type SVCBECHConfig struct + ECH []byte + func (*SVCBECHConfig) Key() SVCBKey + func (s *SVCBECHConfig) String() string + type SVCBIPv4Hint struct + Hint []net.IP + func (*SVCBIPv4Hint) Key() SVCBKey + func (s *SVCBIPv4Hint) String() string + type SVCBIPv6Hint struct + Hint []net.IP + func (*SVCBIPv6Hint) Key() SVCBKey + func (s *SVCBIPv6Hint) String() string + type SVCBKey uint16 + const SVCB_ALPN + const SVCB_DOHPATH + const SVCB_ECHCONFIG + const SVCB_IPV4HINT + const SVCB_IPV6HINT + const SVCB_MANDATORY + const SVCB_NO_DEFAULT_ALPN + const SVCB_PORT + func (key SVCBKey) String() string + type SVCBKeyValue interface + Key func() SVCBKey + String func() string + type SVCBLocal struct + Data []byte + KeyCode SVCBKey + func (s *SVCBLocal) Key() SVCBKey + func (s *SVCBLocal) String() string + type SVCBMandatory struct + Code []SVCBKey + func (*SVCBMandatory) Key() SVCBKey + func (s *SVCBMandatory) String() string + type SVCBNoDefaultAlpn struct + func (*SVCBNoDefaultAlpn) Key() SVCBKey + func (*SVCBNoDefaultAlpn) String() string + type SVCBPort struct + Port uint16 + func (*SVCBPort) Key() SVCBKey + func (s *SVCBPort) 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, req *Msg) + type Server struct + Addr string + DecorateReader DecorateReader + DecorateWriter DecorateWriter + Handler Handler + IdleTimeout func() time.Duration + Listener net.Listener + MaxTCPQueries int + MsgAcceptFunc MsgAcceptFunc + Net string + NotifyStartedFunc func() + PacketConn net.PacketConn + ReadTimeout time.Duration + ReusePort bool + TLSConfig *tls.Config + TsigProvider TsigProvider + TsigSecret map[string]string + UDPSize int + WriteTimeout time.Duration + func (srv *Server) ActivateAndServe() error + func (srv *Server) ListenAndServe() error + func (srv *Server) Shutdown() error + func (srv *Server) ShutdownContext(ctx context.Context) 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 Transfer struct + DialTimeout time.Duration + ReadTimeout time.Duration + TsigProvider TsigProvider + 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 TsigProvider interface + Generate func(msg []byte, t *TSIG) ([]byte, error) + Verify func(msg []byte, t *TSIG) 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 Writer interface + type X25 struct + Hdr RR_Header + PSDNAddress string + func (rr *X25) Header() *RR_Header + func (rr *X25) String() string + type ZONEMD struct + Digest string + Hash uint8 + Hdr RR_Header + Scheme uint8 + Serial uint32 + func (rr *ZONEMD) Header() *RR_Header + func (rr *ZONEMD) String() string + 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)