add expand subdomains

pull/208/head
Sebdraven 2018-06-29 17:22:19 +02:00
parent 64847a8a04
commit 0965def6bf
1 changed files with 10 additions and 1 deletions

View File

@ -1,8 +1,9 @@
import json
import logging
import sys
from dnstrails import DnsTrails
from dnstrails import APIError
from dnstrails import DnsTrails
log = logging.getLogger('dnstrails')
log.setLevel(logging.DEBUG)
@ -68,6 +69,14 @@ def handle_domain(api, domain, misperrors):
r, status_ok = expand_domain_info(api, misperrors, domain)
if status_ok:
result_filtered['results'].extend(r)
else:
misperrors['error'] = 'Error dns result'
return misperrors
r, status_ok = expand_subdomains(api, domain)
if status_ok:
result_filtered['results'].extend(r)
else: