• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

How to Resolve Route 53 Privated Hosted zone from a VPC in a different AWS account

by wing

When you have mulitiple AWS accounts and a specific privated DNS  name that you want to resolve from a VPC in a different account you need to allow the hosted zone  to be resolved from a differnet acccount. For example, you have a hosted zone in account A  with several types of records and you want a DNS query for that zone get resovled from a specific VPC in account B. To allow the account B VPC resolve the hosted zone of account A, you need to do the following

  1. Authorize the zone association from accocunt A
  2. Attach the zone with the VPC of account B from account B

Step 1: Take a note of the VPC ID and the hosted  zone id.

  • VPC ID IN Account A: vpc-0xxxxxx22
  • VPC ID IN Account B: vpc-0xxxxxx23
  • HOsted zone Id in account A: VXXXXXXXXMV

Step 2: Authorization
Connect to an Amazon Elastic Compute Cloud (Amazon EC2) instance in Account A and run
aws route53 create-vpc-association-authorization –hosted-zone-id VXXXXXXXXMV –vpc VPCRegion=eu-west-1,VPCId=vpc-0xxxxxx22–region eu-west-1

Step 3: Association

Login to the account B and run the command beloew, make sure the use right right account profile.
aws route53 associate-vpc-with-hosted-zone –hosted-zone-id VXXXXXXXXMV –vpc VPCRegion=eu-west-1,VPCId=vpc-0xxxxxx23 –region eu-west-1

Delete the the associaotn authorizaton
Connect to accont A and run the command below:
aws route53 delete-vpc-association-authorization –hosted-zone-id VXXXXXXXXMV –vpc VPCRegion=eu-west-1,VPCId=vpc-0xxxxxx22 –region eu-west-1

Ref: https://aws.amazon.com/premiumsupport/knowledge-center/private-hosted-zone-different-account/

Related posts:

  1. How to Install Boto3 for AWS SDK using Anaconda in Windows
  2. How to Enable AWS Cross Account ECR Image Replication
  3. How to Query AWS CloudTrail Logs with Athena
  4. How to Upgrade AWS CDK to Minor version

Filed Under: AWS Tagged With: AWS, hosted zone, route53

Primary Sidebar

Please help us sharing

Categories

  • AWS
  • Basics
  • Containers
  • Cryptocurrency
  • Cyber
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Law & Human Rights
  • Network Security Tips
  • Off Track
  • Social Media Governance
  • Tech Comparisons
  • Tech Stack Suitability
  • Telecom
  • Tutorial

CISSP Sample Test

Take a CISSP Sample Test

CISA Sample Test

CISA IT governance Sample test

Please Follow Us

Contact us for Ads

Go to Contact Form

Search

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

audit AWS backup basics browser check cisco cloud computer configuration cyber data database email gmail hsrp ids iis informaiton internet kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server social media SSL switch test tools vpn vrrp web webserver website windows wordpress

Copyright © 2010-2025 ·All Rights Reserved · SecurityWing.com