# Return ALIAS DNS record availability & resolver

This function returns whether ALIAS and ANAME records are available and the value of the running PowerDNS (PDNS) resolver setting, if any exists.
For more information, read our ALIAS documentation.

Endpoint: GET /DNS/is_alias_available
Version: 11.136.0.4
Security: BasicAuth

## Response 200 fields (application/json):

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

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

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

  - `result` (object)

  - `result.data` (object)

  - `result.data.alias` (integer)
    Whether ALIAS records are available.

* 1 - Available.
* 0 - Not available.

When ALIAS records are enabled, they may work in API calls that accept A and AAAA records. However, the ALIAS record must use a fully qualified domain name (FQDN) rather than an IP address.
    Enum: 1, 0

  - `result.data.aname` (integer)
    Whether ANAME records are available.

* 1 - Available.
* 0 - Not available.

NOTE:

The aname value is always set to false (i.e. Not available). The ANAME record is currently not supported. It is included for completeness and future proofing.
    Enum: 1, 0

  - `result.data.resolver` (string)
    The value (if any) of the running PDNS’s resolver setting.
    Example: "8.8.8.8"

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


