1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Fix update incorrect subdomain record of AliDNS.

This commit is contained in:
wi1dcard 2020-07-30 12:14:45 +08:00
parent 81ecf1d096
commit 633e1187d0

View File

@ -92,9 +92,8 @@ func NewAliDNS(key, secret string) *AliDNS {
func (d *AliDNS) GetDomainRecords(domain, rr string) []DomainRecord { func (d *AliDNS) GetDomainRecords(domain, rr string) []DomainRecord {
resp := &domainRecordsResp{} resp := &domainRecordsResp{}
parms := map[string]string{ parms := map[string]string{
"Action": "DescribeDomainRecords", "Action": "DescribeSubDomainRecords",
"DomainName": domain, "SubDomain": fmt.Sprintf("%s.%s", rr, domain),
"RRKeyWord": rr,
} }
urlPath := d.genRequestURL(parms) urlPath := d.genRequestURL(parms)
body, err := getHTTPBody(urlPath) body, err := getHTTPBody(urlPath)