Create a Secondary DNS Zone
To create a secondary zone on the IONOS Cloud DNS, follow this step:
Perform a POST request to the
/secondaryzonesendpoint by providing thezoneName,description, andprimaryIpsfor the IP address of the primary nameserver.
Result: On a successful POST request, you receive a response containing the secondary DNS zone UUID, Name Servers, primaryIps, and the request status.
Request
curl --location 'https://dns.de-fra.ionos.com/secondaryzones' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiO' \
--data '{
"properties": {
"zoneName": "example.com",
"description": "This is a secondary zone created in IONOS Cloud DNS",
"primaryIps": [
"1.2.3.4",
"5.6.7.8"
]
}
}'Response
202 Accepted
Retrieve all secondary zones
To retrieve information about all the secondary zones, follow this step:
Send a GET request to the
/secondaryzonesendpoint.
Result: On a successful GET request, you receive a response containing all secondary DNS zones.
Request
Response
200 OK
Retrieve a specific secondary zone information
To retrieve information about a specific secondary zone, follow this step:
Send a GET request to the
/secondaryzones/{secondaryzoneId}endpoint.
Result: On a successful GET request, you receive a response containing the secondary DNS zone UUID, Name Servers, primaryIps, and secondary zone status.
Request
Response
Retrieve records for a specific secondary zone information
To retrieve records information about a specific secondary zone, follow this step:
Send a GET request to the
/secondaryzones/{secondaryzoneId}/recordsendpoint.
Result: On a successful GET request, you receive a response containing the secondary DNS zone records information: status,content, type, priority, TTL and name.
Request
Response
Modify secondary zone
To modify the description of a secondary zone or update the IP addresses of its primary nameserver, follow this step:
Send a PUT request to the
/secondaryzones/{secondaryzoneId}endpoint.
Result: On a successful PUT request, you receive a response containing the secondary DNS zone metadata with the new updated properties.
Request
Response
202 Accepted
Initiate zone transfer to a secondary zone
To initiate zone transfer from the primary zone to the secondary zone, follow this step:
Send a PUT request to the
/secondaryzones/{secondaryzoneId}/axfrendpoint.
Result: On a successful PUT request, you receive an HTTP response 200 OK.
Request
Response
200 OK
Check zone transfer status
To check zone transfer status, follow this step:
Perform a GET request to
/secondaryzones/{secondaryzoneId}/axfrendpoint.
Result: On a successful GET request, you receive a response for AXFR communication status for each of primaryIps.
Request
Response
200 OK
Delete a secondary zone
To delete a secondary zone from the IONOS Cloud DNS, follow this step:
Send a DELETE request to the
/secondaryzones/{zoneId}endpoint.
Result: On a successful DELETE request, you receive an HTTP status 200 Accepted.
Request
Response
200 Accepted
Last updated
Was this helpful?