Skip to content

Commit 1ae8c5a

Browse files
committed
Also catch NoNameservers
1 parent dece6b0 commit 1ae8c5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ def bloodhound(self):
16501650
self.logger.debug("Using DNS to retrieve domain information")
16511651
try:
16521652
ad.dns_resolve(domain=self.domain)
1653-
except resolver.LifetimeTimeout:
1653+
except (resolver.LifetimeTimeout, resolver.NoNameservers):
16541654
self.logger.fail("Bloodhound-python failed to resolve domain information, try specifying the DNS server.")
16551655
return None
16561656

0 commit comments

Comments
 (0)