Can a DNS wildcard only be the leftmost part of a record?
I'm using TinyDNS, and have successfully used wildcard records of the form:
+*.<domain>:<ip>
(+ for A records.)
Can I also use:
+development.*.<domain>:<ip>
?
My intention is for all subdomains to have their development website point to our dev machine in one rule.
Solution 1:
Wildcard DNS records have a single "*" (asterisk) as the leftmost DNS label, such as *.domain.com
. Asterisks at other places in the domain will not work as a wildcard, so neither *development.domain.com
nor development.*.domain.com
work as wildcard DNS records.
Source: Wikipedia