Skip to content

Commit d01334f

Browse files
committed
PEP8 format
1 parent 1040b42 commit d01334f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nslookup_check.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Script Name : nslookup_check.py
22
# Author : Craig Richards
33
# Created : 5th January 2012
4-
# Last Modified :
4+
# Last Modified :
55
# Version : 1.0
66

7-
# Modifications :
7+
# Modifications :
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

1111
import subprocess # Import the subprocess module
12+
1213
for server in open('server_list.txt'): # Open the file and read each line
13-
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

Comments
 (0)