diff --git a/dig.py b/dig.py index 17d42d7c55d796c858de5b7e0dc7a06d3ed93d91..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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