Return whether local DNS server is authoritative

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

SecurityBasicAuth
Request
query Parameters
domain
required
string <domain>

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-0domain-1, and domain-2.

Examples:
domain=domain-0=example.com domain-1=example1.com domain-2=example2.com
domain=domain=example.com domain=example1.com domain=example2.com
domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/DNS/has_local_authority
Request samples
uapi --output=jsonpretty \
  --user=username \
  DNS \
  has_local_authority \
  domain='example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "has_local_authority",
  • "module": "DNS",
  • "result": {
    • "data": [
      • {
        • "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"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}