gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]