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.

Is it possible to create a wildcard host record for a sub-subdomain ie *.foo.example.com?

share|improve this question
Yes! . (15 min) –  Chris S Jan 18 '11 at 22:30

1 Answer 1

up vote 4 down vote accepted

Yes, in the general case. DNS supports this, bind zonefiles support this. If you're using a management UI, you'll need to check what's supported by that.

@ORIGIN example.com.
; ...
*.foo  IN A

Note that if you create another record for an item in foo, then that will stop the wildcard from providing a record. Wildcards only match where no other name matches. So you'll need to explicitly provide the data that the wildcard would have provided.

@ORIGIN example.com.
; ...
*.foo       IN A
fred.foo    IN TXT  "Fred was here"
fred.foo    IN A
share|improve this answer
Thanks - that is helpful. Not sure if my registrar supports this through its UI. –  eft Jan 18 '11 at 21:19
If your registrar is serving your DNS records, you can call them and ask them to help you set it up. –  cwheeler33 Jan 18 '11 at 21:39
let's hope so ! –  eft Jan 18 '11 at 22:06

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.