# 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
child=subprocess.Popen(('nslookup ' + server))
# Run the nslookup command for each server in the list
print child
nslookup_check.py
猜你喜欢
转载自blog.csdn.net/qq_39219385/article/details/81218824
今日推荐
周排行