/dns/status
0.2.0Unchanged since publicationGet the DNS server status and zone settings
dnsreadallThe status object reports whether UrbeStack manages DNS in enabled. When dig is available, the running field uses the status of named from the Services catalog. If the catalog gives no answer, running falls back to whether named responds to a local DNS version query. The running field can be null. The version field reports the version from that query or from the installed named binary. The state field reports the DNS server state.
The closed_ports object reports firewall closures for TCP port 53 under 53 and UDP port 53 under 53/udp. Each entry includes note, since, and id.
The response also includes identity, server_zone, soa, the allow_transfer and also_notify lists, and the record template used for new zones. The ttl and challenge_ttl fields report dns.ttl and dns.challenge_ttl in seconds, with defaults of 3600 and 60, respectively.
Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/dns/status" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"status": {
"allow_transfer": [
"text"
],
"also_notify": [
"text"
],
"challenge_ttl": 1,
"enabled": true,
"identity": {
"host": "text",
"hostmaster": "text",
"ipv4": "text",
"ipv6": "text",
"nameservers": [
"text"
]
},
"running": true,
"server_zone": "text",
"soa": {
"expire": 1,
"negative": 1,
"refresh": 1,
"retry": 1
},
"state": "up",
"template": [
{}
],
"ttl": 1,
"version": "0.0.1"
}
}Errors
1 error, each a status and a sentence401Authentication requiredurbestack.com/docs/api/get-dns-status/