honwen / aliyun-ddns-cli

ALiDDNS - Dynamic DNS CLI for [aliyun.com]
MIT License
414 stars 111 forks source link

A记录解析到@的域名出现以下错误 #12

Closed ZhaoqiangCn closed 5 years ago

ZhaoqiangCn commented 5 years ago

2018/10/08 10:02:23 Aliyun API Error: RequestId: 8885F9BB-04E9-40FB-BBB2-1370F4CADCF2 Status Code: 400 Code: InvalidDomainName.NoExist Message: The specified domain name does not exist. Refresh the page and try again.

honwen commented 5 years ago

@ 建议使用CNAME的方式

Example:

$ dig mirrors.aliyun.com

; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> mirrors.aliyun.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22103
;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;mirrors.aliyun.com.        IN  A

;; ANSWER SECTION:
mirrors.aliyun.com. 60  IN  CNAME   mirrors.aliyun.com.w.alikunlun.com.
mirrors.aliyun.com.w.alikunlun.com. 180 IN A    121.9.229.171

aliyun.com,CNAMEwww.aliyun.com

aliyun-ddns-cli更新www.aliyun.com即可

ZhaoqiangCn commented 5 years ago

OK