List DNS changes for a domain
GET /api/v2/domains/{id}/dns/audit
List the changes to a domain’s DNS records and nameservers, newest first. Each event says who or what made the change (actorType), what kind of change it was (changeType) and gives a one-line summary. Record changes carry the record set before and after (beforeRrset, afterRrset). Nameserver changes carry beforeNameservers and afterNameservers. Saved copies of the zone, for example from before a transfer, appear as import events. To follow one record, use GET /api/v2/domains/{id}/dns/history with its name and type filters. Page with limit and cursor (Pagination). A key limited to certain DNS records needs access to the whole zone to read this.
Authentication: An API key with the scopes read:dns and read:domains. About keys and scopes
Request
Path parameters
idstringrequireddom_…).Query parameters
limitinteger50.cursorstringnextCursor from the previous page.Example
curl "https://cloud.hostup.se/api/v2/domains/dom_01hxa3b4c5d6e7f8g9h0j1k2m3/dns/audit" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 One page of DNS change events.
{ "data": [ { "eventId": "dnsevt_01hxa3b4c5d6e7f8g9h0j1k2m3", "domainId": "dom_01hxa3b4c5d6e7f8g9h0j1k2m3", "domain": "example.com", "actorType": "customer", "actorId": "acct_01hxa3b4c5d6e7f8g9h0j1k2m5", "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3", "orderId": null, "ticketId": null, "createdAt": "2026-05-19T09:55:00.000Z", "changeType": "update", "sourceFlow": "dns_record_update", "summary": "Changed A record @ -> 192.0.2.10 for example.com.", "beforeRrset": { "name": "@", "type": "A", "values": [ "198.51.100.10" ], "ttl": 3600 }, "afterRrset": { "name": "@", "type": "A", "values": [ "192.0.2.10" ], "ttl": 3600 }, "beforeNameservers": null, "afterNameservers": null } ], "hasMore": false, "nextCursor": null}Response fields
dataarray of objecteventIdstringdomainIdstring or nulldomainstringactorTypestringcustomer: someone logged in to the client area. api: an API key. staff: Hostup support. system: Hostup automatically. smartcopy: an automatic copy of records, for example when a domain moved to Hostup. One of customer, staff, system, api, smartcopy.actorIdstring or nullcustomer and api. Null otherwise.requestIdstring or nullorderIdstring or nullticketIdstring or nullcreatedAtstringchangeTypestringcreate, update, delete, import, replace_zone, nameserver_change.sourceFlowstringsummarystringbeforeRrsetnullafterRrsetnullbeforeNameserversarray of any or nullafterNameserversarray of any or nullhasMorebooleannextCursorstring or nullcursor to get the next page. Null on the last page.Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | limit is outside 1 to 100, or cursor cannot be read. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller; code is domain_not_found. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |