/
string2dnstype.go
97 lines (94 loc) · 2.37 KB
/
string2dnstype.go
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package main
var txt2dnstype = map[string]uint16{}
var dnstype2txt = map[uint16]string{}
func init() {
txt2dnstype["None"] = 0
txt2dnstype["A"] = 1
txt2dnstype["NS"] = 2
txt2dnstype["MD"] = 3
txt2dnstype["MF"] = 4
txt2dnstype["CNAME"] = 5
txt2dnstype["SOA"] = 6
txt2dnstype["MB"] = 7
txt2dnstype["MG"] = 8
txt2dnstype["MR"] = 9
txt2dnstype["NULL"] = 10
txt2dnstype["PTR"] = 12
txt2dnstype["HINFO"] = 13
txt2dnstype["MINFO"] = 14
txt2dnstype["MX"] = 15
txt2dnstype["TXT"] = 16
txt2dnstype["RP"] = 17
txt2dnstype["AFSDB"] = 18
txt2dnstype["X25"] = 19
txt2dnstype["ISDN"] = 20
txt2dnstype["RT"] = 21
txt2dnstype["NSAPPTR"] = 23
txt2dnstype["SIG"] = 24
txt2dnstype["KEY"] = 25
txt2dnstype["PX"] = 26
txt2dnstype["GPOS"] = 27
txt2dnstype["AAAA"] = 28
txt2dnstype["LOC"] = 29
txt2dnstype["NXT"] = 30
txt2dnstype["EID"] = 31
txt2dnstype["NIMLOC"] = 32
txt2dnstype["SRV"] = 33
txt2dnstype["ATMA"] = 34
txt2dnstype["NAPTR"] = 35
txt2dnstype["KX"] = 36
txt2dnstype["CERT"] = 37
txt2dnstype["DNAME"] = 39
txt2dnstype["OPT"] = 41
txt2dnstype["APL"] = 42
txt2dnstype["DS"] = 43
txt2dnstype["SSHFP"] = 44
txt2dnstype["IPSECKEY"] = 45
txt2dnstype["RRSIG"] = 46
txt2dnstype["NSEC"] = 47
txt2dnstype["DNSKEY"] = 48
txt2dnstype["DHCID"] = 49
txt2dnstype["NSEC3"] = 50
txt2dnstype["NSEC3PARAM"] = 51
txt2dnstype["TLSA"] = 52
txt2dnstype["SMIMEA"] = 53
txt2dnstype["HIP"] = 55
txt2dnstype["NINFO"] = 56
txt2dnstype["RKEY"] = 57
txt2dnstype["TALINK"] = 58
txt2dnstype["CDS"] = 59
txt2dnstype["CDNSKEY"] = 60
txt2dnstype["OPENPGPKEY"] = 61
txt2dnstype["CSYNC"] = 62
txt2dnstype["ZONEMD"] = 63
txt2dnstype["SVCB"] = 64
txt2dnstype["HTTPS"] = 65
txt2dnstype["SPF"] = 99
txt2dnstype["UINFO"] = 100
txt2dnstype["UID"] = 101
txt2dnstype["GID"] = 102
txt2dnstype["UNSPEC"] = 103
txt2dnstype["NID"] = 104
txt2dnstype["L32"] = 105
txt2dnstype["L64"] = 106
txt2dnstype["LP"] = 107
txt2dnstype["EUI48"] = 108
txt2dnstype["EUI64"] = 109
txt2dnstype["URI"] = 256
txt2dnstype["CAA"] = 257
txt2dnstype["AVC"] = 258
txt2dnstype["AMTRELAY"] = 260
txt2dnstype["TKEY"] = 249
txt2dnstype["TSIG"] = 250
txt2dnstype["IXFR"] = 251
txt2dnstype["AXFR"] = 252
txt2dnstype["MAILB"] = 253
txt2dnstype["MAILA"] = 254
txt2dnstype["ANY"] = 255
txt2dnstype["TA"] = 32768
txt2dnstype["DLV"] = 32769
txt2dnstype["Reserved"] = 65535
for k, v := range txt2dnstype {
dnstype2txt[v] = k
}
}