/dns/distribution/nameservers
0.2.28Unchanged since publicationCheck external DNS resolution for distribution nameservers
dnsreadallOn a node, the response lists each nameserver name, the node assigned to it, the IPv4 address in its local A record, and the result from an external resolver. Each name is assigned to one node, and its local IP address records use that node's IP addresses. The administrator must create or update the host record at the registrar. Until the host record is updated, a reassigned name still leads to the previous node.
UrbeStack queries A records using the resolvers in mail.check_resolvers in order and uses the first NOERROR or NXDOMAIN response. The default resolvers are 1.1.1.1 and 8.8.8.8.
A server that left or was removed from its network reports the names it previously answered for. Its retained zones continue to receive queries while those names still resolve to this server. Other servers that are not nodes return an empty names list.
Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/dns/distribution/nameservers" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"checked_at": "text",
"in_place": true,
"left": true,
"names": [
{
"hostname": "server.example.com",
"ipv4": "text",
"name": "alice",
"node": "text",
"resolves": [
"text"
],
"state": "ok"
}
],
"proposal": "text"
}Errors
9 errors, each a status and a sentence400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key401Authentication required404Setting '<key>' not foundurbestack.com/docs/api/get-dns-distribution-nameservers/