AddRecursionRecord
Creates a built-in authoritative resolution record for recursion parse.
Operation description
You can specify the domain name (DomainName), page number (PageNumber), and number of entries per page (PageSize) to query the DNS record list of a domain name.
You can specify the host record keyword (RRKeyWord), record type keyword (TypeKeyWord), or record value keyword (ValueKeyWord) to query DNS records that contain the specified keyword.
By default, the DNS record list is sorted in descending order of the time when the records were added.
You can specify the ID of a domain name group (GroupId). All domain names represent all domain names, and the default group represents domain names that are not assigned to any group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pubdns:AddRecursionRecord |
create |
*recursionZone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserClientIp |
string |
No |
The IP address of the client. |
192.168.0.1 |
| ZoneId |
string |
Yes |
The zone ID. |
173671468000011 |
| Rr |
string |
No |
The host record. The host record is the prefix of the domain name. Common values include www, @, * (wildcard DNS resolution), and mail (commonly used for email). For example, to resolve @.example.com, set the host record to "@" instead of leaving it empty. |
www |
| Type |
string |
No |
The type of the DNS record. Valid values:
|
A |
| RequestSource |
string |
No |
The DNS resolution line. Default value: default. For more information, see: |
default |
| Weight |
integer |
No |
The weight of the DNS record. Valid values: integers from 1 to 100. Default value: 1. You can set different weights for addresses to return them based on the weight ratio in DNS queries. |
2 |
| Priority |
integer |
No |
The priority of the MX record. A smaller value indicates a higher priority. Valid values: 1 to 99. |
1 |
| Ttl |
integer |
No |
The time-to-live (TTL) of the DNS record in the local cache. Valid values: 5, 30, 60, 3600 (1 hour), 43200 (12 hours), and 86400 (24 hours). Unit: seconds. Default value: 60. |
60 |
| Value |
string |
No |
The value of the DNS record. Specify the value based on the DNS record type. |
1.1.1.1 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the value on your client, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
6447728c8578e66aacf062d2df4446dc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
29D0F8F8-5499-4F6C-9FDC-1EE13BF55925 |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
| RecordId |
string |
The ID of the DNS record. |
173671468000010 |
Examples
Success response
JSON format
{
"RequestId": "29D0F8F8-5499-4F6C-9FDC-1EE13BF55925",
"Success": true,
"RecordId": "173671468000010"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.