cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

DNS → Return domain's DNS zone configuration

AI-generated

Summary

Retrieve the DNS zone configuration for a specified domain from the WHM server.

Inputs

  • Domain (required) — The domain name of the DNS zone to retrieve.
  • Zone — Optional zone file name to specify the DNS zone configuration to return.

Output shape

a single JSON object representing the DNS zone configuration for the specified domain, including all DNS records and settings returned by the WHM API

The output contains the detailed DNS zone configuration as provided by the WHM API under the 'dns' resource 'dumpzone' operation. The 'Zone' additional field is optional and may be used to specify the zone file name if needed.

Examples

Example 1: Fetch the DNS zone configuration for example.com domain.

Set Domain input to "example.com"; leave Zone empty or specify a zone file if needed.

Links

Discussion