Help Center> Domain Name Service> User Guide> PTR Records> Searching for PTR Records

Searching for PTR Records

Scenarios

You can quickly search for PTR records on the DNS console. You can click the search box to select the search attribute.

  • Search method: exact match and fuzzy match
  • Search attributes: EIP, domain name, ID, status, tag, and enterprise project

This topic describes how to search for PTR records.

Search Syntax

PTR records support multiple types of searches. You need to learn about the search types, attributes, and syntax. For details about the search syntax and examples, see Table 1.

  • Search method: exact match and fuzzy match
  • Search attributes: EIP, domain name, ID, status, tag, and enterprise project
    • Search attributes that support exact match: EIP, domain name, ID, status, tag, and enterprise project You must enter a complete attribute value for exact match.
    • Attributes that support fuzzy match: EIP and domain name

When filtering PTR records by tag, you can select a key or key-value pair for search. Multiple tags can be set.

  • If keys are different, tags are automatically joined with AND.
  • If keys are the same but values are different, tags are also automatically joined with AND.
Table 1 Search syntax of PTR records

Search Type

Supported Attribute

Input Format

Example

Description

Enter an attribute value but do not select an attribute.

Fuzzy search by domain name is used by default.

Attribute value

example.com

If no search attribute is selected and only an attribute value is entered, fuzzy match is performed based on the domain name by default.

Single attribute

All attributes on the console

Attribute: Attribute value

Status: Normal

Select an attribute and enter the attribute information. The system performs an exact match.

EIPs and domain names support fuzzy match.

Multiple attributes

All attributes on the console

Attribute: Value & Attribute: Value

Status: Normal Name: example.com

You can search by multiple attributes and the attributes are in AND relationship.

EIPs and domain names support fuzzy match.

Procedure

  1. Go to the PTR Records page.
  2. Click on the upper left and select the desired region and project.
  3. In the search box, select an attribute, such as domain name, ID, status, or tag, enter a value, and click .

Example 1: Searching by Attribute Value

After you enter an attribute value, the system performs fuzzy match by domain name by default.

In the PTR record list, enter a domain name in the search box and click .

For example, enter a domain name and press Enter, fuzzy match of the domain name is performed by default.

Example 2: Searching by a Single Attribute

After selecting an attribute, enter the attribute information.

The following attributes support only exact match: ID, status, tag, and enterprise project. You need to enter complete attribute values.

  • Fuzzy search: Only the domain name supports fuzzy match.
    1. On the PTR Records page, select Domain name from the drop-down list of the search box.
    2. Enter a domain name and click . For example, if you enter example, all PTR records that use example are displayed.
  • Exact search: ID
    1. On the PTR Records page, select ID from the drop-down list of the search box.
    2. Enter the complete domain name ID and click .

Example 3: Search by Multiple Attributes

You can search by multiple attributes and the attributes are in AND relationship.

The following attributes support only exact match: ID, status, tag, and enterprise project. You need to enter complete attribute values.

In this example, both domain name and zone ID are used for search.

  1. On the PTR Records page, select Domain name from the drop-down list of the search box, and enter a domain name. Click for search. Fuzzy search is used for the domain name.
  2. Add a filter criterion by selecting ID, enter a zone ID, and click .

Example 4: Search by Tag

You can search PTR records by tag key or by key-value pair.

You can add one or more tags. If keys are different, tags are automatically joined with AND.

If keys are the same but values are different, tags are also automatically joined with AND.

  • Search by a single tag.

    In the search box of the PTR Records page, select Tag, select a key-value pair, and click OK.

  • Search by multiple tags.

    In the search box of the PTR Records page, select Tag, select multiple tags, and click OK.

    Search for PTR records with tags of your choice.