v1

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

Return whether local DNS server is authoritative

This function checks whether the local server is authoritative for the domain's DNS records.

get/DNS/has_local_authority

Query parameters

domainstring domain required
Example:example.com

The domain to check whether the local server is authoritative for the domain's DNS records.

Note:

To check multiple domains, increment or duplicate the parameter name. For example, domain-0domain-1, and domain-2.

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": "has_local_authority",
  "module": "DNS",
  "result": {
    "data": [
      {
        "domain": "example.com",
        "local_authority": 1,
        "nameservers": [
          "ns1.example.com",
          "ns2.example.com"
        ],
        "zone": "example.com"
      },
      {
        "domain": "example2.com",
        "local_authority": 0,
        "nameservers": []
      },
      {
        "domain": "example3.com",
        "error": "(XID 3z756a) DNS query (example3.com/SOA) timeout!",
        "local_authority": 0,
        "nameservers": [],
        "zone": "example3.com"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1,
    "warnings": []
  }
}