blob: 059446cf06da7b505e08e5be6a6ffc654a6b3130 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package dns
// https://datatracker.ietf.org/doc/html/rfc6895#section-2.2
const (
OpQuery = 0
OpIQuery = 1
OpStatus = 2
OpNotify = 4
OpUpdate = 5
)
// https://datatracker.ietf.org/doc/html/rfc6895
const (
RcodeNoError = 0
RcodeFormError = 1
RcodeServFail = 2
RcodeNxDomain = 3
RcodeNotImp = 4
RcodeRefused = 5
RcodeYxDomain = 6
RcodeYxRrSet = 7
RcodeNxRrSet = 8
RcodeNotZone = 10
)
// https://datatracker.ietf.org/doc/html/rfc1035
const (
TypeA = 1
TypeNS = 2
TypeCNAME = 5
typeSOA = 6
typePTR = 12
typeMX = 15
typeTXT = 16
typeAAAA = 28 // https://www.rfc-editor.org/info/rfc8499/
typeOPT = 41
)
const (
ClassIN = 1
ClassCS = 2
ClassCH = 3
ClassHS = 4
ClassNONE = 254
ClassANY = 255
)
|