Open
Conversation
|
我也发现了这个问题,但不应该修改公共参数,其他 API 是有做处理的,唯独 DescribeSubDomainRecords 漏了 只需要修改第 200 行即可 - aliyun_transfer "Action=DescribeSubDomainRecords" "SubDomain=${__HOST}.${__DOMAIN}" || write_log 14 "服务器通信失败"
+ aliyun_transfer "Action=DescribeSubDomainRecords" "SubDomain=${__HOST}.${__DOMAIN}" "DomainName=${__DOMAIN}" || write_log 14 "服务器通信失败" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在阿里云上添加了home.xxx.com三级域名,并配置了主机记录为@
配置ddns脚本的时候lookup host为: home.xxx.com,domain为: @home.xxx.com,提示400 error。
检查了发出的request是:http://alidns.aliyuncs.com/?Action=DescribeSubDomainRecords&SubDomain=%40.home.xxx.com ... 里面只指定了SubDomain并没有指定Domain。
阿里的文档发现当Domain为空的时候,home会被作为主机名,而不是@。手动修改脚本添加了Domain以后,成功更新。