[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 36/45: some experimental fixes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 36/45: some experimental fixes |
Date: |
Fri, 25 Jan 2019 10:02:36 +0100 |
This is an automated email from the git hooks/post-receive script.
rexxnor 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] 28/45: refactored code, added debug mode, (continued)
- [GNUnet-SVN] [ascension] 28/45: refactored code, added debug mode, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 26/45: added definitive support for IXFR, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 44/45: updated README, cleanup, PEP8, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 43/45: updated dependencies, setup.py, removed TODOs, improved error handling, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 12/45: bumped version to 0.1.0, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 03/45: removed GNU from heading in README, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 02/45: Added LICENSE, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 30/45: updated gnsmigrator and removed c rebuilds, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 08/45: added GNS2DNS support and rudimentary Unittests (incomplete), gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 45/45: renamed files, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 36/45: some experimental fixes,
gnunet <=
- [GNUnet-SVN] [ascension] 34/45: updated gnsmigrator for multiline, added multiline tests, gnunet, 2019/01/25
- [GNUnet-SVN] [ascension] 35/45: unify all records under label, added SUPPORTED_RECORDS global, gnunet, 2019/01/25
- [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