Can I Use Private Domain Names Across Regions?
Private zones are region-level resources. They are created in specified regions and projects.
A private zone can be associated with more than one VPC and takes effect only in its associated VPCs. However, a private zone cannot be used across VPCs. If these VPCs are in the same region and connected over a VPC peering connection, the private zone can be accessed across VPCs.
In the following example, a private zone is created for domain name example.com, and it has two VPCs associated and two record sets.
Domain Name |
Type |
Value |
---|---|---|
ecs1.example.com |
A |
192.168.1.3 |
ecs3.example.com |
A |
192.168.2.3 |
Figure 1 shows how the private domain name is resolved.
All ECSs in VPC A and VPC B can access example.com.
If ECS 2 in VPC A accesses ecs3.example.com, the private DNS server returns 192.168.2.3, the IP address of ECS 3 in VPC B. There is no VPC peering connection between VPC A and VPC B. ECS 2 cannot access ECS 3 in VPC B using this IP address.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot