Skip to main content
GET
/
dnszone
/
{id}
Get DNS Zone
curl --request GET \
  --url https://api.bunny.net/dnszone/{id} \
  --header 'AccessKey: <api-key>'
{
  "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

Path Parameters

id
integer<int64>
required

The ID of the DNS Zone that will be returned

Response

The DNS Zone with the requested ID

Id
integer<int64>
required
DateModified
string<date-time>
required
DateCreated
string<date-time>
required
NameserversDetected
boolean
required
CustomNameserversEnabled
boolean
required
NameserversNextCheck
string<date-time>
required
LoggingEnabled
boolean
required
LoggingIPAnonymizationEnabled
boolean
required

Determines if the TLS 1 is enabled on the DNS Zone

DnsSecEnabled
boolean
required

Determines if DNSSEC is enabled for this DNS Zone

Domain
string | null
Records
object[] | null
Nameserver1
string | null
Nameserver2
string | null
SoaEmail
string | null
LogAnonymizationType
enum<string>

Sets the log anonymization type for this zone

Available options:
OneDigit,
Drop
Example:

"OneDigit"

CertificateKeyType
enum<string>

The private key type to use for automatic certificates

Available options:
Ecdsa,
Rsa
Example:

"Ecdsa"