dns.zone-transfer.setTurn transfers on, or change who may transfer the zone and whom to NOTIFY
Takes effect within one nameserver pull. Transfers are TCP only; IXFR is answered with the full zone unless the secondary is current. Secondaries get records as a resolver with no location sees them (a geolocation set its default, a weighted set every variant, ALIAS and failover the current addresses); a change in those bumps the serial. Not with DNSSEC on.
Request syntax
PUT /dns/api/zones/{id}/transfer
{
"allow": "array of string",
"notify": "array of string",
"requireTsig": "boolean",
"algorithm": "enum"
}Path parameters
idRequiredstring
Constraints: uuid
Request body
allowRequiredarray of string
Who may transfer the zone: 1 to 20 IP addresses or CIDR blocks (203.0.113.7, 203.0.113.0/24, 2001:db8::/48; IPv4 /8 or narrower, IPv6 /16 or narrower). Replaces the list. 400 names an entry that is neither
Constraints: 1-64 chars
notifyOptionalarray of string
Where to send NOTIFY when the zone changes: up to 10 public "address" or "address:port" ("[v6]:port"). Null or absent: every single public address of the allow-list, on port 53. [] sends none
Constraints: 1-64 chars
May be null.
requireTsigOptionalboolean
Refuse transfer requests not signed with the zone key. Absent: kept, true for a new setting. Off, the allow-list is the only check
algorithmOptionalenum
The TSIG key algorithm. Absent: kept, hmac-sha256 for a new key. A change makes a new secret
One of:
hmac-sha256,hmac-sha384,hmac-sha512
Response
201 when transfers were off, 200 when changed, with the transfer view: enabled, allow, notify (the targets NOTIFY goes to now), notifyFromAllowList, requireTsig, key ({ name, algorithm } or null), nameservers and primaries (the platform nameservers by name and address: what a secondary transfers from), config ({ bind, knot } to paste, the secret a placeholder unless this answer made it), secret (base64, only in the answer that made a new one), blockedBy (why transfers cannot be on: DNSSEC), and importFrom (the addresses an import by AXFR connects from, for the old primary to allow), and warning when no NOTIFY will go out. The answer that turns transfers on carries the new key's secret once. 400 naming an entry that is not an address or block, or a NOTIFY target that is not public; 409 when the zone is signed with DNSSEC; 404 when the organization has no such zone.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow dns:UpdateZoneTransfer on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud dns zone-transfer set id --allow '["example"]'curl -X PUT "https://console.platform.deutschecloud.app/dns/api/zones/id/transfer" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"allow":["example"]}'import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.dns.zoneTransfer.set({ id: "id", allow: ["example"] });from dcloud import Client
client = Client()
result = client.dns.zone_transfer.set(id="id", allow=["example"])Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_dns_zone-transfer_set.