diff --git a/theHarvester/discovery/dnssearch.py b/theHarvester/discovery/dnssearch.py index 0ab624a2..0a1e07ab 100644 --- a/theHarvester/discovery/dnssearch.py +++ b/theHarvester/discovery/dnssearch.py @@ -117,7 +117,7 @@ def run( return str(a_record_answer.canonical_name) except Exception: - pass + return '' def process( self) -> List[str]: @@ -135,7 +135,7 @@ def process( results = [] for entry in self._list_ips_in_range(): host = self.run(entry) - if host is not None: + if host is not None and host: # print(' : ' + host.split(':')[1]) results.append(host) return results