# domain **Repository Path**: finlay/domain ## Basic Information - **Project Name**: domain - **Description**: 定时解析域名 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-13 - **Last Updated**: 2022-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, time, 定时器, threading, Socket ## README ## 定时解析域名 *描述:* 利用Python脚本获取域名物理IP,进行周期测试判断该域名是否为负载均衡,即是否是动态解析的域名。 判断方法:进行为期一周的多次解析,如果域名解析的ip数大于2,即为动态解析域名。 ### 运行 依赖包 ``` python pip install time pip install threading pip install socket ``` 执行 `python domain.py` 项目结构 ``` domain --- 项目根目录 data --- 解析记录 ename.cn.txt ... domain.py --- 执行文件 domain.log --- 错误日志 domain.txt --- 待解析域名 ```