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

We are creating a web app that will have vanity subdomains such as Since we'll have many subdomains, they need to be dynamic. We want to have a public "stage" area where we can test before going live. The requirement states that all dns names start with stage.

I'm using an AWS load balancer so I have to use a CNAME. Research on google and here tell me that wildcards are supported in DNS CNAME entries (except perhaps when using godaddy) but I haven't yet convinced myself that you can have a wildcard in the middle of an entry.

Is stage.* valid for a wildcard DNS CNAME and would it work as I'd expect?


share|improve this question
up vote 12 down vote accepted

The wildcard (the *) must be the leftmost part of the domain. So you can't do stage.*

If you need to do wildcard DNS for this, I suggest using * This may require some minor changes to your deployment processes, but should not be significant.

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.