Python 获取域名解析IP
疯子 5年前 (2019-03-20) 1322浏览 1评论
需求 1,提取域名解析后的IP地址。 测试环境 Cent OS 7.x Python 2.7+ Python 代码 import os import re def GetIp(domain): cmd = "ping -n -c 1 -w...
疯子 5年前 (2019-03-20) 1322浏览 1评论
需求 1,提取域名解析后的IP地址。 测试环境 Cent OS 7.x Python 2.7+ Python 代码 import os import re def GetIp(domain): cmd = "ping -n -c 1 -w...