Change primary nameservers
change_primary_nameserversSet new primary nameservers for a secondary DNS zone to control the source of zone transfers. Complete the two-step update using the confirmation token.
Instructions
Replace the primary nameservers of a secondary zone (the servers Hetzner transfers the zone from). The ENTIRE zone content will be taken from the new primaries on the next transfer. Only applicable to zones in secondary mode. The first call returns a short-lived confirmation token bound to exactly this nameserver list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | ID or name of the zone, e.g. "example.com" | |
| confirmToken | No | Confirmation token from the previous call of this same tool with identical arguments. Omit on the first call — the server then returns a token that is valid for a few minutes. | |
| primary_nameservers | Yes | Primary nameservers to transfer the zone from (secondary zones) |