# Return whether domains only resolve locally

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

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

## Query parameters:

  - `domain` (string, required)
    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.
    Example: "example1.com"

## Response 200 fields (application/json):

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

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

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

  - `result` (object)

  - `result.data` (array,null)
    The results from each domain parameter's DNS query.
* null - The domain only resolves locally to the server.
* A valid string that explains to where the domain resolves.

Note:

 The function returns the results from the domains in the same order that you called them.
    Example: ["The domain resolves to Mars. Beep beep beep."]

  - `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: 0, 1

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


