Skip to content

Commit

Permalink
fix dns lookup missmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit committed Apr 2, 2024
1 parent beb5315 commit 4afca47
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,14 +604,6 @@ def dns_lookup(key, datatype):
response = dns.message.from_file(cache_path)
return dns_response_to_list(response)

cache_key = 'dnslookup://{0}#{1}'.format(hostname, record_type)

content = get_cache_file(
cache_key, True, cache_time_delta)
if content != None:
names = json.loads(content)
return names

try:
query = None
# Create a query for the 'www.example.com' domain
Expand Down

0 comments on commit 4afca47

Please sign in to comment.