Skip to content

Commit

Permalink
Fix issue with internal nameservers and DNSSEC
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed Jan 7, 2022
1 parent 8d41157 commit 2066148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import dns.query
import dns.resolver
import dns.zone
import dns.dnssec
except:
print("FATAL: Module dnspython missing (python-dnspython)")
sys.exit(1)
Expand Down Expand Up @@ -428,7 +429,7 @@ def setup():
resolver.resolve('.', 'NS')
except dns.resolver.NoAnswer:
pass
except dns.exception.Timeout:
except:
out.fatal("No valid DNS resolver. This can occur when the server only resolves internal zones")
out.fatal("Set a custom resolver with -R <resolver>")
out.fatal("Ignore this warning with -n --nocheck\n")
Expand Down

0 comments on commit 2066148

Please sign in to comment.