Wildcard DNS record
What is Wildcard DNS record?
A wildcard DNS record uses an asterisk label, such as *.example.com, to answer queries for any subdomain without its own explicit record, a mechanism described in RFC 1034 and clarified in RFC 4592. AdminKit's DNS lookup tool shows exactly which record answered a query, making wildcard coverage easy to confirm.
By AdminKit team, Netbase JSC · Updated
A wildcard DNS record uses an asterisk label, such as *.example.com, to answer queries for any subdomain without its own explicit record, a mechanism first described in RFC 1034 and later clarified in RFC 4592, tracked on the IETF Datatracker as a full Proposed Standard. It’s commonly used to point every subdomain of a domain at the same server, for example routing arbitrary customer subdomains on a SaaS platform to one load balancer without adding a DNS record per customer. The tradeoff is that a wildcard can silently resolve typos and never-registered subdomains, which helps attackers probing for subdomain takeovers and can mask the fact that a subdomain was never actually provisioned — the same risk ICANN’s Security and Stability Advisory Committee documented in SAC015, warning that wildcards mean “internet applications that rely on the ‘name error’ response from the DNS may fail or not operate as intended.”
A wildcard only applies when no more specific record exists for the queried name; an explicit record for a subdomain always takes precedence. Cloudflare’s wildcard DNS records documentation states the same rule: a wildcard record applies only when no exact record exists at the queried name, and if a record or delegation exists, the wildcard does not apply. AdminKit’s DNS lookup tool shows exactly which record answered a query, making wildcard coverage easy to confirm. A wildcard still only ever matches a specific label position within a queried FQDN, not an arbitrary partial name.
Wildcard DNS record is part of AdminKit’s DNS cluster; the full AdminKit glossary lists other related terms.
Frequently asked questions
What does a wildcard DNS record do?
Answers queries for any subdomain that lacks its own explicit record, using an asterisk label such as *.example.com.
Does a wildcard record take precedence over an explicit record for the same name?
No -- an explicit record for a subdomain always takes precedence; a wildcard only applies when no more specific record exists.
What is a risk of using wildcard DNS records?
They can silently resolve typos and never-registered subdomains, which helps attackers probing for subdomain takeovers.
Where is the wildcard DNS mechanism defined?
First in RFC 1034, and later clarified in RFC 4592.
Sources
- RFC 1034 -- Domain Names: Concepts and Facilities
- RFC 4592 -- The Role of Wildcards in the Domain Name System
- IETF Datatracker -- RFC 4592 (Role of Wildcards) document status
- ICANN SSAC -- SAC015: Why Top-Level Domains Should Not Use Wildcard Resource Records
- Cloudflare DNS docs -- Wildcard DNS records