0

This question already has an answer here:

What are the correct DNS records for {any}-the-sub.example.com?
While avoiding CNAME *.example.com

For extended subdomain {any}.the-sub.example.com that would be something like:

the-sub.example.com     A       0.0.0.0
*.the-sub.example.com   CNAME   the-sub.example.com

However same doesn't apply when using hyphen {any}-the-sub.example.com. nor the *-the-sub.example.com or *the-sub.example.com wont work right?

marked as duplicate by Andrew B domain-name-system Mar 29 '17 at 15:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    nothing in the DNS spec. – Jacob Evans Mar 29 '17 at 2:04
  • @Andrew I beleave you are correct this is duplicate since accepted answer there does kind of answer my question. – mkungla Mar 30 '17 at 13:25
1

Wildcards in DNS only apply to whole labels (labels are the parts of domain names between dots). Nothing in general DNS does what you ask for.

It is possible that some particular DNS server software may have a functionality to auto-generate records according to the sort of rules you describe, but I'm not personally familiar with any.

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