NS1 supports wildcard records, such as *.example.com or *.sub.example.com. In the record, wildcards are indicated by a leading asterisk (*) domain name segment.
- You must place the wildcard at the beginning of the domain name (*.example.com) and not in the middle (i.e. www.*.example.com is not permitted).
- You can not include the wildcard as part of a domain segment (i.e. ex*mple.com is not allowed).
- You can only have a single wildcard in the domain name (i.e. *.*.example.com is not allowed).
A wildcard record matches any queries at or below the level of the wildcard. For example, *.example.com will match:
If a specific label name is configured that would otherwise match a wildcard at the same level, it will supersede the wildcard record.
For example, if you have a record for *.example.com and a separate record for www.example.com, then a lookup for www.example.com matches the specific record www.example.com; while a lookup for abc.www.example.com will return NXDOMAIN as the match will initially be made for www.example.com for which no *.www.example.com exists.