Cloudflare Docs
DNS
Visit DNS on GitHub
Set theme to dark (⇧+D)

Wildcard DNS records

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. Wildcard records are used as the response for all subdomains that are not specifically covered by another DNS record.

Within Cloudflare, wildcard DNS records can be either proxied or DNS-only.

​​ Create a Wildcard record

To create a wildcard DNS record, create a DNS record with an * in the Name field.

TypeNameIPv4 addressProxy status
A*192.0.2.1Proxied

You can also create a wildcard DNS record specifically for a deeper subdomain. For example, if you wanted to create a wildcard record on *.www.example.com, you would create a record with *.www in the name field.

TypeNameIPv4 addressProxy status
A*.www192.0.2.2Proxied

​​ Availability

Customers on all plans can create and proxy wildcard DNS records.

​​ Additional information

For more information on wildcard records — as well as more details about their limitations — refer to the introductory blog post.