forked from geekcomputers/Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnslookup_check.py
More file actions
13 lines (10 loc) · 521 Bytes
/
nslookup_check.py
File metadata and controls
13 lines (10 loc) · 521 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# Script Name : nslookup_check.py
# Author : Craig Richards
# Created : 5th January 2012
# Last Modified :
# Version : 1.0
# Modifications :
# Description : This very simple script opens the file server_list.txt and the does an nslookup for each one to check the DNS entry
import subprocess # Import the subprocess module
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