All Products
Document Center

Alibaba Cloud DNS PrivateZone:Reverse lookup & PTR

Last Updated:May 29, 2020

What is reverse lookup

A reverse lookup maps an IP address to a domain name. In contrast, a forward lookup resolves a domain name to an IP address.

Before you perform a reverse lookup, you must check whether the IP address corresponds to one or more domain names. It is too time-consuming to go through the entire Domain Name System (DNS) to find the corresponding domain names for an IP address. Therefore, you can use the pointer (PTR) record defined in RFC 1035 to map IP addresses to domain names.

Create a PTR record for a private zone

Before you create a PTR record for a private zone, you must create a reverse lookup zone file. Then, add an IP address to the file.

Assume that your IP address range is to, and the Class C address is The corresponding name of the reverse lookup zone file is When you create a PTR record that points 1 to in the zone file, the IP address is reversely resolved to

Reverse DNS lookup is available on public networks only after you apply to the Internet service provider (ISP) that owns the IP address and your application is approved.

However, you can manage the following reserved IP addresses in a Virtual Private Cloud (VPC).

  1. -
  2. -
  3. -

You can create reverse lookup zones in these three reversed IP address ranges in the private zone without submitting applications to the ISP.

Create a PTR record in the console

To create PTR record for in the console, follow these steps:

Note: The name of this reverse lookup zone is The zone name must end with

  1. Log on to the Alibaba Cloud DNS console.

  2. In the left-side navigation pane, click PrivateZone. On the page that appears, click Add Zone.

  3. In the Add PrivateZone dialog box that appears, enter a name in the Zone Name field. In this example, set the zone name to Then, click OK.

  4. On the PrivateZone page, click the name of the created private zone to go to the Resolution Settings page.

  5. Click Add Record. In the dialog box that appears, set Record Type to PTR, Resource Records to 1, and Record Value to

  6. Click OK.