Skip to content

Commit 58e1b0d

Browse files
Avoid bold for non-UI and consolidate specific records explanation
1 parent 15caee4 commit 58e1b0d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/content/docs/dns/manage-dns-records/reference/wildcard-dns-records.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ sidebar:
88

99
import { Details, Example, Render } from "~/components"
1010

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.
1412

1513
Within Cloudflare, wildcard DNS records can be either [proxied or DNS-only](/dns/proxy-status/).
1614

@@ -46,12 +44,19 @@ You can also create a wildcard DNS record specifically for a deeper subdomain. F
4644

4745
### Aspects to consider
4846

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.
5054

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
5256

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.
5458

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.
5560

5661
<Details header="Example">
5762

0 commit comments

Comments
 (0)