mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
NSLOOKUP v0.1.1 + docs
This commit is contained in:
@@ -97,8 +97,8 @@ def execute_nslookup (ip, timeout):
|
||||
domain_pattern = re.compile(r'Name:\s+(.+)')
|
||||
server_pattern = re.compile(r'Server:\s+(.+)')
|
||||
|
||||
domain_match = domain_pattern.search(output.stdout)
|
||||
server_match = server_pattern.search(output.stdout)
|
||||
domain_match = domain_pattern.search(output)
|
||||
server_match = server_pattern.search(output)
|
||||
|
||||
if domain_match:
|
||||
domain_name = domain_match.group(1)
|
||||
|
||||
Reference in New Issue
Block a user