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

Fix: the results returned may be limited

This commit is contained in:
xliao 2020-07-28 20:26:30 +08:00
parent 0f9ea20f10
commit 0f670c66f9

View File

@ -204,7 +204,7 @@ func (handler *Handler) getDNSRecords(zoneID string) []DNSRecord {
}
log.Println("Querying records with type:", recordType)
req, client := handler.newRequest("GET", fmt.Sprintf("/zones/"+zoneID+"/dns_records?type=%s", recordType), nil)
req, client := handler.newRequest("GET", fmt.Sprintf("/zones/"+zoneID+"/dns_records?type=%s&page=1&per_page=500", recordType), nil)
resp, err := client.Do(req)
if err != nil {
log.Println("Request error:", err.Error())