[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 42/57: added dnscurve detection and log it, fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 42/57: added dnscurve detection and log it, fix ttl bug with hierarchy |
Date: |
Sat, 13 Apr 2019 13:32:39 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 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] 19/57: fixed some minor bugs, (continued)
- [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
- [GNUnet-SVN] [ascension] 42/57: added dnscurve detection and log it, fix ttl bug with hierarchy,
gnunet <=
- [GNUnet-SVN] [ascension] 07/57: fixes, added a few tests, updated README and requirements, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 10/57: added incremental zone transfer logic, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 54/57: lint manpage, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 39/57: added daemonization, bumped version, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 57/57: ascension.1: remove texinfo syntax, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 49/57: minor cleanup, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 51/57: removed daemonization, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 26/57: added definitive support for IXFR, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 37/57: updated README, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 22/57: finished refactoring, fixed a few bugs, gnunet, 2019/04/13