DNS Record → List
AI-generatedSummary
List DNS records for a specified zone in Cloudflare.
Inputs
- zoneId (required) — Specify the Zone ID from which to list DNS records.
- returnAll — Indicate whether to return all DNS records or only a limited number.
- limit — Set the maximum number of DNS records to return; applicable if 'Return All' is false.
Output shape
a list of DNS records
Returns an array of DNS records for the specified zone. If 'Return All' is set to true, all records are retrieved; otherwise, the number of records returned is limited to the specified 'Limit' parameter.
Examples
Example 1: Retrieve all DNS records
Set 'returnAll' to true and provide a valid 'zoneId'.
Example 2: Retrieve a limited number of DNS records
Set 'returnAll' to false, provide a valid 'zoneId', and specify a 'limit' between 1 and 10000.