We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1040b42 commit d01334fCopy full SHA for d01334f
nslookup_check.py
@@ -1,13 +1,14 @@
1
# Script Name : nslookup_check.py
2
# Author : Craig Richards
3
# Created : 5th January 2012
4
-# Last Modified :
+# Last Modified :
5
# Version : 1.0
6
7
-# Modifications :
+# Modifications :
8
9
# Description : This very simple script opens the file server_list.txt and the does an nslookup for each one to check the DNS entry
10
11
import subprocess # Import the subprocess module
12
+
13
for server in open('server_list.txt'): # Open the file and read each line
- subprocess.Popen(('nslookup '+server)) # Run the nslookup command for each server in the list
14
+ subprocess.Popen(('nslookup ' + server)) # Run the nslookup command for each server in the list
0 commit comments