v1

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

Return whether domains only resolve locally

This function indicates whether the account's domains resolve exclusively to this server.

get/DNS/ensure_domains_reside_only_locally

Query parameters

domainstring domain required
Example:example1.com

The domain to check.

Note:

To check multiple domains, duplicate or increment the parameter name. For example, to exclude three domains, you could:

  • Use the domain parameter multiple times.
  • Use the domain, domain-1, and domain-2 parameters.

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": "ensure_domains_reside_only_locally",
  "module": "DNS",
  "result": {
    "data": [
      "The domain resolves to Mars. Beep beep beep."
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}