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

I'd like to setup a catch-all for my subdomains:

*    CNAME

But, a few specific subdomains should have their own entry:    A        X.X.X.X
*       CNAME

The problem is, how can I specify that I want the first rule to be processed before the catch-all?

As far as I can see, there is no way to reorder the rules. So, if I create a rule after the catch-all, the catch-all might be processed before the specific rule.

There's a weight parameter, but it doesn't look like it's designed for this purpose, but for load balancing.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Reply from the AWS support (emphasize mine):

If you setup a wildcard DNS entry for your Domain this will catch all queries where you haven`t specified a record.

As example: A
*         A  A

A query for will return the specified A Record
A query for will return the wildcard record
A query for will return the specified record

This means a specified Record within your hosted Zone will always have a higher priority as a wildcard record.

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.