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:
parent
81ecf1d096
commit
633e1187d0
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user