Adds a domain name to the DNS authoritative proxy service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:AddDnsCacheDomain |
create |
*CacheDomain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. The default value is zh. Valid values:
|
en |
| DomainName |
string |
Yes |
The domain name. Call the DescribeDomains operation to query the domain name. |
example.com |
| InstanceId |
string |
Yes |
The ID of the authoritative proxy instance. Call the ListCloudGtmInstances operation to query the instance ID. |
dns-cn-***** |
| CacheTtlMin |
integer |
Yes |
The minimum time-to-live (TTL) for cached data from an origin fetch. The value must be an integer from 30 to 86400. |
30 |
| CacheTtlMax |
integer |
Yes |
The maximum TTL for cached data from an origin fetch. The value must be an integer from 30 to 86400. |
86400 |
| SourceProtocol |
string |
Yes |
The protocol used for origin fetch. Valid values: TCP and UDP. The default value is UDP. |
UDP |
| SourceEdns |
string |
Yes |
SUPPORT: The origin server supports EDNS. |
SUPPORT |
| Remark |
string |
No |
The remarks. |
test |
| SourceDnsServer |
array<object> |
Yes |
A list of origin DNS servers. You can specify up to 10 servers. |
|
|
object |
No |
An origin DNS server. |
||
| Host |
string |
Yes |
The domain name or IP address of the origin server. |
192.168.0.1 |
| Port |
string |
Yes |
The port of the origin DNS server. |
53 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
B57C121B-A45F-44D8-A9B2-XXXXXXX |
Examples
Success response
JSON format
{
"RequestId": "B57C121B-A45F-44D8-A9B2-XXXXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.