Create DNS zone
create_dns_zoneCreate native or secondary forward DNS zones in pending verification, returning the ownership TXT record to add before verification.
Instructions
Create a forward DNS zone in pending verification state. Native zones are managed here; secondary zones AXFR from public primary DNS servers and require TSIG. Returns the ownership TXT in verificationRecord (name _vpsnet-dns.). If the value is lost, read get_dns_zone.zone.verification.record.value first; use reissue_dns_zone_verification only when it is null/unrecoverable or the customer requests rotation. The API records the nameservers the parent zone delegates the name to, so the TXT can still be proven at that previous provider after the domain is pointed at VPSnet. warnings: delegatedToPlatform (the domain already points at VPSnet nameservers - keep them, do not point it back) or parentServedByPlatform (the TXT goes in the parent zone); zone.verification.next_step says what to do next. Add the TXT at that location, then call verify_dns_zone. Requires dns:write when using an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Zone kind. Defaults to native. Use secondary for AXFR-backed zones. | |
| zone | Yes | Zone name, e.g. example.com | |
| secondary_masters | No | Public primary DNS server IPs for a secondary zone. Non-public IPs are rejected by the API. | |
| secondary_tsig_secret | No | Required for secondary zones. Base64 TSIG secret, 32-64 decoded bytes, e.g. openssl rand -base64 32. It is encrypted and never returned. | |
| secondary_tsig_key_name | No | Required for secondary zones. TSIG key name configured on the primary DNS server. | |
| secondary_tsig_algorithm | No | TSIG algorithm. Defaults to hmac-sha256. |