xtra
xtra

Reputation: 2352

Domain in Route53 point root to external host, keep subdomains in AWS

I have a domain and a hosted zone in AWS Route53: mydomain.com I have configured several subdomains with a CNAME to point to resources hosted on AWS.

The main website mydomain.com I want to host on GoDaddy (or an other external hosting service). How should I configure that?

I am thinking:

What should I do?

Upvotes: 3

Views: 2394

Answers (1)

Chris Williams
Chris Williams

Reputation: 35146

AWS Route 53 can be used with any hosting provider, it is after all a DNS service. Unless you have explicit reasons why you can keep all of the configuration in Route 53.

For this configuration you would simply perform the following:

  • Create a record to point to the root domain (A record), this would resolve to a public IP provided by the external hosting provider.
  • Create an alias record for www.example.com that resolves to your root domain record
  • Create your wildcard record *.example.com to point to the default record value.

If you do want to split your DNS provider as well then you would as you've identified configure the registrar of your hostname to use the name servers of the target servers. Then create the NS records for domains in this configuration to resolve to the name servers from other services (such as Route 53).

Upvotes: 3

Related Questions