|
8 | 8 |
|
9 | 9 | import { Details, Example, Render } from "~/components" |
10 | 10 |
|
11 | | -Normal DNS records map a domain name to one or multiple IP addresses or other associated resources to a specific domain name (a one-to-many mapping). |
12 | | - |
13 | | -Wildcard DNS records allow you to have a many-to-many mapping, for example if you had hundreds or thousands of subdomains you wanted to point to the same resources. Wildcard records are used as the response for all subdomains that are not specifically covered by another DNS record. |
| 11 | +Normal DNS records map a domain name to one or multiple IP addresses or other associated resources to a specific domain name (a one-to-many mapping). Wildcard DNS records allow you to have a many-to-many mapping, for example if you had hundreds or thousands of subdomains you wanted to point to the same resources. |
14 | 12 |
|
15 | 13 | Within Cloudflare, wildcard DNS records can be either [proxied or DNS-only](/dns/proxy-status/). |
16 | 14 |
|
@@ -46,12 +44,19 @@ You can also create a wildcard DNS record specifically for a deeper subdomain. F |
46 | 44 |
|
47 | 45 | ### Aspects to consider |
48 | 46 |
|
49 | | -* **Wildcards are only supported on the first label**: This means that a hostname such as `subdomain.*.example.com` is not a wildcard on the level of the asterisk character. If you create a DNS record with that name, the asterisk is interpreted as the literal character `*` and not as the wildcard operator. |
| 47 | +#### Wildcards are only supported on the first label |
| 48 | + |
| 49 | +This means that a hostname such as `subdomain.*.example.com` is not a wildcard on the level of the asterisk character. If you create a DNS record with that name, the asterisk is interpreted as the literal character `*` and not as the wildcard operator. |
| 50 | + |
| 51 | +#### Wildcards are multi-level by default |
| 52 | + |
| 53 | +If you create a DNS record on `*.*.example.com`, only the first asterisk is interpreted as a wildcard while the second one is interpreted as the literal `*` character. A record `*.example.com` is already multi-level by default, meaning it would cover `abc.example.com` as well as `123.abc.example.com`, as long as there are no [specific DNS records](#specific-dns-records-take-precedence-over-wildcard-records) that would take precedence. |
50 | 54 |
|
51 | | -* **You cannot create wildcards on multiple levels**: If you create a DNS record on `*.*.example.com`, only the first asterisk is interpreted as a wildcard while the second one is interpreted as the literal `*` character. |
| 55 | +#### Specific DNS records take precedence over wildcard records |
52 | 56 |
|
53 | | -* **Specific DNS records take precedence over wildcard records**: Wildcards will be applied for multiple levels, but a specific record on any equal or lower level will terminate anything on or below this specific record. |
| 57 | +A wildcard record applies only when no exact record exists at the queried name. If a record or delegation exists, the wildcard does not apply. |
54 | 58 |
|
| 59 | +Wildcards will be applied for multiple levels, but a specific record on any equal or lower level will terminate anything on or below this specific record. |
55 | 60 |
|
56 | 61 | <Details header="Example"> |
57 | 62 |
|
|
0 commit comments