Reputation: 420
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
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