-1

I have a now created a subdomain - api.domain.com. Now I want to create 1.api.domain.com, 2.api.domain.com. Each pointing to different servers. Is that possible?

I want to make this happen in aws route 53.

humbleiam
  • 145
  • 1
  • 2
  • 6

1 Answers1

1

Of course you can. 1.api.example.com. is a different name than api.example.com., so all the three can have their own A records.

With AWS Route 53 you can have all of these in the same example.com zone. You'll just use 1.api in the name field.

Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129
  • That worked, But now my SSL certificate is throwing error that its not for api.example.com. I registered cert for example.com. – humbleiam Aug 04 '17 at 12:47
  • That's a totally different problem. You either need one certificate per hostname with the exactly matching CN, or a shared wildcard `*.example.com` certificate. – Esa Jokinen Aug 04 '17 at 12:59
  • Great, Thanks. Is there any way to enable email too? for the domain 1.api.example.com and api.example.com? I have setup email for example.com. – humbleiam Aug 07 '17 at 05:12
  • Do you actually need to receive emails on `something@1.api.example.com`? You can add `MX` records for the subdomains. They can point to self or somewhere else. – Esa Jokinen Aug 07 '17 at 05:15