Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5824a1c

Browse files
committed
This very simple script opens the file server_list.txt and the does an nslookup for each one to check the DNS entry
1 parent 5ee24c2 commit 5824a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nslookup_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
# Description : This very simple script opens the file server_list.txt and the does an nslookup for each one to check the DNS entry
1010

11-
import subprocess # Import the subprocess module
12-
for server in open('server_list.txt'): # Open the file and read each line
11+
import subprocess # Import the subprocess module
12+
for server in open('server_list.txt'): # Open the file and read each line
1313
subprocess.Popen(('nslookup '+server)) # Run the nslookup command for each server in the list

0 commit comments

Comments
 (0)