[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 36/57: some experimental fixes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 36/57: some experimental fixes |
Date: |
Sat, 13 Apr 2019 13:32:33 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository ascension.
commit 9cbd14f862627191c8c75191506d05e891277818
Author: rexxnor <address@hidden>
AuthorDate: Thu Dec 13 17:57:31 2018 +0100
some experimental fixes
---
gnsmigrator/gnsmigrator.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnsmigrator/gnsmigrator.py b/gnsmigrator/gnsmigrator.py
index cac3d2c..47f1cfb 100644
--- a/gnsmigrator/gnsmigrator.py
+++ b/gnsmigrator/gnsmigrator.py
@@ -142,7 +142,7 @@ class GNSMigrator():
# SOA is different if taken directly from SOA record
# compared to AXFR/IXFR - changed to respect this
try:
- soa_answer = dns.resolver.query(domain, 'SOA')
+ soa_answer = dns.resolver.query(domain + '.', 'SOA')
except dns.resolver.NoAnswer:
logging.warning("the domain '%s' does not exist")
master_answer = dns.resolver.query(soa_answer[0].mname, 'A')
@@ -324,7 +324,6 @@ class GNSMigrator():
if rdtype == 'SOA':
zonetuple = str(value).split(' ')
domain = str(".".join(domain.split('.')[:-1]))
- print(zonetuple)
authns, owner, serial, refresh, retry, expiry, irefresh = zonetuple
if authns[-1] == '.':
authns = authns[:-1]
@@ -367,7 +366,11 @@ class GNSMigrator():
protocols = {'_tcp': 6, '_udp': 17}
# tearing the record apart
- _, proto = str(label).split('.')
+ try:
+ _, proto = str(label).split('.')
+ except ValueError:
+ logging.warning("could not parse SRV label %s" % label)
+ return (rdtype, None)
priority, weight, destport, target = value.split(' ')
protonum = protocols.get(proto)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [ascension] 09/57: updated README, (continued)
- [GNUnet-SVN] [ascension] 09/57: updated README, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 06/57: working prototype for A, AAAA, MX, CNAME, TXT and more records, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 20/57: fixed zonemaster to zonedata in README, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 12/57: bumped version to 0.1.0, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 16/57: fixed special cases with GNS2DNS, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 14/57: reworked the incremental zone transfer, added notice for bind, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 11/57: added ttl of SOA to zone for later implementation of timer, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 05/57: initial prototype, bootstrapping zones and zone transfer, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 24/57: fixed zone serialisation, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 17/57: updated requirements and README, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 36/57: some experimental fixes,
gnunet <=
- [GNUnet-SVN] [ascension] 19/57: fixed some minor bugs, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 15/57: created baseclass and separated small from big zones, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 21/57: fixed serial fetching and added serialization of zone, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 13/57: added zone merging of full and incremental zones, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 29/57: added warnings to logging if records failed to be added, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 27/57: unstable version, port specification possible, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 02/57: Added LICENSE, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 18/57: refactored adding of records, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 08/57: added GNS2DNS support and rudimentary Unittests (incomplete), gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 23/57: fixed non existing file, gnunet, 2019/04/13