Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/miekg/dns
/ types & classes
Types & classes
180 in github.com/miekg/dns
⨍
Functions
1,687
◇
Types & classes
180
↓ 11 callers
TypeAlias
tsigHMACProvider
tsig.go:35
↓ 8 callers
TypeAlias
Type
Type is a DNS type.
types.go:14
↓ 6 callers
FuncType
HandlerFunc
The HandlerFunc type is an adapter to allow the use of ordinary functions as DNS handlers. If f is a function with the appropriate signature, Handler
server.go:33
↓ 6 callers
TypeAlias
SVCBKey
SVCBKey is the type of the keys used in the SVCB RR.
svcb.go:15
↓ 6 callers
TypeAlias
tsigSecretProvider
tsig.go:77
↓ 2 callers
TypeAlias
Class
Class is a DNS class.
types.go:16
↓ 2 callers
Interface
Reader
Reader reads raw DNS messages; each call to ReadTCP or ReadUDP should return an entire message.
server.go:142
↓ 1 callers
FuncType
DecorateWriter
DecorateWriter is a decorator hook for extending or supplanting the functionality of a Writer. Implementations should never return a nil Writer.
server.go:189
Struct
A
A RR. See RFC 1035.
types.go:785
Struct
AAAA
AAAA RR. See RFC 3596.
types.go:798
Struct
AFSDB
AFSDB RR. See RFC 1183.
types.go:424
Struct
AMTRELAY
AMTRELAY RR. See RFC 8777.
types.go:1112
Struct
ANY
ANY is a wild card record. See RFC 1035, Section 3.2.3. ANY is named "*" there. The ANY records can be (ab)used to create resource records without any
types.go:297
Struct
APAIR
example_test.go:60
Struct
APL
APL RR. See RFC 3123.
types.go:1546
Struct
APLPrefix
APLPrefix is an address prefix hold by an APL record.
types.go:1552
Struct
AVC
AVC RR. See https://www.iana.org/assignments/dns-parameters/AVC/avc-completed-template.
types.go:704
Struct
CAA
CAA RR. See RFC 6844.
types.go:1435
Struct
CDNSKEY
CDNSKEY RR. See RFC 7344.
types.go:1060
Struct
CDS
CDS RR. See RFC 7344.
types.go:982
Struct
CERT
CERT RR. See RFC 4398.
types.go:749
Struct
CNAME
CNAME RR. See RFC 1034.
types.go:337
Struct
CSYNC
CSYNC RR. See RFC 7477.
types.go:1496
Struct
Client
A Client defines parameters for a DNS client.
client.go:50
Struct
ClientConfig
ClientConfig wraps the contents of the /etc/resolv.conf file.
clientconfig.go:12
Struct
Conn
A Conn represents a connection to a DNS server.
client.go:33
Interface
ConnectionStater
A ConnectionStater interface is used by a DNS Handler to access TLS connection state when available.
server.go:64
Struct
DHCID
DHCID RR. See RFC 4701.
types.go:1287
Struct
DLV
DLV RR. See RFC 4431.
types.go:979
Struct
DNAME
DNAME RR. See RFC 2672.
types.go:775
Struct
DNSKEY
DNSKEY RR. See RFC 4034 and RFC 3755.
types.go:1065
Struct
DS
DS RR. See RFC 4034 and RFC 3658.
types.go:985
FuncType
DecorateReader
DecorateReader is a decorator hook for extending or supplanting the functionality of a Reader. Implementations should never return a nil Reader. Reade
server.go:185
Interface
EDNS0
EDNS0 defines an EDNS0 Option. An OPT RR can have multiple options appended to it.
edns.go:243
Struct
EDNS0_COOKIE
The EDNS0_COOKIE option is used to add a DNS Cookie to a message. o := new(dns.OPT) o.Hdr.Name = "." o.Hdr.Rrtype = dns.TypeOPT e := new(dns.EDNS
edns.go:445
Struct
EDNS0_DAU
EDNS0_DAU implements the EDNS0 "DNSSEC Algorithm Understood" option. See RFC 6975.
edns.go:561
Struct
EDNS0_DHU
EDNS0_DHU implements the EDNS0 "DS Hash Understood" option. See RFC 6975.
edns.go:585
Struct
EDNS0_EDE
EDNS0_EDE option is used to return additional information about the cause of DNS errors.
edns.go:853
Struct
EDNS0_ESU
The EDNS0_ESU option for ENUM Source-URI Extension.
edns.go:887
Struct
EDNS0_EXPIRE
EDNS0_EXPIRE implements the EDNS0 option as described in RFC 7314.
edns.go:634
Struct
EDNS0_LLQ
EDNS0_LLQ stands for Long Lived Queries: http://tools.ietf.org/html/draft-sekar-dns-llq-01 Implemented for completeness, as the EDNS0 type code is ass
edns.go:515
Struct
EDNS0_LOCAL
The EDNS0_LOCAL option is used for local/experimental purposes. The option code is recommended to be within the range [EDNS0LOCALSTART, EDNS0LOCALEND]
edns.go:687
Struct
EDNS0_N3U
EDNS0_N3U implements the EDNS0 "NSEC3 Hash Understood" option. See RFC 6975.
edns.go:609
Struct
EDNS0_NSID
EDNS0_NSID option is used to retrieve a nameserver identifier. When sending a request Nsid must be set to the empty string The identifier is an opaque
edns.go:269
Struct
EDNS0_PADDING
EDNS0_PADDING option is used to add padding to a request/response. The default value of padding SHOULD be 0x0 but other values MAY be used, for instan
edns.go:765
Struct
EDNS0_REPORTING
EDNS0_REPORTING implements the EDNS0 Reporting Channel option (RFC 9567).
edns.go:902
Struct
EDNS0_SUBNET
EDNS0_SUBNET is the subnet option that is used to give the remote nameserver an idea of where the client lives. See RFC 7871. It can then give back a
edns.go:308
Struct
EDNS0_TCP_KEEPALIVE
EDNS0_TCP_KEEPALIVE is an EDNS0 option that instructs the server to keep the TCP connection alive. See RFC 7828.
edns.go:714
Struct
EDNS0_UL
The EDNS0_UL (Update Lease) (draft RFC) option is used to tell the server to set an expiration on an update RR. This is helpful for clients that canno
edns.go:476
Struct
EDNS0_ZONEVERSION
EDNS0_ZONEVERSION implements the EDNS0 Zone Version option (RFC 9660).
edns.go:928
Struct
EID
EID RR. See http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt.
types.go:1472
Struct
EUI48
EUI48 RR. See RFC 7043.
types.go:1419
Struct
EUI64
EUI64 RR. See RFC 7043.
types.go:1427
Struct
Envelope
Envelope is used when doing a zone transfer with a remote server.
xfr.go:10
Struct
Error
Error represents a DNS error.
dns.go:21
Struct
ExampleFrameLengthWriter
server_test.go:1436
Struct
GID
GID RR. Deprecated, IANA-Reserved.
types.go:1456
Struct
GPOS
GPOS RR. See RFC 1712.
types.go:828
Struct
HINFO
HINFO RR. See RFC 1034.
types.go:345
Struct
HIP
HIP RR. See RFC 8005.
types.go:1335
Struct
HTTPS
HTTPS RR. See RFC 9460. Everything valid for SVCB applies to HTTPS as well. Except that the HTTPS record is intended for use with the HTTP and HTTPS p
svcb.go:227
Interface
Handler
Handler is implemented by any value that implements ServeDNS.
server.go:25
Struct
Header
Header is the wire format for the DNS packet header.
types.go:198
Struct
IPSECKEY
IPSECKEY RR. See RFC 4025.
types.go:1081
Struct
ISBN
A crazy new RR type :)
privaterr_test.go:13
Struct
ISDN
ISDN RR. See RFC 1183, Section 3.2.
types.go:445
Struct
KEY
KEY RR. See RFC 2535.
types.go:1055
Struct
KX
KX RR. See RFC 2230.
types.go:1001
Struct
L32
L32 RR, See RFC 6742.
types.go:1379
Struct
L64
L64 RR, See RFC 6742.
types.go:1394
Struct
LOC
LOC RR. See RFC 1876.
types.go:840
Struct
LP
LP RR. See RFC 6742.
types.go:1408
Struct
MB
MB RR. See RFC 1035.
types.go:356
Struct
MD
MD RR. See RFC 1035.
types.go:403
Struct
MF
MF RR. See RFC 1035.
types.go:393
Struct
MG
MG RR. See RFC 1035.
types.go:364
Struct
MINFO
MINFO RR. See RFC 1035.
types.go:372
Struct
MR
MR RR. See RFC 1035.
types.go:383
Struct
MX
MX RR. See RFC 1035.
types.go:413
Struct
Msg
Msg contains the layout of a DNS message.
msg.go:109
TypeAlias
MsgAcceptAction
MsgAcceptAction represents the action to be taken.
acceptfunc.go:23
FuncType
MsgAcceptFunc
MsgAcceptFunc is used early in the server code to accept or reject a message with RcodeFormatError. It returns a MsgAcceptAction to indicate what shou
acceptfunc.go:5
Struct
MsgHdr
MsgHdr is a a manually-unpacked version of (id, bits).
msg.go:94
FuncType
MsgInvalidFunc
MsgInvalidFunc is a listener hook for observing incoming messages that were discarded because they could not be parsed. Every message that is read by
server.go:195
Struct
NAPTR
NAPTR RR. See RFC 2915.
types.go:728
Struct
NID
NID RR. See RFC 6742.
types.go:1365
Struct
NIMLOC
NIMLOC RR. See http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt.
types.go:1480
Struct
NINFO
NINFO RR. See https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template.
types.go:1357
Struct
NS
NS RR. See RFC 1035.
types.go:467
Struct
NSAPPTR
NSAPPTR RR. See RFC 1348.
types.go:1160
Struct
NSEC
NSEC RR. See RFC 4034 and RFC 3755.
types.go:957
Struct
NSEC3
NSEC3 RR. See RFC 5155.
types.go:1168
Struct
NSEC3PARAM
NSEC3PARAM RR. See RFC 5155.
types.go:1201
Struct
NULL
NULL RR. See RFC 1035.
types.go:309
Struct
NXNAME
NXNAME is a meta record. See https://www.iana.org/go/draft-ietf-dnsop-compact-denial-of-existence-04 Reference: https://www.iana.org/assignments/dns-p
types.go:325
Struct
NXT
NXT RR. See RFC 2535.
types.go:952
TypeAlias
Name
Name is a DNS domain name.
types.go:18
Struct
OPENPGPKEY
OPENPGPKEY RR. See RFC 7929.
types.go:1488
Struct
OPT
OPT is the EDNS0 RR appended to messages to convey extra (meta) information. See RFC 6891.
edns.go:77
Struct
PTR
PTR RR. See RFC 1035.
types.go:477
next →
1–100 of 180, ranked by callers