Multiple domains on Amazon AWS EC2
I am trying to setup multiple domains to point to the same IP address under one hosted zone, but keep on getting hosted zone issues from Amazon Route 54 (error says cannot add "mydomain.com" under zone "mymainip")
This is what I did so far:
- I created a new zone with the main IP address as the name
- I created a A record for the IP address and set the same IP address as the value
Now I am trying to add other domain names as CNAME records that point to this A record, but it is not working.
How can I achieve this? Amazon charges $1 per month for every hosted zone - I have many domains and if I have to get a hosted zone for each domain this would be way to expensive. So how do I get several domains point to the same IP address under one hosted zone?
I am using an Apache server and have the virtual hosts setup for all the domains, now I am just trying to setup a DNS and have them point to my Apache server.