Prerequisite: Before creating a secondary DNS zone with IONOS Cloud DNS, ensure that the primary zone is capable of establishing a zone transfer with the secondary DNS server; this means port 53 is open for TCP and UDP connections.
To create a secondary zone on the IONOS Cloud DNS, follow this step:
Perform a POST request to the /secondaryzones endpoint by providing the zoneName, description, and primaryIps for the IP address of the primary nameserver.
Note: For sending DNS notify messages, Cloud DNS uses following Anycast addresses: IPv4 212.227.123.25 or IPv6 2001:8d8:fe:53::5cd:25.
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": [ "192.0.2.2", "192.0.2.3" ] }}'
Response
202 Accepted
{"id":"a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","type":"secondaryzone","href":"/secondaryzones/a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","metadata":{"createdDate":"2023-08-04T10:21:32+00:00","lastModifiedDate":"2023-08-04T10:21:33+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ],"state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.com" }}
{"id":"0a85684c-2171-5a78-985a-a3999a0f5046","type":"collection","href":"/secondaryzones?limit=100&offset=0","items": [ {"id":"a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","type":"secondaryzone","href":"/secondaryzones/a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","metadata":{"createdDate":"2023-08-04T13:14:28+00:00","lastModifiedDate":"2023-08-04T13:14:28+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ],"state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.com" } }, {"id":"33085c93-425c-4909-9a5c-64ebf34dd9e9","type":"secondaryzone","href":"/secondaryzones/33085c93-425c-4909-9a5c-64ebf34dd9e9","metadata":{"createdDate":"2023-08-04T13:15:32+00:00","lastModifiedDate":"2023-08-04T13:15:32+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ],"state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.info" } }, {"id":"fa4e179a-b1ab-4de5-ae38-48d5f02a605f","type":"secondaryzone","href":"/secondaryzones/fa4e179a-b1ab-4de5-ae38-48d5f02a605f","metadata":{"createdDate":"2023-08-04T13:15:40+00:00","lastModifiedDate":"2023-08-04T13:15:40+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ], "state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.net" } }, {"id":"04706207-a691-4710-902d-10acf5441bf1","type":"secondaryzone","href":"/secondaryzones/04706207-a691-4710-902d-10acf5441bf1","metadata":{"createdDate":"2023-08-04T13:15:46+00:00","lastModifiedDate":"2023-08-04T13:15:46+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ], "state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.org" } } ],"offset":0,"limit":100,"_links":{"self":"/secondaryzones?limit=100&offset=0","next":"/secondaryzones?limit=100&offset=100" }}
This is a secondary zone created in IONOS Cloud DNS
primaryIps
array
IP addresses of the primary nameserver
"192.0.2.2"
"192.0.2.3"
zoneName
string
Name of the secondary zone
example.org
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.
{"id":"04706207-a691-4710-902d-10acf5441bf1","type":"secondaryzone","href":"/secondaryzones/04706207-a691-4710-902d-10acf5441bf1","metadata":{"createdDate":"2023-08-04T13:15:46+00:00","lastModifiedDate":"2023-08-04T13:15:46+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ],"state":"AVAILABLE" },"properties":{"description":"This is a secondary zone created in IONOS Cloud DNS","primaryIps": ["192.0.2.2","192.0.2.3" ],"zoneName":"example.org" }}
This is a secondary zone created in IONOS Cloud DNS
primaryIps
array
IP addresses of the primary nameserver
"192.0.2.2"
"192.0.2.3"
zoneName
string
Name of the secondary zone
example.org
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}/records endpoint.
Result: On a successful GET request, you receive a response containing the secondary DNS zone records information: status,content, type, priority, TTL and name.
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
curl--location--requestPUT'https://dns.de-fra.ionos.com/secondaryzones/04706207-a691-4710-902d-10acf5441bf1' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiO' \--data '{ "properties": { "zoneName": "example.org", "description": "Changing description and primaryIps for secondary zone example.org", "primaryIps": [ "192.0.2.2", "192.0.2.4" ] }}'
Response
202 Accepted
{"id":"a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","type":"secondaryzone","href":"/secondaryzones/a1bc82de-4cc5-40ca-bfb3-4e93bd9a367c","metadata":{"createdDate":"2023-08-04T10:21:32+00:00","lastModifiedDate":"2023-08-10T09:32:29+00:00","nameservers": ["nscs.ui-dns.com","nscs.ui-dns.de","nscs.ui-dns.org","nscs.ui-dns.biz" ],"state":"AVAILABLE" },"properties":{"description":"Changing description and primaryIps for secondary zone example.com","primaryIps": ["192.0.2.2","192.0.2.4" ],"zoneName":"example.com" }}
Changing description and primaryIps for secondary zone example.com
primaryIps
array
IP addresses of the primary nameserver
192.0.2.2, < /br> 192.0.2.4
zoneName
string
Name of the secondary zone
example.com
Initiate zone transfer to a secondary zone
Note: The creation of a secondary zone initiates zone transfer. In case of disrupted network connectivity at this time, you can initiate the zone transfer manually between the primary and secondary (i.e. secondary name server could not access primary nameserver on port 53) zones.
To initiate zone transfer from the primary zone to the secondary zone, follow this step:
Send a PUT request to the /secondaryzones/{secondaryzoneId}/axfr endpoint.
Note: For sending DNS notify messages, Cloud DNS uses following Anycast addresses: IPv4 212.227.123.25 or IPv6 2001:8d8:fe:53::5cd:25.
Result: On a successful PUT request, you receive an HTTP response 200 OK.