Skip to content

Commit

Permalink
Increase per_page for DNS records up to 100. (cloudflare#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantin07 authored and patryk committed Nov 13, 2019
1 parent e253a3e commit 1d8168c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (api *API) CreateDNSRecord(zoneID string, rr DNSRecord) (*DNSRecordResponse
func (api *API) DNSRecords(zoneID string, rr DNSRecord) ([]DNSRecord, error) {
// Construct a query string
v := url.Values{}
// Request as many records as possible per page - API max is 50
v.Set("per_page", "50")
// Request as many records as possible per page - API max is 100
v.Set("per_page", "100")
if rr.Name != "" {
v.Set("name", rr.Name)
}
Expand Down

0 comments on commit 1d8168c

Please sign in to comment.