]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: add missing RR type definitions
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 8 Dec 2017 13:22:15 +0000 (14:22 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Fri, 8 Dec 2017 13:22:21 +0000 (14:22 +0100)
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.

daemon/lua/kres.lua

index 9805da4586c5a70a8bfc20eb7d31a0a64bc8e043..52c6644c9e98ebee806761b23231157e1c91a7e3 100644 (file)
@@ -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,