Consulting DNS zone logs with the API
A DNS zone log is a kind of history book of all changes made to your DNS settings. It can help in troubleshooting issues.
How to view the DNS zone log
Follow the instructions below to consult the DNS log via the API. Do you want to view the log directly in CSV format? Then take a look here.
Ensure you have an API key at your disposal with Domain and DNS management (read rights) and then use the /domains/{domain}/dns/logs endpoint to request the log:
GET /domains/janjansen.nl/dns/logs
With example output:
{
"success": true,
"data": [
{
"id": 2579,
"env": "admin",
"action": "Records::edit",
"data": {
"success": [
{
"id": 1048881,
"type": "A",
"content": "1.2.3.4",
"name": "mm.janjansen.nl",
"prio": 0,
"ttl": 3600
}
],
"restore": [
{
"id": 1048881,
"domain_id": 197,
"name": "mm.janjansen.nl",
"type": "A",
"content": "1.2.3.4",
"ttl": 3600,
"prio": 0,
"disabled": 0
}
]
},
"time": 1740400259
},
{
"id": 68,
"env": "admin",
"action": "Records::edit",
"data": {
"success": [
{
"id": 1048881,
"type": "A",
"content": "1.2.3.4",
"name": "mm.janjansen.nl",
"prio": 0,
"ttl": 3600
}
],
"restore": [
{
"id": 1048881,
"domain_id": 197,
"name": "mm.janjansen.nl",
"type": "A",
"content": "81.24.7.48",
"ttl": 3600,
"prio": 0,
"disabled": 0
}
]
},
"time": 1739784716
},
{
"id": 39,
"env": "admin",
"action": "Records::add",
"data": {
"success": [
{
"id": "1051434",
"type": "A",
"content": "1.2.3.4",
"name": "1.janjansen.nl",
"prio": 0,
"ttl": 3600
}
]
},
"time": 1739784510
}
]
}
For more information, see https://api.hosting.nl/api/documentation