From c711007bb8ebf86c98d8829af011ae4630a37516 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 13 Nov 2015 11:23:08 +0100 Subject: [PATCH] optional origin added --- bin/qof-server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/qof-server.py b/bin/qof-server.py index 95ef804..a2b1f12 100644 --- a/bin/qof-server.py +++ b/bin/qof-server.py @@ -29,6 +29,8 @@ r=redis.StrictRedis(host='localhost', port=6379, db=0) rrset_supported = ['1','2','5','15','28','33'] +origin = "https://www.circl.lu/pdns/" + def getFirstSeen(t1 = None, t2 = None): if t1 is None or t2 is None: return False @@ -73,6 +75,8 @@ def getRecord(t = None): rrval['rrtype'] = rr['Type'] rrval['rrname'] = t rrval['rdata'] = rdata + if origin: + rrval['origin'] = origin rrfound.append(rrval) return rrfound