rfancn / aliyun-ddns-client

Python DDNS client for Aliyun
404 stars 137 forks source link

sub domain为*或者@时解析有问题 #17

Closed circleflow closed 7 years ago

circleflow commented 7 years ago

sub domain为或者@时解析有问题 根据阿里云的定义,代表任意二级域名,@代表没有指定二级域名 似乎client在这块儿支持得有问题

=======ddns.conf==== ... [DomainRecord1] domain = circleflow.net subdomain = type = A ... ========log===== cd /opt/ddns/aliyun-ddns-client && /usr/bin/python ddns.py 2017-10-22 16:30:56 [ERROR] DomainRecord[.circleflow.net] cannot be resolved because of:[Errno -5] No address associated with hostname /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning 2017-10-22 16:30:56 [INFO] Skipped as we already updated DomainRecord[*.circleflow.net]

rfancn commented 7 years ago

The "*" sub_domain support is not added, instead, in current implementation, you need define multiple config section to add each domain separately. BTW: the "@" sub_domain should be fine.

rfancn commented 7 years ago

"@" sub_domain works fine, and "*" sub_domain support implemented by define multiple config sections.

rfancn commented 7 years ago

"*" sub_domain support added in latest codes.