Mor Blau
Mor Blau

Reputation: 420

How to forward a subdomain from AWS Route53 to an external DNS

I'm trying to get a subdomain to resolve to my AWS server (sub.example.com), while the example.com domain needs to resolve to another server (Wix).

Currently, the NS on my host site redirects example.com to Amazon's Route53 DNS:

ns-1.awsdns-5.org.
ns-2.awsdns-6.co.uk.
ns-3.awsdns-7.net.
ns-4.awsdns-8.com.

On Route53 I have set two different hosted zones, one for sub.example.com where I have the same NS setup and one for example.com where the NS redirects to Wix:

ns1.wixdns.net
ns2.wixdns.net

When I try to access the different domains, sub.example.com works as expected but example.com cannot be resolved.

I have also tried to set the same zone host for the both of the domains by adding to example.com a NS specific to the subdomain with the addresses shown above, to no avail.

What am I doing wrong here?

Upvotes: 1

Views: 1721

Answers (1)

hjpotter92
hjpotter92

Reputation: 80629

Based on your comment, if you only want the subdomain to handle requests routed to the load balancer; simply create a CNAME record in your DNS provider zone:

sub.domain.com.        3599    IN      CNAME   your-load-balancer-123456789.us-west-2.elb.amazonaws.com.

Upvotes: 3

Related Questions