From 97341d4446a0f9b64a6ed62f752cff56e5ab6cd9 Mon Sep 17 00:00:00 2001 From: weixin_42259925 Date: Fri, 19 Jan 2024 17:34:00 +0800 Subject: [PATCH] Fri Jan 19 17:34:00 CST 2024 inscode --- dig.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dig.py b/dig.py index 17d42d7..e69de29 100644 --- a/dig.py +++ b/dig.py @@ -1,14 +0,0 @@ -import subprocess - - -# # 安装dnsutils -# subprocess.run(["apt-get", "install", "dnsutils" " -y"]) - -# 假设你要查询的域名是example.com -domain = "example.com" - -# 使用subprocess运行dig命令并获取输出 -result = subprocess.run(["dig", domain], capture_output=True) - -# 输出结果 -print(result.stdout.decode('utf-8')) \ No newline at end of file -- GitLab