Q1: Does a DNS rule for *.domain.com match multi-level domain names? In other words, if I just set *.domain.com in my DNS records, will it match all of:


as many levels deep as needed, with just that one wildcard DNS specifier?

We have a use case for multi-level DNS and I would like to confirm that we are doing the right thing in setting one wildcard DNS setting for the root domain.

Q2: will this work with round-robin DNS?

  • In less time than it took to write the question you could have created the entry and done a couple of nslookups to test it. – John Gardeniers Oct 10 '12 at 22:09
  • @JohnGardeniers: correct, I could have certainly tested it and made sure it worked, but I wasn't sure if that was the right thing to do or not. I was trying to ascertain if this was best practice. – Suman Oct 10 '12 at 22:31

Q1: yes. *.domain.com will match any domain above domain.com ex: a.domain.com a.a.domain.com a.a.a.domain.com etc.

Q2: This should work

If you want global pool of IP's

*.domain.com IN A

*.domain.com IN A

*.domain.com IN A

this is ok and will work (tested in djbdns)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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