---
title: "Validate local server is authoritative"
method: GET
path: "/has_local_authority"
tags: ["DNS", "Domain Management"]
---

# Validate local server is authoritative

`GET /has_local_authority`

This function checks whether the local server has the authority to publish changes for the domain's DNS records.

**Important:**

When you disable the [DNS role](https://go.cpanel.net/howtouseserverprofiles#roles), the system **disables** this function.

## Query parameters

- `domain` string, required

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `records` object[] — An array of objects that contains information about about the authoritative status of a domain's local DNS zone files.
      - `domain` string — The queried domain.
      - `error` string — A message that details the reason why the local server's authoritative check failed. **Note:** The function **only** returns this value when the check fails.
      - `local_authority` 0 | 1 — Whether the local server is authoritative for the domain's DNS records. * `1` — The local server is authoritative for the domain's DNS records. * `0` — The local server is **not** authoritative for the domain's DNS records.
      - `nameservers` string[] — The domain's authoritative nameservers, if any exist.
      - `zone` string, domain, nullable — The DNS zone that contains the domain's DNS records, if one exists.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
