commit 5c5592c90668fa30046e8255ad9ad10ef44bf27f parent 72ef4b6374aa75e0659476ed6e0a83140162d343 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 1 May 2019 15:31:49 +0200 comments Diffstat:
| M | ascension/ascension.py | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/ascension/ascension.py b/ascension/ascension.py @@ -271,6 +271,15 @@ class Ascender(): # This is broken if your NS is for ns.foo.YOURZONE as you add # the PKEY to YOURZONE instead of to the foo.YOURZONE subzone. + # alice NS IN ns.alice + # bob NS IN ns.bob + # carol NS IN ns.alice + # => carol GNS2DNS GNS ns.alice@$IP + # dave.foo NS IN gns--pkey--$KEY.bob + # => dave.foo PKEY GNS $KEY + # foo.bar A IN 1.2.3.4 + # => bar PKEY GNS $NEWKEY + mapping: bar => $NEWKEY + # => foo[.bar] A GNS 1.2.3.4 gnspkey = list(filter(lambda record: str(record[2]).startswith('gns--pkey--'), nsrecords)) if gnspkey: label = str(gnspkey[0][0])