---
title: "Return whether local DNS server is authoritative"
method: GET
path: "/DNS/has_local_authority"
tags: ["DNS", "DNS Information"]
---

# Return whether local DNS server is authoritative

`GET /DNS/has_local_authority`

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

## Query parameters

- `domain` string, domain, required

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object[] — An array of objects containing information about the authoritative status of a domain's local DNS zone files.
      - `domain` string, domain — The queried domain.
      - `error` string — An error 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` 1 | 0 — 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 nameservers, if any exist.
      - `zone` string, domain, nullable — The domain's DNS zone, if one exists. * `null` — No valid DNS zone.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
      - `transformed` 1 — Post-processing may have transformed the data.
    - `status` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
    - `warnings` string[] — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.

---

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