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

Merge pull request #77 from wi1dcard/bugfix/alidns-subdomain-contains-another-subdomain-string

Fix update incorrect subdomain record of AliDNS.
This commit is contained in:
Timothy 2020-07-30 17:57:48 +08:00 committed by GitHub
commit f70f3bc0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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