Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is sort of a specific DNS question.

How (if possible) would one do to create a record like this


Where * is a wildcard, is this even possible?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Sort of. Windows DNS supports wildcards, so .bar.company.com can be created. It also supports foo.bar.company.com, even with the hyphen it is works as foo-*.bar.company.com. But Windows DNS doesn't support putting the wildcard at the beginning or the middle of the DNS name, only as they only character in the host name or at the end of the host name.

What you would need to do is have everything else under bar.company.com setup statically, but setup * as the hostname as your catch all for everything. You might need to change your DNS so that the -foo portion is a subdomain under bar.company.com so your DNS record looks like *foo.bar.company.com. That or do some tricky stuff in your router/load balancer/web server.

share|improve this answer
Thank you very much for the answer, but we decided to take the easy route and just statically add all the records since we didn't have too many anyway. –  Lars Dec 30 '11 at 12:06

In addition to the above question, it's worth noting that you're also able to have a wildcard covering literally everything. You just create a root primary zone which has the domain as simply .. Then, within this, you can just do a * to instruct it where to go. Anything connected to these DNS servers will then be pointed to the same server.

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.