From e74741c0ade0f6057dca134f662d48cb206105e9 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 23 Mar 2024 14:46:44 -0400 Subject: [PATCH] Updated example record comment under source to reflect on the new record structure --- ingestors/ingest_zone.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ingestors/ingest_zone.py b/ingestors/ingest_zone.py index a099f88..31854ae 100644 --- a/ingestors/ingest_zone.py +++ b/ingestors/ingest_zone.py @@ -82,8 +82,9 @@ async def process_data(file_path: str): if not line: continue + # Skip comments but detect AXFR transfers to change the source) if line.startswith(';'): - if 'DiG' in line and 'AXFR' in line: # Zone transfer from an AXFR request + if 'DiG' in line and 'AXFR' in line: source = 'axfr' continue @@ -185,12 +186,14 @@ Input: '_index' : 'dns-zones', '_source' : { 'domain' : '1001.vegas', + 'zone' : 'vegas', 'records' : { 'ns': [ {'ttl': 3600, 'data': 'ns11.waterrockdigital.com'}, {'ttl': 3600, 'data': 'ns12.waterrockdigital.com'} ] }, + 'source' : 'czds', 'seen' : '2021-09-01T00:00:00Z' } }