加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nslookup_check.py 517 Bytes
一键复制 编辑 原始数据 按行查看 历史
CyberStack 提交于 2019-10-27 18:18 . Update nslookup_check.py
# 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 then does a 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化