Comparison

net/dns.lua @ 8903:c5d5dfaa8d38

net.dns: Expand table of known RR types from IANA registry
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jun 2018 15:30:26 +0200
parent 8902:ac21f13798ae
child 8909:dbb5ec6885fe
comparison
equal deleted inserted replaced
8902:ac21f13798ae 8903:c5d5dfaa8d38
111 return code; 111 return code;
112 end 112 end
113 113
114 114
115 dns.types = { 115 dns.types = {
116 'A', 'NS', 'MD', 'MF', 'CNAME', 'SOA', 'MB', 'MG', 'MR', 'NULL', 'WKS', 116 [1] = "A", -- a host address,[RFC1035],,
117 'PTR', 'HINFO', 'MINFO', 'MX', 'TXT', 117 [2] = "NS", -- an authoritative name server,[RFC1035],,
118 [ 28] = 'AAAA', [ 29] = 'LOC', [ 33] = 'SRV', 118 [3] = "MD", -- a mail destination (OBSOLETE - use MX),[RFC1035],,
119 [252] = 'AXFR', [253] = 'MAILB', [254] = 'MAILA', [255] = '*' }; 119 [4] = "MF", -- a mail forwarder (OBSOLETE - use MX),[RFC1035],,
120 120 [5] = "CNAME", -- the canonical name for an alias,[RFC1035],,
121 [6] = "SOA", -- marks the start of a zone of authority,[RFC1035],,
122 [7] = "MB", -- a mailbox domain name (EXPERIMENTAL),[RFC1035],,
123 [8] = "MG", -- a mail group member (EXPERIMENTAL),[RFC1035],,
124 [9] = "MR", -- a mail rename domain name (EXPERIMENTAL),[RFC1035],,
125 [10] = "NULL", -- a null RR (EXPERIMENTAL),[RFC1035],,
126 [11] = "WKS", -- a well known service description,[RFC1035],,
127 [12] = "PTR", -- a domain name pointer,[RFC1035],,
128 [13] = "HINFO", -- host information,[RFC1035],,
129 [14] = "MINFO", -- mailbox or mail list information,[RFC1035],,
130 [15] = "MX", -- mail exchange,[RFC1035],,
131 [16] = "TXT", -- text strings,[RFC1035],,
132 [17] = "RP", -- for Responsible Person,[RFC1183],,
133 [18] = "AFSDB", -- for AFS Data Base location,[RFC1183][RFC5864],,
134 [19] = "X25", -- for X.25 PSDN address,[RFC1183],,
135 [20] = "ISDN", -- for ISDN address,[RFC1183],,
136 [21] = "RT", -- for Route Through,[RFC1183],,
137 [22] = "NSAP", -- "for NSAP address, NSAP style A record",[RFC1706],,
138 [23] = "NSAP-PTR", -- "for domain name pointer, NSAP style",[RFC1348][RFC1637][RFC1706],,
139 [24] = "SIG", -- for security signature,[RFC4034][RFC3755][RFC2535][RFC2536][RFC2537][RFC2931][RFC3110][RFC3008],,
140 [25] = "KEY", -- for security key,[RFC4034][RFC3755][RFC2535][RFC2536][RFC2537][RFC2539][RFC3008][RFC3110],,
141 [26] = "PX", -- X.400 mail mapping information,[RFC2163],,
142 [27] = "GPOS", -- Geographical Position,[RFC1712],,
143 [28] = "AAAA", -- IP6 Address,[RFC3596],,
144 [29] = "LOC", -- Location Information,[RFC1876],,
145 [30] = "NXT", -- Next Domain (OBSOLETE),[RFC3755][RFC2535],,
146 [31] = "EID", -- Endpoint Identifier,[Michael_Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt],,1995-06
147 [32] = "NIMLOC", -- Nimrod Locator,[1][Michael_Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt],,1995-06
148 [33] = "SRV", -- Server Selection,[1][RFC2782],,
149 [34] = "ATMA", -- ATM Address,"[ ATM Forum Technical Committee, ""ATM Name System, V2.0"", Doc ID: AF-DANS-0152.000, July 2000. Available from and held in escrow by IANA.]",,
150 [35] = "NAPTR", -- Naming Authority Pointer,[RFC2915][RFC2168][RFC3403],,
151 [36] = "KX", -- Key Exchanger,[RFC2230],,
152 [37] = "CERT", -- CERT,[RFC4398],,
153 [38] = "A6", -- A6 (OBSOLETE - use AAAA),[RFC3226][RFC2874][RFC6563],,
154 [39] = "DNAME", -- DNAME,[RFC6672],,
155 [40] = "SINK", -- SINK,[Donald_E_Eastlake][http://tools.ietf.org/html/draft-eastlake-kitchen-sink],,1997-11
156 [41] = "OPT", -- OPT,[RFC6891][RFC3225],,
157 [42] = "APL", -- APL,[RFC3123],,
158 [43] = "DS", -- Delegation Signer,[RFC4034][RFC3658],,
159 [44] = "SSHFP", -- SSH Key Fingerprint,[RFC4255],,
160 [45] = "IPSECKEY", -- IPSECKEY,[RFC4025],,
161 [46] = "RRSIG", -- RRSIG,[RFC4034][RFC3755],,
162 [47] = "NSEC", -- NSEC,[RFC4034][RFC3755],,
163 [48] = "DNSKEY", -- DNSKEY,[RFC4034][RFC3755],,
164 [49] = "DHCID", -- DHCID,[RFC4701],,
165 [50] = "NSEC3", -- NSEC3,[RFC5155],,
166 [51] = "NSEC3PARAM", -- NSEC3PARAM,[RFC5155],,
167 [52] = "TLSA", -- TLSA,[RFC6698],,
168 [53] = "SMIMEA", -- S/MIME cert association,[RFC8162],SMIMEA/smimea-completed-template,2015-12-01
169 -- [54] = "Unassigned", -- ,,,
170 [55] = "HIP", -- Host Identity Protocol,[RFC8005],,
171 [56] = "NINFO", -- NINFO,[Jim_Reid],NINFO/ninfo-completed-template,2008-01-21
172 [57] = "RKEY", -- RKEY,[Jim_Reid],RKEY/rkey-completed-template,2008-01-21
173 [58] = "TALINK", -- Trust Anchor LINK,[Wouter_Wijngaards],TALINK/talink-completed-template,2010-02-17
174 [59] = "CDS", -- Child DS,[RFC7344],CDS/cds-completed-template,2011-06-06
175 [60] = "CDNSKEY", -- DNSKEY(s) the Child wants reflected in DS,[RFC7344],,2014-06-16
176 [61] = "OPENPGPKEY", -- OpenPGP Key,[RFC7929],OPENPGPKEY/openpgpkey-completed-template,2014-08-12
177 [62] = "CSYNC", -- Child-To-Parent Synchronization,[RFC7477],,2015-01-27
178 -- [63 .. 98] = "Unassigned", -- ,,,
179 [99] = "SPF", -- ,[RFC7208],,
180 [100] = "UINFO", -- ,[IANA-Reserved],,
181 [101] = "UID", -- ,[IANA-Reserved],,
182 [102] = "GID", -- ,[IANA-Reserved],,
183 [103] = "UNSPEC", -- ,[IANA-Reserved],,
184 [104] = "NID", -- ,[RFC6742],ILNP/nid-completed-template,
185 [105] = "L32", -- ,[RFC6742],ILNP/l32-completed-template,
186 [106] = "L64", -- ,[RFC6742],ILNP/l64-completed-template,
187 [107] = "LP", -- ,[RFC6742],ILNP/lp-completed-template,
188 [108] = "EUI48", -- an EUI-48 address,[RFC7043],EUI48/eui48-completed-template,2013-03-27
189 [109] = "EUI64", -- an EUI-64 address,[RFC7043],EUI64/eui64-completed-template,2013-03-27
190 -- [110 .. 248] = "Unassigned", -- ,,,
191 [249] = "TKEY", -- Transaction Key,[RFC2930],,
192 [250] = "TSIG", -- Transaction Signature,[RFC2845],,
193 [251] = "IXFR", -- incremental transfer,[RFC1995],,
194 [252] = "AXFR", -- transfer of an entire zone,[RFC1035][RFC5936],,
195 [253] = "MAILB", -- "mailbox-related RRs (MB, MG or MR)",[RFC1035],,
196 [254] = "MAILA", -- mail agent RRs (OBSOLETE - see MX),[RFC1035],,
197 [255] = "*", -- A request for all records the server/cache has available,[RFC1035][RFC6895],,
198 [256] = "URI", -- URI,[RFC7553],URI/uri-completed-template,2011-02-22
199 [257] = "CAA", -- Certification Authority Restriction,[RFC6844],CAA/caa-completed-template,2011-04-07
200 [258] = "AVC", -- Application Visibility and Control,[Wolfgang_Riedel],AVC/avc-completed-template,2016-02-26
201 [259] = "DOA", -- Digital Object Architecture,[draft-durand-doa-over-dns],DOA/doa-completed-template,2017-08-30
202 -- [260 .. 32767] = "Unassigned", -- ,,,
203 [32768] = "TA", -- DNSSEC Trust Authorities,"[Sam_Weiler][http://cameo.library.cmu.edu/][ Deploying DNSSEC Without a Signed Root. Technical Report 1999-19, Information Networking Institute, Carnegie Mellon University, April 2004.]",,2005-12-13
204 [32769] = "DLV", -- DNSSEC Lookaside Validation,[RFC4431],,
205 -- [32770 .. 65279] = "Unassigned", -- ,,,
206 -- [65280 .. 65534] = "Private use", -- ,,,
207 -- [65535] = "Reserved", -- ,,,
208 }
121 209
122 dns.classes = { 'IN', 'CS', 'CH', 'HS', [255] = '*' }; 210 dns.classes = { 'IN', 'CS', 'CH', 'HS', [255] = '*' };
123 211
124 212
125 dns.type = augment (dns.types, "TYPE"); 213 dns.type = augment (dns.types, "TYPE");