How can I use Amazon Route 53 to access an internal version of my website using the same domain name that is used publicly?
You can use Route 53 to configure split-view DNS, also known as split-horizon DNS. You can use this feature when you want to maintain internal and external versions of the same website or application.
You can maintain both a private and public hosted zone with the same domain name for split-view DNS with Route 53. The following instructions assume you already own a domain and have the rights to make changes to the NS records for that domain. Route 53 private hosted zones require DNS queries sourced from the Amazon Virtual Private Cloud (Amazon VPC) DNS server rather than a custom DNS server.
- Make sure that DNS resolution and DNS hostnames are turned on for the source Amazon VPC.
Note: DNS hostnames are turned on for default VPCs and VPCs that you create using the VPC wizard in the VPC console.
- Create a public hosted zone that matches the name of the domain that you purchased.
- Populate the public hosted zone with the required records.
- Update your registrar's NS records with the name servers provided in your public hosted zone.
- Create a private hosted zone that matches the name of the public hosted zone. Attach the private hosted zone to the Amazon VPC where you want to resolve the domain internally.
Note: The private zone lookup takes place within the VPC.
- Populate the private hosted zone with the required records.
Note: The public zone isn't queried if a record doesn't exist in the private zone.
DNS queries respond with answers based on the source of the request. From within the Amazon VPC, answers come from the private hosted zone, while public queries return answers from the public hosted zone.
Configuring Amazon Route 53 as your DNS service