Browse Source

feat(api): prepare for supporting RFC 6742 record types

Peter Thomassen 4 years ago
parent
commit
29750fb171
2 changed files with 4 additions and 1 deletions
  1. 1 1
      api/desecapi/models.py
  2. 3 0
      api/desecapi/pdns.py

+ 1 - 1
api/desecapi/models.py

@@ -502,7 +502,7 @@ RR_SET_TYPES_UNSUPPORTED = {
     'IPSECKEY',  # broken in pdns, https://github.com/PowerDNS/pdns/issues/10589 TODO enable with pdns auth > 4.5.0
     'KEY',  # Application use restricted by RFC 3445, DNSSEC use replaced by DNSKEY and handled automatically
     'WKS',  # General usage not recommended, "SHOULD NOT" be used in SMTP (RFC 1123)
-}
+} | {'NID', 'L32', 'L64', 'LP'}  # https://github.com/rthalley/dnspython/issues/674
 # restricted types are managed in use by the API, and cannot directly be modified by the API client
 RR_SET_TYPES_AUTOMATIC = {
     # corresponding functionality is automatically managed:

+ 3 - 0
api/desecapi/pdns.py

@@ -18,6 +18,9 @@ SUPPORTED_RRSET_TYPES = {
 
     # "additional" types, without obsolete ones
     'DHCID', 'DLV', 'EUI48', 'EUI64', 'IPSECKEY', 'KX', 'MINFO', 'MR', 'RKEY', 'WKS',
+
+    # https://doc.powerdns.com/authoritative/changelog/4.5.html#change-4.5.0-alpha1-New-Features
+    'NID', 'L32', 'L64', 'LP'
 }
 
 NSLORD = object()