Create a Secondary DNS Zone

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.

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 /secondaryzones endpoint.

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.

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}/records endpoint.

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.

Request

Response

202 Accepted

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.

Request

Response

200 OK

Check zone transfer status

To check zone transfer status, follow this step:

  • Perform a GET request to /secondaryzones/{secondaryzoneId}/axfr endpoint.

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.

Request

Response

200 Accepted

Last updated

Was this helpful?