diff --git a/providers/dns/alidns/alidns.go b/providers/dns/alidns/alidns.go index e7ea22ef..38efeb78 100644 --- a/providers/dns/alidns/alidns.go +++ b/providers/dns/alidns/alidns.go @@ -150,7 +150,7 @@ func (d *DNSProvider) getHostedZone(domain string) (string, string, error) { domains = append(domains, response.Domains.Domain...) - if response.PageNumber >= response.PageSize { + if response.PageNumber*response.PageSize >= response.TotalCount { break }