Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
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 "" under zone "mymainip")

This is what I did so far:

  1. I created a new zone with the main IP address as the name
  2. 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.

share|improve this question

marked as duplicate by Chris S, Chopper3 Aug 18 '11 at 14:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

$1 per hosted zone is too expensive? How many domain names do you have? – joeqwerty Aug 17 '11 at 15:50
I'm not familiar with the Amazon Route 54 implementation, but a "zone" in DNS is all records under a single domain. So,, and are all under the zone. If you want to create records for, you need to create a zone for – Hyppy Aug 17 '11 at 15:56
Well if I have 30 domains that would be $30 a month just for DNS, meanwhile I can get a shared host for $5 a month and setup A records for as many domains as I want... – Zack Aug 17 '11 at 16:56
Not to nit pick, but it's Route 53. And yes you need one zone per domain. – steve.lippert Aug 18 '11 at 14:48

It sounds like you're putting the CNAME records for the other zones in the zone that they'll be pointing to?

This will not work; a CNAME is essentially an alias that says "look there, instead" - but it needs to be where it's pointing from, not to.

So, say I want to send over to

Someone will enter into their browser, and DNS resolution will (this is the simplified version - there's more steps) ask the domain for a www record - which would then point to

There isn't going to be any way around having those zones hosted somewhere - clients have no way to know to look in the central domain for the other domain's records.

share|improve this answer
So there is no way to use one hosted zone to have different domains point to the same ip? I would have to get a separate hosted zone for each domain then? – Zack Aug 17 '11 at 16:54
@Zack Correct. The zones that you're pointing to your central device must be where the CNAME records are located, and therefore must be hosted somewhere. – Shane Madden Aug 17 '11 at 16:57
How come on my shared host, all of the domains point to the same DNS server, but yet each domain has their own A record, meanwhile when I create a new zone with Amazon I am always given different DNS's. Maybe a dumb question, but I want clarify this to keep my sanity. – Zack Aug 17 '11 at 17:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.