[AWS] Creating a Private Hosted Zone and Associating It with Multiple VPCs

We are going to create a A private host zone and test this private host zone with VPC1 and VPC2... for VPC3, you can follow the VPC2 as example.

  • Create a private host zone in VPC1, VPC2, VPC3
  • Then create an A record in Route 53 point to instance in VPC 1
  • Then perring VPC1 and VPC2
  • Edit route tables for the subnets in VPC1 and VPC2, point to each other
  • Edit Security Group to point to each other

 

Create a private host zone

 

 

Because we have created private host zone, we need to make sure for VPC1,2,3 they all have enabled DNS hostname and DNS record.

 

Create an A Record

The Record name should point to the private IP address of instance 1 in VPC 1

 

Perring VPC

Create a peering connection from VPC1 to VPC2

 

Then you need to Accpet the perring connection

 

Edit route tables

Edit VPC1 subnet route table to point traffic to VPC2 by going throught peering connection;

 

Edit VPC2 subnet route table to point traffic to VPC1 by going throught peering connection:

 

 

Edit Security Group

For the instance in VPC1's securty group, should accept inbound rule from VCP2's instance's Security Group

 

For the VPC2's instance security group should accpet VPC1's instance's security group

 

 Last, ssh into instance 2 in VPC2, ping host.awscloud.local, from the result, you can see the private ip address of instance1

 

  

posted @   Zhentiw  阅读(96)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2020-12-04 [Java Spring] Spring Expression Language
2020-12-04 [Java Spring] @Profile
2020-12-04 [Java Spring] @Value & override properties by environment variables
2019-12-04 [Schematics] 2. EJS
2019-12-04 [Algorithm] Bitwise Operators
2019-12-04 [Algorithm] 136. Single Number
2019-12-04 [React] Use the useContext Hook to Consume Context in Function Components
点击右上角即可分享
微信分享提示