[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 33/45: added needed return statement; add glue
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 33/45: added needed return statement; add glue records first, then NS |
Date: |
Fri, 25 Jan 2019 10:02:33 +0100 |
This is an automated email from the git hooks/post-receive script.
rexxnor pushed a commit to branch master
in repository ascension.
commit edb13e7f7e4dd4d863ba37478807580f3c84b8d3
Author: rexxnor <address@hidden>
AuthorDate: Thu Nov 29 22:26:25 2018 +0100
added needed return statement; add glue records first, then NS
---
gnsmigrator/gnsmigrator.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnsmigrator/gnsmigrator.py b/gnsmigrator/gnsmigrator.py
index 853d97d..d8031b7 100644
--- a/gnsmigrator/gnsmigrator.py
+++ b/gnsmigrator/gnsmigrator.py
@@ -175,6 +175,7 @@ class GNSMigrator():
cls.initial_zone_transfer()
cls.zone = dns.zone.from_xfr(cls.zonegenerator)
cls.soa = cls.get_zone_soa(cls.zone)
+ return
elif zoneserial < currentserial:
cls.initial_zone_transfer(serial=zoneserial)
cls.zone = dns.zone.from_xfr(cls.zonegenerator)
@@ -222,9 +223,14 @@ class GNSMigrator():
thread = threading.Thread(target=worker)
thread.start()
- # Give worker stuff to do
- for record in cls.zone.iterate_rdatas():
- taskqueue.put(record)
+ # Add glue records to zone
+ for gluerecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.A):
+ taskqueue.put(gluerecord)
+ for gluerecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.AAAA):
+ taskqueue.put(gluerecord)
+ # Add NS records to zone
+ for nsrecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.NS):
+ taskqueue.put(nsrecord)
# Block until all tasks are done
taskqueue.join()
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [ascension] 40/45: improvements, better case separation, more logging, (continued)
- [GNUnet-SVN] [ascension] 40/45: improvements, better case separation, more logging, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 39/45: added daemonization, bumped version, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 31/45: added testing for gnunet -K option and more, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 29/45: added warnings to logging if records failed to be added, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 37/45: updated README, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 41/45: added logic for subzones with zone cut, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 32/45: testing and added logging of executed commands to debug, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 38/45: renamed project to ascension, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 18/45: refactored adding of records, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 24/45: fixed zone serialisation, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 33/45: added needed return statement; add glue records first, then NS,
gnunet <=
- [GNUnet-SVN] [ascension] 21/45: fixed serial fetching and added serialization of zone, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 42/45: added dnscurve detection and log it, fix ttl bug with hierarchy, gnunet, 2019/01/25