commit 86c094bdf1b2e48111b58617e46bf7b07a6afdfd
parent bd79b197c935a45bf2e51afc4dc19665223f1df8
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 1 May 2019 13:18:32 +0200
add list of obsolete record types
Diffstat:
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/ascension/ascension.py b/ascension/ascension.py
@@ -60,10 +60,23 @@ GNUNET_ZONE_CREATION_COMMAND = 'gnunet-identity'
GNUNET_NAMESTORE_COMMAND = 'gnunet-namestore'
GNUNET_GNS_COMMAND = 'gnunet-gns'
GNUNET_ARM_COMMAND = 'gnunet-arm'
-# TODO find better solution for ignoring DNSSEC record types
+# This is the list of record types Ascension (and GNS) currently
+# explicitly supports. Record types we encounter that are not
+# in this list and not in the OBSOLETE_RECORD_TYPES list will
+# create a warning (information loss during migration).
SUPPORTED_RECORD_TYPES = [
"A", "AAAA", "NS", "MX", "SRV", "TXT", "CNAME"
]
+# Record types that exist in DNS but that won't ever exist in GNS
+# as they are not needed anymore (so we should not create a warning
+# if we drop one of these).
+OBSOLETE_RECORD_TYPES = [
+ "PTR",
+ "SIG", "KEY",
+ "RRSIG", "NSEC", "DNSKEY", "NSEC3", "NSEC3PARAM", "CDNSKEY",
+ "TKEY", "TSIG",
+ "TA", "DLV"
+]
class Ascender():
"""