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

I have a domain name set with wildcard for all subdomain (*, I need of exclude a specific subdomain from this condition, I use a record dns for set wildcard and if I set a new record A for a specific subdomain it not work

share|improve this question
What DNS server? – Lucas Kauffman Mar 24 '12 at 20:33

Normally when you define a wildcard record, it will only match if no other record matches. So if you have        A
*      A  A

A wild card will only be matched if there is no subdomain defined. If you ask it should return and not

If this is the case, it might be that the changes haven't propagated yet. Use the dig to query your DNS server and some public server (google's is

share|improve this answer
I use plesk installed on debian distribution, this is dns zone of the domain name: <pre>* CNAME XXX.XXX.86.76 / 24 PTR NS NS A XXX.XXX.86.76 MX (10) TXT v=spf1 +a +mx -all CNAME A XXX.XXX.86.76 A XXX.XXX.86.76 A YYY.YYY.187.230</pre> in this example the subdomain work on documentroot of main domain and not on YYY.YYY.187.230 – Alessio D'Annibale Mar 25 '12 at 12:14
@Alessio Does it return the correct address when you query that name with dig or nslookup? – Shane Madden Mar 25 '12 at 23:20

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.