Updated example record comment under source to reflect on the new record structure

This commit is contained in:
Dionysus 2024-03-23 14:46:44 -04:00
parent 6983b8ebec
commit e74741c0ad
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -82,8 +82,9 @@ async def process_data(file_path: str):
if not line: if not line:
continue continue
# Skip comments but detect AXFR transfers to change the source)
if line.startswith(';'): 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' source = 'axfr'
continue continue
@ -185,12 +186,14 @@ Input:
'_index' : 'dns-zones', '_index' : 'dns-zones',
'_source' : { '_source' : {
'domain' : '1001.vegas', 'domain' : '1001.vegas',
'zone' : 'vegas',
'records' : { 'records' : {
'ns': [ 'ns': [
{'ttl': 3600, 'data': 'ns11.waterrockdigital.com'}, {'ttl': 3600, 'data': 'ns11.waterrockdigital.com'},
{'ttl': 3600, 'data': 'ns12.waterrockdigital.com'} {'ttl': 3600, 'data': 'ns12.waterrockdigital.com'}
] ]
}, },
'source' : 'czds',
'seen' : '2021-09-01T00:00:00Z' 'seen' : '2021-09-01T00:00:00Z'
} }
} }