DNS

Get DNS records for a domain you own

Returns all DNS records configured for a domain you own (A, AAAA, CNAME, MX, TXT, NS, ...), each with a stable id, plus a zone_version token (also sent as the ETag header). Pass zone_version back on PUT to detect concurrent zone changes.

get/api/domains/{domain}/dns

Request

  • Base URL: https://domani.run
  • URL: https://domani.run/api/domains/{domain}/dns
  • Auth: HTTP bearer

Path parameters

domainstring required
Example:mysite.com

Domain name you own

Response

DNS records for the domain

domainstring
zone_versionstring

Optimistic-concurrency token for the whole zone. Pass it back on PUT (body zone_version or If-Match header) to fail with 409 DNS_VERSION_CONFLICT instead of clobbering a concurrent change.

Example response

{
  "records": [
    {
      "name": "@",
      "value": "76.76.21.21",
      "ttl": 3600
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.