From: Petr Špaček Date: Fri, 8 Dec 2017 13:22:15 +0000 (+0100) Subject: daemon: add missing RR type definitions X-Git-Tag: v1.5.1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2512a32a185cb6ef48e750a04ecebffc1f9f3fcf;p=thirdparty%2Fknot-resolver.git daemon: add missing RR type definitions Some RR type definitions present in IANA DNS parameters registry were missing in kresd. This commit synchronizes the tables with IANA registry as of 2017-12-08 13:20 UTC. At the same time, this commit is fixup! converted constant tables, support kres.type.TYPE1234 The mentioned commit accidentally removed NULL definition which broke TA signaling module. --- diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 9805da458..52c6644c9 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -47,8 +47,15 @@ local const_class = { local const_type = { A = 1, NS = 2, + MD = 3, + MF = 4, CNAME = 5, SOA = 6, + MB = 7, + MG = 8, + MR = 9, + NULL = 10, + WKS = 11, PTR = 12, HINFO = 13, MINFO = 14, @@ -56,16 +63,28 @@ local const_type = { TXT = 16, RP = 17, AFSDB = 18, + X25 = 19, + ISDN = 20, RT = 21, + NSAP = 22, + ['NSAP-PTR'] = 23, SIG = 24, KEY = 25, + PX = 26, + GPOS = 27, AAAA = 28, LOC = 29, + NXT = 30, + EID = 31, + NIMLOC = 32, SRV = 33, + ATMA = 34, NAPTR = 35, KX = 36, CERT = 37, + A6 = 38, DNAME = 39, + SINK = 40, OPT = 41, APL = 42, DS = 43, @@ -78,9 +97,20 @@ local const_type = { NSEC3 = 50, NSEC3PARAM = 51, TLSA = 52, + SMIMEA = 53, + HIP = 55, + NINFO = 56, + RKEY = 57, + TALINK = 58, CDS = 59, CDNSKEY = 60, + OPENPGPKEY = 61, + CSYNC = 62, SPF = 99, + UINFO = 100, + UID = 101, + GID = 102, + UNSPEC = 103, NID = 104, L32 = 105, L64 = 106, @@ -91,7 +121,15 @@ local const_type = { TSIG = 250, IXFR = 251, AXFR = 252, + MAILB = 253, + MAILA = 254, ANY = 255, + URI = 256, + CAA = 257, + AVC = 258, + DOA = 259, + TA = 32768, + DLV = 32769, } local const_section = { ANSWER = 0,