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.
uapi --output=jsonpretty --user=username DNS is_alias_available
{- "apiversion": 3,
- "func": "is_alias_available",
- "module": "DNS",
- "result": {
- "data": {
- "alias": 1,
- "aname": 0,
- "resolver": "8.8.8.8"
}, - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}