AddRecursionRecord

Updated at:

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

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

pubdns:AddRecursionRecord

create

*recursionZone

acs:pubdns::{#accountId}:recursionZone/{#zoneId}

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: IPv4 record. Maps a domain name to an IPv4 address.

  • AAAA: IPv6 record. Maps a domain name to an IPv6 address.

  • CNAME: Canonical name record. Points a domain name to another domain name.

  • MX: Mail exchange record. Points a domain name to a mail server address.

  • TXT: Text record. Stores arbitrary human-readable text.

  • SRV: Service record. Identifies a server that provides a specific service and is commonly used in directory management for Microsoft systems.

  • NS: Name server record. Delegates a subdomain to another DNS service provider for resolution.

  • CAA: Certification Authority Authorization record. Restricts the certificate authorities that can issue certificates for a domain name.

  • URL: URL forwarding record. Redirects a domain name to another existing website.

  • SVCB: Service binding record. Discloses supported protocols and service parameters through DNS records for service discovery.

  • HTTPS: HTTPS record. Specifies secure HTTPS connection protocols and the optimal service site address for HTTPS services.

A

RequestSource

string

No

The DNS resolution line. Default value: default. For more information, see:

DNS resolution lines

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: Successful.

  • false: Failed.

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.