v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DNS
DNS Information

Return a parsed DNS zone

This function parses a given DNS zone.

Important:

Most DNS zones contain only 7-bit ASCII. However, it is possible for DNS zones to contain any binary sequence. An application that decodes this function's base64 output must be able to handle cases where the decoded octets do not match any specific character encoding.

get/DNS/parse_zone

Query parameters

zonestring required
Example:example.com

The name of one of the user’s DNS zones.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "parse_zone",
  "module": "DNS",
  "result": {
    "data": [
      {
        "line_index": 22,
        "data_b64": [
          "dGV4YXMuY29tLg=="
        ],
        "dname_b64": "dGV4YXMuY29tLg==",
        "record_type": "MX",
        "ttl": 14400
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}