All Products
Search
Document Center

:SearchRecursionRecords

Last Updated:Dec 02, 2025

Searches for built-in authoritative DNS records used for recursive resolution.

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:SearchRecursionRecords

list

*recursion

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

None None

Request parameters

Parameter

Type

Required

Description

Example

ZoneId

string

No

The zone ID of the DNS record.

169438909000011

Rr

string

No

The host record.

www

Type

string

No

The type of the DNS record. The following types are supported:A: Maps a domain name to an IPv4 address.AAAA: Maps a domain name to an IPv6 address.CNAME: An alias record that points a domain name to another domain name.MX: A mail exchanger record that points a domain name to a mail server.TXT: A text record that contains arbitrary human-readable text.SRV: A service record that identifies a server for a specific service. This is common in directory management for Microsoft systems.

A

Weight

integer

No

The weight of the DNS record. The value ranges from 0 to 100.

2

RequestSource

string

No

The DNS resolution line. The default value is default. For more information, see DNS resolution lines.

Resolution Line Enumeration

default

EnableStatus

string

No

The status of the DNS record. Valid values: enable and disable.

enable

Ttl

integer

No

The time to live (TTL) in the local cache, in seconds. Valid values are 5, 30, 60, 3600 (1 hour), 43200 (12 hours), and 86400 (1 day). The default value is 60.

60

Remark

string

No

The remarks.

test

Value

string

No

The record value.

1.1.XX.XX

OrderBy

string

No

The sorting method. Valid values: rr, type, value, requestSource, weight, ttl, and enableStatus.

rr

Direction

string

No

The sort order. Valid values: asc for ascending and dsc for descending.

asc

PageNumber

integer

Yes

The current page number. The value starts from 1. The default value is 1.

1

PageSize

integer

Yes

The number of entries to return on each page for a paged query. The maximum value is 100. The default value is 20.

1

MaxResults

integer

No

The maximum number of records to return for the current request.

100

NextToken

string

No

The token used to start the next query.

4698691

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

536E9CAD-DB30-4647-AC87-AA5CC38C5382

PageNumber

integer

The current page number. The value starts from 1. The default value is 1.

1

PageSize

integer

The number of entries returned per page. The maximum value is 100. The default value is 20.

1

TotalPages

integer

The total number of pages.

1

TotalItems

integer

The total number of entries.

100

Records

object

Record

array<object>

The list of DNS records.

object

A DNS record.

ZoneId

string

The zone ID.

169783221000012

RecordId

string

The record ID.

1927184083990351872

CreateTime

string

The time when the record was created.

2025-06-16T02:18Z

CreateTimestamp

integer

The UNIX timestamp when the record was created.

1615182315000

UpdateTime

string

The time when the record was last updated.

2022-10-28T13:07Z

UpdateTimestamp

integer

The UNIX timestamp when the record was last updated.

1722107570000

Rr

string

The host record.

wap

Type

string

The type of the DNS record.

A

Ttl

integer

The TTL of the DNS record.

60

Priority

integer

The priority of the MX record.

1

Value

string

The value of the DNS record.

14.19.85.71

EnableStatus

string

The status. Valid values: enable and disable.

enable

Remark

string

The remarks.

vxwk

RequestSource

string

The source of the request.

default

Weight

string

The weight.

4

Creator

integer

The ID of the creator.

1521021611066866

CreatorType

string

The type of the creator. Valid values: user and system.

user

CreatorSubType

string

The type of the account. Description:custom: Alibaba Cloud accountsub: RAM usersts: role assumption
other: other

custom: Alibaba Cloud account sub: RAM user sts: role assumption other: other

custom

MaxResults

integer

The maximum number of records returned for the current request.

500

NextToken

string

The token for the next query.

4698691

Examples

Success response

JSON format

{
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "PageNumber": 1,
  "PageSize": 1,
  "TotalPages": 1,
  "TotalItems": 100,
  "Records": {
    "Record": [
      {
        "ZoneId": "169783221000012",
        "RecordId": "1927184083990351872",
        "CreateTime": "2025-06-16T02:18Z",
        "CreateTimestamp": 1615182315000,
        "UpdateTime": "2022-10-28T13:07Z",
        "UpdateTimestamp": 1722107570000,
        "Rr": "wap",
        "Type": "A",
        "Ttl": 60,
        "Priority": 1,
        "Value": "14.19.85.71",
        "EnableStatus": "enable",
        "Remark": "vxwk",
        "RequestSource": "default",
        "Weight": "4",
        "Creator": 1521021611066866,
        "CreatorType": "user",
        "CreatorSubType": "custom"
      }
    ]
  },
  "MaxResults": 500,
  "NextToken": "4698691"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.