curl --request POST \
--url https://api.bunny.net/dnszone/{id} \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"CustomNameserversEnabled": true,
"Nameserver1": "<string>",
"Nameserver2": "<string>",
"SoaEmail": "jsmith@example.com",
"LoggingEnabled": true,
"LogAnonymizationType": "OneDigit",
"CertificateKeyType": "Ecdsa",
"LoggingIPAnonymizationEnabled": true
}
'{
"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"
}The DNS Zone with the requested ID
curl --request POST \
--url https://api.bunny.net/dnszone/{id} \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"CustomNameserversEnabled": true,
"Nameserver1": "<string>",
"Nameserver2": "<string>",
"SoaEmail": "jsmith@example.com",
"LoggingEnabled": true,
"LogAnonymizationType": "OneDigit",
"CertificateKeyType": "Ecdsa",
"LoggingIPAnonymizationEnabled": true
}
'{
"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"
}API Access Key authorization header
The ID of the DNS Zone that will be updated
Gets the log anonymization type for this zone
OneDigit, Drop "OneDigit"
Sets the certificate private key type for wildcard certificates for this zone
Ecdsa, Rsa "Ecdsa"
Determines if the log anonoymization should be enabled
The DNS Zone with the requested ID
Determines if the TLS 1 is enabled on the DNS Zone
Determines if DNSSEC is enabled for this DNS Zone
Show child attributes
Sets the log anonymization type for this zone
OneDigit, Drop "OneDigit"
The private key type to use for automatic certificates
Ecdsa, Rsa "Ecdsa"
Was this page helpful?