From 2c799f5f4c732781375d86f321f8422ffc2598ce Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 31 Mar 2019 16:48:46 +0200 Subject: [PATCH] chg: [temporary fix] trailing quotation mark removed TODO: Find a better way to set the key value for the DNS types which are long and complex. An MD5 value? --- bin/pdns-ingestion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pdns-ingestion.py b/bin/pdns-ingestion.py index bd1f2be..fdb157c 100644 --- a/bin/pdns-ingestion.py +++ b/bin/pdns-ingestion.py @@ -99,6 +99,8 @@ while (True): if 'q' not in rdns: continue if rdns['q'] and rdns['type']: + if rdns['type'] == '16': + rdns['v'] = rdns['v'].replace("\"", "", 1) query = "r:{}:{}".format(rdns['q'],rdns['type']) logger.debug('redis sadd: {} -> {}'.format(query,rdns['v'])) r.sadd(query, rdns['v'])