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

I want to setup dns to allow wildcards


So I have setup the following dns entry *

However just visiting does not resolve.

For now I've added an extra entry in for

Is there a better way to do this?

share|improve this question
up vote 3 down vote accepted

Wildcard will always only match the subdomains you defined, so in your case if you want to resolve the domain by itself you have to add an extra @ record.

share|improve this answer

To add to what golja says:

The root level domain is never handled by a subdomain or subdomain wildcard. Essentially anything that appears before the period of the root domain indicates a subdomain from the root, it does not modify the root.

So, regardless of any subdomain wildcards or even subdomain records you create, the root domain will always have to have an A record or CNAME (although not highly recommended).

Your DNS config should look something like this:

A |   ->
A | * ->

This should give you the following usable DNS records:

  4. etc. etc.
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.