Wildcard DNS: Understand and Use the Results
Detect wildcard DNS configuration
Wildcard DNS records: the catch-all that catches more than you meant
A wildcard DNS record is a DNS entry written with an asterisk in place of the subdomain — for example, `*.example.com → 203.0.113.10`. The asterisk means "any subdomain that doesn't have an explicit record matches this one." So with a single wildcard A record, a request for `anything.example.com`, `random.example.com`, or `marketing-test-2025.example.com` will all return the same IP address, without you having to create individual records for each one. Wildcards are a powerful and convenient feature of DNS, and they are also one of the easier features to use in ways you didn't intend.
You should care because a wildcard record can quietly mask misconfigurations and even leak information. If you set up a wildcard pointing to your main web server, then every typo and every test subdomain will resolve — which can hide bugs, expose internal tools that were never meant to be public, and confuse customers who hit a typo'd subdomain that appears to work but actually serves the wrong content. Multi-tenant SaaS platforms often deliberately use wildcards (so every customer gets a subdomain like `customer-name.example.com` automatically), but the same setup on a regular website can create surprises.
The five things every wildcard check looks at:
Does a wildcard record exist? The first question is simply whether there is one — many domains have wildcards they don't remember setting up.
What does the wildcard point at? Pointing at the main production server is a common (and risky) default; pointing at a dedicated landing page or a 404 host is safer.
Does the wildcard apply to all record types? A wildcard can be set for A, AAAA, CNAME, MX, TXT, and others. Some are more dangerous than others — a wildcard MX record, for example, means every made-up subdomain can also receive email.
Are there explicit records that override the wildcard? Explicit subdomains always win over the wildcard, so unintended exposures often come from gaps where the explicit record is missing.
Is the wildcard part of a multi-tenant strategy? If yes, that is intentional and good. If no, it is probably a leftover that should be removed.
Three questions a wildcard check answers:
Do I have a wildcard DNS record at all, and if so, what does it point to?
Is the wildcard exposing any internal tools or test environments by accident?
Should this wildcard exist, or is it a leftover from a forgotten experiment?
The cost of an unintended wildcard is silent exposure of things that were never meant to be public. The fix is simply to delete the wildcard or replace it with explicit records. The principle is the same as in any other configuration system: defaults should be conservative, and broad rules should be intentional. The wildcard DNS semantics are defined in RFC 4592.
The Wildcard DNS endpoint, in plain language
Detect wildcard DNS (Domain Name System) configuration
Three classes of wildcard misconfiguration matter and most tools detect only one. (1) NXDOMAIN-bypass: standard wildcard makes subdomain enumeration noisy. (2) MX/TXT wildcards: high-impact but rarely tested — every subdomain getting mail is a phishing vector. (3) Wildcard CNAME (Canonical Name record) to an unclaimed third-party service: every subdomain becomes a takeover vector simultaneously. EdgeDNS catches all three in one call and gives wildcard-CNAME findings the same fingerprint set used by the dedicated subdomain-takeover endpoint.
What is actually happening when you call it
Detects wildcard DNS (Domain Name System) by querying two independent cryptographically random subdomains and comparing responses. Wildcard is confirmed only when both probes return matching records (preventing false positives from load balancers). Returns the wildcard record type (A, AAAA, CNAME (Canonical Name record)) and target. Beyond A/AAAA/CNAME, also tests whether MX and TXT records wildcard — wildcarded MX means every subdomain receives mail (a real exfiltration / phishing risk), and wildcarded TXT can break SPF/DMARC/DKIM lookups by returning unexpected values for non-existent labels. Probes both label-depth 1 and depth 2 to distinguish an RFC (Request for Comments) 4592 single-label wildcard from a CDN-style catch-all that synthesizes records at any depth. When the wildcard is a CNAME pointing to a known takeover-prone service (GitHub Pages, Heroku, S3, Azure, Fastly, Netlify, Shopify, WordPress, Ghost, Zendesk, etc.), surfaces a `takeover_risk` flag with concrete remediation advice.
Why this specific tool matters
Choose a task: Security Assessment. During reconnaissance, detect if wildcard DNS (Domain Name System) is in use which affects subdomain enumeration techniques.
Run the Wildcard DNS request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Wildcard DNS reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/dns/wildcard`.
When would I actually use this?
Security Assessment
During reconnaissance, detect if wildcard DNS (Domain Name System) is in use which affects subdomain enumeration techniques.
Use the finding: Adjust subdomain discovery methodology based on wildcard detection.
Subdomain Takeover Risk Assessment
Detect wildcard CNAME (Canonical Name record) configurations pointing to third-party services. If the service is deprovisioned, ALL subdomains become vulnerable to takeover.
Use the finding: Identify one of the most dangerous DNS (Domain Name System) misconfigurations before attackers exploit it.
DNS Hygiene Audit
Audit domains for unintended wildcard configurations that could expose internal services.
Use the finding: Identify and remediate accidental wildcard DNS (Domain Name System) that increases attack surface.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use dns_wildcard with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Wildcard DNS, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Wildcard DNS request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/dns/wildcard?domain=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Wildcard DNS
Start with the inputs below. Keep the same hostname, path, and options when comparing Wildcard DNS observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | The domain to check for wildcard DNS (Domain Name System) | example.com |
Interpret Wildcard DNS findings
Read these fields alongside the full response from your Wildcard DNS check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain |
has_wildcard | boolean | Whether A/AAAA/CNAME wildcard DNS (Domain Name System) is detected |
wildcard_type | string | The wildcard record type: A, AAAA, CNAME (Canonical Name record), or null |
Words you might be wondering about
DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.
CDN (Content Delivery Network) — A worldwide network of servers that store copies of your website close to your visitors so pages load fast.
CNAME (Canonical Name record) — A DNS entry that says "this name is just an alias for that other name."
NXDOMAIN (non-existent domain response) — DNS-speak for 'this name doesn't exist.' If you query a typo of a real domain, you get an NXDOMAIN response.
SPF (Sender Policy Framework) — A list, published in your DNS, of which servers are allowed to send email pretending to be you. Helps stop spammers from forging your address.
DKIM (DomainKeys Identified Mail) — A digital signature added to every email you send. The receiving mail server checks the signature to make sure the message really came from you and was not changed in transit.
DMARC (Domain-based Message Authentication, Reporting and Conformance) — An email rulebook you publish in your DNS. It tells receiving servers what to do with email that fails SPF or DKIM checks — ignore it, send it to spam, or block it entirely.
RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.
Related Guides
DNS Lookup: Understand and Use the Results
Query any of 22 DNS record types or ALL at once with DNSSEC validation
Nameservers: Understand and Use the Results
List nameservers and detect DNS provider
SSL Certificates: Understand and Use the Results
Analyze active SSL/TLS certificate details
Subdomain Takeover: Understand and Use the Results
Detect dangling CNAMEs vulnerable to subdomain takeover
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.