# Return whether local DNS server is authoritative

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

Endpoint: GET /DNS/has_local_authority
Version: 11.136.0.19
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    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-0, domain-1, and domain-2.
    Example: "example.com"

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "has_local_authority"

  - `module` (string)
    The name of the module called.
    Example: "DNS"

  - `result` (object)

  - `result.data` (array)
    An array of objects containing information about the authoritative status of a domain's local DNS zone files.
    Example: [{"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"}]

  - `result.data.domain` (string)
    The queried domain.

  - `result.data.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.

  - `result.data.local_authority` (integer)
    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.
    Enum: 1, 0

  - `result.data.nameservers` (array)
    The domain's nameservers, if any exist.

  - `result.data.zone` (string,null)
    The domain's DNS zone, if one exists.

* null — No valid DNS zone.

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.metadata.transformed` (integer)
    Post-processing may have transformed the data.
    Enum: 1

  - `result.status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 1, 0

  - `result.warnings` (array)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


