Skip to main content
GET
/
dnszone
List DNS Zones
curl --request GET \
  --url https://api.bunny.net/dnszone \
  --header 'AccessKey: <api-key>'
{
  "CurrentPage": 123,
  "TotalItems": 123,
  "HasMoreItems": true,
  "Items": [
    {
      "Id": 123,
      "DateModified": "2023-11-07T05:31:56Z",
      "DateCreated": "2023-11-07T05:31:56Z",
      "NameserversDetected": true,
      "CustomNameserversEnabled": true,
      "NameserversNextCheck": "2023-11-07T05:31:56Z",
      "LoggingEnabled": true,
      "LoggingIPAnonymizationEnabled": true,
      "DnsSecEnabled": true,
      "Domain": "<string>",
      "Records": [
        {
          "Id": 123,
          "Ttl": 123,
          "Weight": 123,
          "Priority": 123,
          "Port": 123,
          "Accelerated": true,
          "AcceleratedPullZoneId": 123,
          "GeolocationLatitude": 123,
          "GeolocationLongitude": 123,
          "Disabled": true,
          "AutoSslIssuance": true,
          "Type": "A",
          "Value": "<string>",
          "Name": "<string>",
          "Flags": 127,
          "Tag": "<string>",
          "LinkName": "<string>",
          "IPGeoLocationInfo": {
            "ASN": 123,
            "CountryCode": "<string>",
            "Country": "<string>",
            "OrganizationName": "<string>",
            "City": "<string>"
          },
          "GeolocationInfo": {
            "Latitude": 123,
            "Longitude": 123,
            "Country": "<string>",
            "City": "<string>"
          },
          "MonitorStatus": "Unknown",
          "MonitorType": "None",
          "EnviromentalVariables": [
            {
              "Name": "<string>",
              "Value": "<string>"
            }
          ],
          "LatencyZone": "<string>",
          "SmartRoutingType": "None",
          "Comment": "<string>"
        }
      ],
      "Nameserver1": "<string>",
      "Nameserver2": "<string>",
      "SoaEmail": "<string>",
      "LogAnonymizationType": "OneDigit",
      "CertificateKeyType": "Ecdsa"
    }
  ]
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Query Parameters

page
integer<int32>
default:1
perPage
integer<int32>
default:1000
Required range: 5 <= x <= 1000

The search term that will be used to filter the results

Response

The list of DNS Zones on the account.

CurrentPage
integer<int32>
required
TotalItems
integer<int32>
required
HasMoreItems
boolean
required
Items
object[]