rfancn / aliyun-ddns-client

Python DDNS client for Aliyun
402 stars 137 forks source link

Update ddns.py #18

Closed clia closed 6 years ago

clia commented 6 years ago

对*子域名记录的DNS解析进行特殊处理

rfancn commented 6 years ago

Thanks for your PR, the way to set a non-existed subdomain when find "*" subdomain is great. My comments is below:

Base on above, I changed your codes to generate a 12 character random fake subdomain in utils.get_dns_resolved_ip() when handling "*" subdomain, hopefully the subdomain clashes probability should be highly reduced though we cannot guarantee 100% no clashes.