DEV Community

Discussion on: Create a subdomain in Amazon Route53 in 2 minutes

Collapse
 
arswaw profile image
Arswaw

Yes. Using a private hosted zone, you should expect to use R53 Resolver.

Collapse
 
abhishekagarwal3003 profile image
abhishekagarwal-3003

Hi Arswaw,

Thanks for the reply. What if I use a public hosted zone?

Thread Thread
 
arswaw profile image
Arswaw

According to the AWS docs:

"You can also use a Route 53 private hosted zone to route traffic within one or more VPCs that you create with the Amazon VPC service."

This implies that you need a private hosted zone to route to VPC.

Check out this forum response from an AWS employee specifying how you can use the public and private hosted zones together.

Does this help?

Thread Thread
 
abhishekagarwal3003 profile image
abhishekagarwal-3003

Hi Arswaw,

Yes, it helps, it's Private Hosted Zone which I need to use in this case. So is it mandatory to use a Route53 resolver in between or I can map api1.test.example.com and api2.test.example.com directly to my server's private ip on the remote DNS server?

Asking this because I tried both i.e., mapping directly to server's ip as well as mapping to resolver inbound endpoint ip, and what I see is that the former works but the latter doesn't. So any idea where am I going wrong?

Thread Thread
 
arswaw profile image
Arswaw

As convenient as that would be, I would use Resolver. It will take additional setup. However, it will take less setup than the alternative which is to build your own DNS servers.

If you successfully accomplish your mission with the tools you have available to you, would you let me know? I could edit the article to discuss what Route53 can do regarding hybrid clouds.

Should you need additional help, I will be checking this website regularly.

Thread Thread
 
abhishekagarwal3003 profile image
abhishekagarwal-3003

Sure, thanks for your help.