VPC DNS

VPC DNS is a private DNS service based on a VPC environment. This service allows you to map a private domain name to a specific IP address in 1 or more custom VPCs.

Overview

VPC DNS is a private domain name resolution management service based on the VPC environment of the cloud platform. With VPC DNS, you can easily create, delete, modify, and bind VPCs for private domains and add, delete, and modify these operation records. These private domain names cannot be accessed outside the VPC. Additionally, you can connect your VPC to a traditional IDC via Direct Connect or VPN. In this way, resources can be accessed between a traditional IDC and VPC through private domain names. 

Benefits

Flexible Configuration

You can create custom private domains as needed. Domain names do not require public network registration and support quick remark and tag management. The flexible configurations facilitate your operations. 

Reverse DNS

By creating a private domain with a specified suffix and setting up pointer record (PTR), you can map IP addresses to the domain name to implement reverse DNS, which greatly reduces the amount of spam and improves the visibility of the usage of IP addresses. 

Load Balancing

VPC DNS supports load balancing based on CNAME, A, AAAA,  and TXT types and the "random response" or "weighted round-robin" modes. By setting the record value and weight, it distributes client requests to each server. 

Subdomain Name Recursive DNS

After "Subdomain Name Recursive Query" is enabled, a recursive query will be performed on the public network when a domain name query does not match in the VPC. 

Secure and Stable

VPC DNS relies on the cloud platform's VPC to provide secure, stable, and highly available private domain name resolution capabilities.

Scenarios

Use Case

How VPC DNS works

  • You create a private domain "example.com" in a VPC and add a DNS record "www host - CNAME record - domain.com record value". Then, if a client initiates a query for the CNAME record, as the record has already been configured, the result "domain.com" will be returned. If the client queries the A record "test.domain.com", as it has not been configured, an SOA record will be returned.
  • You create a private domain "example.com" in a VPC, enable subdomain name recursive DNS, add a DNS record "www host - A record - 8.8.8.8 record value", and configure it with a record value of "119.29.29.29" in the recursive DNS. Then, if a client initiates a request to query the A record, the result "8.8.8.8" will be returned. If this record of the private domain is deleted, "119.29.29.29" will be returned.