This is sort of a specific DNS question.

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

*-foo.bar.company.com.

Where * is a wildcard, is this even possible?

link|improve this question

80% accept rate
feedback

2 Answers

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.

link|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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.