Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

lets assume I have the subdomains:

i want to map them respectively to

How can I have map to map to map to

With a single A-Record or CNAME?

share|improve this question
one of them must first exist as an A record in first place so IN A someip should exist so you can map anything to it afaik. After that you can simple have IN CNAME perhaps you want to elaborate more your question. – Prix Nov 23 '10 at 4:13
updated my question. – syalam Nov 23 '10 at 4:20
with only a single record? only if they all have the same address, in which you can use a wildcard: * IN A – jcomeau_ictx Nov 23 '10 at 4:42
your update has no meaning at all, still the same thing as to what you explainned and there is no way to acomplish it as i said above. Even if u use a wildcard unless all your 3 domains are in the same ip and you use mod_rewrite to map the subdomain to the correct place you won't be able to do it. – Prix Nov 23 '10 at 6:26

First off, A records only point to IP addresses, so that option is right out, as your question is phrased. (People loosely speak about an A record pointing to the canonical hostname of its referent, but it actually only points to the IP.)

For CNAME records, again, no: each maps from one alias name to one canonical name. The only way you could do this, as jocmeau mentioned above, is a wildcard mapping them all to the same canonical name.

Perhaps you could expand your question to explain why you'd want to do this anyhow?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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