Adds an authoritative record for recursive resolution.
Operation description
-
You can specify a domain name (DomainName), page number (PageNumber), and page size (PageSize) to retrieve the list of DNS records for that domain name.
-
To find DNS records that contain a specific keyword, you can specify the keyword for the host record (RRKeyWord), record type (TypeKeyWord), or record value (ValueKeyWord).
-
By default, the list of DNS records is sorted from newest to oldest.
-
You can specify a domain group ID (GroupId). The `All Domains` group includes all domain names. The `Default Group` includes domain names that are not assigned to a 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 client IP address. |
192.168.0.1 |
| ZoneId |
string |
No |
The ID of the zone. |
173671468000011 |
| Rr |
string |
No |
The host record. The host record is the prefix of a domain name. Common examples include www, @, * (for wildcard DNS), and mail (for mailboxes). For example, to resolve @.example.com, set the host record to "@", not an empty string. |
www |
| Type |
string |
No |
The type of the DNS record. The following record types are supported: A: An IPv4 record that maps a domain name to an IPv4 address. AAAA: An IPv6 record that maps a domain name to an IPv6 address. CNAME: A canonical name record that points a domain name to another domain name. MX: A mail exchanger record that points a domain name to a mail server address. TXT: A text record that contains any human-readable text. SRV: A service record that identifies a server that provides a specific service. This is common in directory management for Microsoft systems. NS: A name server record that delegates a subdomain to another DNS provider for resolution. CAA: A Certification Authority Authorization record that restricts which certification authorities (CAs) can issue certificates for a domain. URL: A URL record that points a domain name to an existing site. SVCB: A service binding record that is used for service discovery. It provides information about supported protocols and service parameters through a DNS record. HTTPS: A record type specific to HTTPS services. An HTTPS record can define secure HTTPS connection protocols and optimal service endpoint addresses. |
A |
| RequestSource |
string |
No |
The DNS resolution line. The default value is default. For more information, see: |
default |
| Weight |
integer |
No |
The weight of the record. Valid values are integers from 1 to 100. The default value is 1. Set different weights for each address. DNS queries then return addresses based on the specified weight ratio. |
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) in seconds. This is the duration for which the record is cached. Supported values: 5, 30, 60, 3600 (1 hour), 43200 (12 hours), and 86400 (24 hours). Default value: 60. |
60 |
| Value |
string |
No |
The record value. Enter a value that corresponds to the specified record type. |
1.1.1.1 |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. Generate a unique value on your client. The token must be unique for each request. It can contain only ASCII characters and must not exceed 64 characters in length. |
6447728c8578e66aacf062d2df4446dc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
29D0F8F8-5499-4F6C-9FDC-1EE13BF55925 |
| Success |
boolean |
Indicates whether the operation was successful:
|
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.