[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 42/45: added dnscurve detection and log it, fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 42/45: added dnscurve detection and log it, fix ttl bug with hierarchy |
Date: |
Fri, 25 Jan 2019 10:02:42 +0100 |
This is an automated email from the git hooks/post-receive script.
rexxnor pushed a commit to branch master
in repository ascension.
commit 677b7f5f62176f3322c805d373b88eaa9ecfed42
Author: rexxnor <address@hidden>
AuthorDate: Thu Jan 17 19:18:35 2019 +0100
added dnscurve detection and log it, fix ttl bug with hierarchy
---
ascension/ascension.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ascension/ascension.py b/ascension/ascension.py
index 5830040..6a65754 100644
--- a/ascension/ascension.py
+++ b/ascension/ascension.py
@@ -30,6 +30,7 @@ import dns.query
import dns.resolver
import dns.zone
import docopt
+import daemon
from daemonize import Daemonize
# GLOBALS
@@ -175,7 +176,7 @@ class Ascender():
if len(subzones) == 2 and subzones[0][0] == "_":
pass
elif len(subzones) > 1:
- ttl = cls.get_zone_refresh_time()
+ ttl = cls.soa[1]
cls.create_zone_hierarchy(subzones, ttl)
label = subzones[0]
subdomains = ".".join(subzones[1:])
@@ -301,6 +302,11 @@ class Ascender():
value = value[:-1]
elif rdtype == 'NS':
nameserver = str(record)
+ if nameserver[0:2] == 'uz5':
+ logging.info("zone has a dnscurve record")
+ # TODO extract public key from NS record (dnscurve)
+ #encoded_pkey = nameserver[2:].split('.')[0]
+ #pkey =
if value[-1] == ".":
value = value[:-1]
else:
@@ -522,7 +528,7 @@ class Ascender():
pkey_lookup = sp.Popen([GNUNET_ZONE_CREATION_COMMAND,
'-d'],
stdout=sp.PIPE)
- pkey_line = sp.Popen(['grep', zonestring],
+ pkey_line = sp.Popen(['grep', '^' + zonestring],
stdin=pkey_lookup.stdout,
stdout=sp.PIPE)
pkey_zone = sp.check_output(['cut', '-d',
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [ascension] 31/45: added testing for gnunet -K option and more, (continued)
- [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, 2019/01/25
- [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 <=