AddZone

Updated at:

Creates a built-in authoritative zone, which can be added to a normal zone or an accelerated zone.

Operation description

Starting April 30, 2025 (UTC+8), when users who newly activate Alibaba Cloud DNS PrivateZone add a zone, the zone Settings default to an accelerated zone. Starting October 30, 2025 (UTC+8), built-in authoritative zones in the normal zone for all users will undergo an automatic switchover to the accelerated zone. After the switchover, the number of parse requests may increase, resulting in higher costs. Enable NSCD for ECS to reduce the increase in parse requests caused by the lack of local cache.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

pvtz:AddZone

create

*Zone

acs:pvtz::{#accountId}:zone/*

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the response. Valid values:

  • zh: Chinese.

  • en: English.

Default value: en.

en

ZoneName

string

No

The name of the zone to add.

example.com

ProxyPattern

string

No

Specifies whether to enable the recursive proxy for subdomains. Valid values:

  • ZONE: Disabled. When a DNS query is made for a non-existent subdomain under this domain name, NXDOMAIN is directly returned to indicate that the subdomain does not exist.

  • RECORD: Enabled. When a DNS query is made for a non-existent subdomain under this domain name, the system sequentially queries the forwarding and recursive resolution modules, and responds to the DNS query with the final resolution result.

Default value: ZONE.

ZONE

ResourceGroupId

string

No

The ID of the resource group.

rg-acfmykd63gt****

ZoneType

string

No

This parameter is not available to users. Do not specify a value for this parameter.

CLOUD_PRODUCT_ZONE

ZoneTag

string

No

This parameter is not available to users. Do not specify a value for this parameter.

BLINK

ClientToken

string

No

The client token that ensures the idempotence of the request. Generate a token on your client to ensure that the token is unique across different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

21079fa016944979537637959d09bc

DnsGroup

string

No

The location zone of the built-in authoritative zone. Valid values:

  • NORMAL_ZONE: Normal zone. DNS query responses are cached. The system queries the built-in authoritative normal zone only when a cache miss occurs. DNS record changes take effect based on the time-to-live (TTL). Custom line resolution and weighted resolution are not supported.

  • FAST_ZONE: Fast zone. Recommended. The system directly responds to DNS queries with the lowest resolution latency. Record changes take effect in real time. Custom line resolution and weighted resolution are supported.

Default value: NORMAL_ZONE.

Note

The built-in authoritative accelerated zone is located before the cache module, and resolution results are not cached. Enable NSCD for ECS to reduce the increase in DNS queries caused by the lack of local cache, thereby avoiding excessive additional costs.

Note

Starting April 30, 2025 (UTC+8), when users who newly activate Alibaba Cloud DNS PrivateZone add a zone, the zone is set to an accelerated zone by default.

Valid values:

  • FAST_ZONE :

    Fast zone.

  • NORMAL_ZONE :

    Normal zone.

FAST_ZONE

Response elements

Element

Type

Description

Example

object

ZoneName

string

The name of the zone.

example.com

ZoneId

string

The ID of the zone, which is the unique identifier of the zone.

6fc186295683a131f63bb8b0cddc****

RequestId

string

The ID of the request.

54F10A2A-C3CF-59D4-810F-F18DDD93FE20

Success

boolean

Indicates whether the request is successful.

true

Examples

Success response

JSON format

{
  "ZoneName": "example.com",
  "ZoneId": "6fc186295683a131f63bb8b0cddc****",
  "RequestId": "54F10A2A-C3CF-59D4-810F-F18DDD93FE20",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.