Skip to main content
POST
/
dnszone
Add DNS Zone
curl --request POST \
  --url https://api.bunny.net/dnszone \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Domain": "<string>",
  "Records": [
    {
      "Type": "A",
      "Ttl": 123,
      "Value": "<string>",
      "Name": "<string>",
      "Weight": 123,
      "Priority": 123,
      "Flags": 127,
      "Tag": "<string>",
      "Port": 123,
      "PullZoneId": 123,
      "ScriptId": 123,
      "Accelerated": true,
      "MonitorType": "None",
      "GeolocationLatitude": 123,
      "GeolocationLongitude": 123,
      "LatencyZone": "<string>",
      "SmartRoutingType": "None",
      "Disabled": true,
      "EnviromentalVariables": [
        {
          "Name": "<string>",
          "Value": "<string>"
        }
      ],
      "Comment": "<string>",
      "AutoSslIssuance": true
    }
  ]
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Body

Domain
string | null
required

The domain that will be added.

Records
object[] | null

Optional array of DNS records to add when creating the zone.

Response

The DNS Zone was successfuly added