Wildcard Certificate vs Wildcard DNS: What Is the Difference?
Both use an asterisk, yet one answers 'where is this name?' and the other answers 'can I trust this name?'. This guide separates the two and shows how they work together.
10 min readUpdated Nov 20, 2026By XPASS Editorial Team

The asterisk is one of the most overloaded characters in website administration, and nowhere is that more confusing than with the word "wildcard". People ask for a wildcard certificate when they mean a wildcard DNS record, and they set up a wildcard DNS record and wonder why the browser still complains. The two features share a name and a symbol, but they live in different layers and answer different questions.
This article separates them clearly. We explain what each one does in plain language, show how a request flows through both, list the mistakes that come from mixing them up, and give a short checklist for deciding which one you need. If you plan to renew a wildcard certificate in a busy environment, the follow-up on renewing without a multi-system outage will be useful, and if you are unsure whether a pattern is the right tool at all, read when to use a SAN certificate instead of a wildcard.
The short version
Here is the whole difference in two sentences.
A wildcard DNS record answers the question "where do I send traffic for a name that has no record of its own?" It lives in your DNS zone and it is about finding an address.
A wildcard certificate answers the question "may this server prove it is allowed to use any name matching this pattern?" It is installed on a server and it is about trust and encryption.
One is a lookup rule. The other is an identity document. You can have either without the other, and many working sites use only one of them. When a visitor opens a page, DNS comes first and the certificate comes second, which is why a mismatch between them leads to different symptoms.

What a wildcard DNS record does
DNS maps names to data such as addresses. Normally you create a record for each name you want to resolve: one for www, one for app, one for api. A wildcard record is written with an asterisk as the leftmost label, for example *.example.com, and acts as a catch-all for names that do not otherwise exist in the zone. The matching rules are described in RFC 1034.
A few behaviours matter in practice:
- Specific records win. If
www.example.comhas its own record, that record answers forwww, and the wildcard is ignored for that name. The wildcard fills in only the gaps. - It covers many levels of names in the zone it sits in, with subtle limits. The record matches names beneath the point where it is defined, but the exact interaction with existing names at other levels can surprise people. If you rely on it in a complex zone, test with real lookups rather than assuming.
- It works for different record types. You can have wildcard address records and, where your DNS provider supports them, wildcard alias or mail records, each with its own consequences.
- It does nothing for encryption. DNS does not carry a certificate. A name that resolves through a wildcard record is just a name that resolves.
Common reasons to use one include multi-tenant applications where every customer gets a name, developer environments that create a new hostname per branch, and catch-all landing pages that show a friendly message for any mistyped subdomain.
What a wildcard certificate does
A certificate lists the names it is valid for. A wildcard certificate lists a pattern such as *.example.com in its name field, as defined in the X.509 profile in RFC 5280. A browser that connects to shop.example.com and receives that certificate sees that the name matches the pattern, checks the signature and the dates, and carries on with an encrypted connection.
Key points:
- It matches one label.
*.example.comcoversshop.example.combut nota.shop.example.com. - It usually does not cover the bare domain. To protect
example.comitself, the certificate normally lists that name as a second entry. - It is proven through DNS. Getting a wildcard certificate generally requires showing control of the domain with a temporary DNS record, often a text record under a special name. That is a normal record in your zone and has nothing to do with wildcard DNS.
- It does not create any name. A wildcard certificate never makes a hostname resolve. If
new.example.comhas no DNS record at all, the certificate cannot help, because the browser never finds a server to talk to. - One private key behind many names. The practical and security implications of that are covered in one certificate or one per subdomain.
How a request passes through both
Walk through what happens when a visitor types customer1.example.com:
- DNS lookup. The browser asks DNS for the address of
customer1.example.com. If there is a specific record, it is used. If not, and a wildcard DNS record exists, the wildcard answers. If neither exists, the lookup fails and the visitor sees a "site can't be reached" style error. The certificate is never reached. - Connection. The browser connects to the returned address and starts a secure handshake, telling the server which name it wants.
- Certificate choice. The server picks a certificate for that name. A wildcard certificate can be offered for any matching name.
- Browser checks. The browser compares the name with the certificate's list, verifies the signature chain and the dates. If the name does not match, it shows a name-mismatch warning.
- Application. The web server or application decides what content to serve for that name.
Seen this way, the symptoms separate cleanly. A DNS problem produces "cannot find the server". A certificate problem produces a security warning. An application problem produces a wrong page or an error page.
Comparison table
| Question | Wildcard DNS record | Wildcard certificate |
|---|---|---|
| Layer | DNS zone | TLS on the server |
| Answers | Where does this name point? | May this server speak for this name? |
| Created by | Adding a record with * in your DNS |
Issuance by a certificate authority |
| Lives where | At your DNS provider | On servers and load balancers |
| Validity period | No built-in expiry | Has an expiry date and must be renewed |
| Effect on a typo name | Resolves, so it appears to exist | Would be accepted if it matches the pattern |
| Needs the other? | No | No |
| Typical failure | Names resolve that should not | Browser warning or expired certificate |
When you need each, or both
Only a wildcard DNS record. A site that serves plain HTTP for internal testing, or uses a different mechanism for encryption in front of it, may use a wildcard record alone. This is uncommon for public sites today.
Only a wildcard certificate. A site with five fixed subdomains can have a record for each and one wildcard certificate covering them. The wildcard saves certificate management without any wildcard in DNS. This is quite common.
Both together. A multi-tenant service that gives every customer a name often wants both: DNS that resolves any customer name to the application without adding a record each time, and a certificate that is valid for any of those names. Even then, the pair is two separate pieces of configuration with two separate owners and renewal histories.
Neither. A small site with a handful of names is often best served by individual records and a certificate that lists exactly those names. A SAN certificate is another good fit.
A plain example
A small software company runs a customer portal. Each customer gets an address like acme.portal.example.com.
At first the company creates one DNS record per customer by hand and installs a single wildcard certificate for *.portal.example.com. Everything works, but support has to add a record every time a new customer signs up.
Later they add a wildcard DNS record, *.portal.example.com, pointing at the load balancer. Now new customer names resolve immediately, and the application looks at the requested name to decide whose data to show. The certificate does not change at all, because it already covered the pattern.
A week later a customer mistypes the name as acmee.portal.example.com. Because of the wildcard record, the name resolves, the certificate matches, and the application shows a generic "unknown customer" page instead of a browser error. The team decides that is acceptable and adds a clear message. Had they wanted a hard failure for unknown names, they would have kept explicit records, which is a DNS design decision unrelated to the certificate.
Common mistakes and what to watch for
- Expecting HTTPS from a DNS change. Adding
*.example.comin DNS does not give any subdomain a certificate. If visitors see a name-mismatch warning, the certificate does not cover that name. - Expecting DNS from a certificate. Buying a wildcard certificate does not make
beta.example.comresolve. Add a record or a wildcard record. - Forgetting the bare domain. The certificate may cover
*.example.combut notexample.com. - Assuming wildcards go deeper than one level. A certificate for
*.example.comdoes not covera.b.example.com, and a DNS wildcard behaves according to the rules of the zone it sits in. - Mail surprises. A wildcard record for mail-related types can make mail for nonexistent names appear to be accepted. Review it carefully if the domain handles email.
- Dangling wildcard targets. If a wildcard points at a service you later cancel, every unused name may become claimable by someone else on that service. Remove or update the record when you retire the target.
- Typos hidden. Because every name resolves, broken links and misspellings can go unnoticed. Add monitoring for unexpected hostnames in your logs.
- Separate lifecycles. The DNS record does not expire, but the certificate does. Put the certificate's expiry in monitoring even if the DNS has been stable for years.
Quick decision checklist
- Do you need many hostnames to resolve without editing DNS each time? If yes, consider a wildcard DNS record.
- Do you need encryption on many hostnames under one domain? If yes, consider a wildcard or SAN certificate.
- Are your hostnames few and known? Prefer explicit DNS records and a certificate that lists those names.
- Does the hostname set include names two levels deep? Neither wildcard type solves that by default; plan explicit coverage.
- Who will own renewal of the certificate, and who will own the DNS records? Write both down.
Troubleshooting by symptom
When something breaks, start from what the visitor sees rather than from the feature you think is responsible.
- "This site can't be reached" or "server not found". The name did not resolve. Check DNS first: is there a specific record, and if you expected a wildcard record to answer, is it in the correct zone and spelled with the asterisk as the whole leftmost label? Query your DNS provider directly and also through a public resolver, because caching can hide a recent change.
- A warning that the connection is not private, mentioning the name. DNS worked and a server answered, but the certificate it presented does not list the requested name. Compare the name with the certificate's list. Check whether the server picked a default certificate instead of the wildcard because its configuration does not recognise the new name.
- A warning about an expired certificate. DNS and name matching are fine; the certificate has simply passed its end date, or one server still holds an old copy. This is a renewal and deployment problem.
- The wrong website appears. DNS and the certificate both worked, so the issue is at the application or web server layer, which decides what to show for each name.
- It works for some visitors and not others. Suspect DNS caching, where some resolvers still hold an older answer, or a missing intermediate certificate that only some clients tolerate.
Using this order of questions, resolve, then match, then valid dates, then content, saves a lot of time, and it keeps you from changing certificates when the real problem is a missing DNS answer, or the other way round.
Summary
A wildcard DNS record decides where traffic for unlisted names goes; a wildcard certificate lets a server prove it may serve a pattern of names over HTTPS. They share an asterisk and nothing else: neither creates the other, and each can be used alone. Keep the layers straight and most "wildcard" problems become easy to diagnose, because a name that does not resolve is a DNS issue and a security warning on a name that does resolve is a certificate issue.
If you want to see which certificate types are available for your domain, the SSL certificates page is the place to start.
Frequently asked questions
Is a wildcard certificate the same as a wildcard DNS record?
No. A wildcard DNS record tells the DNS system where to send any name that has no record of its own. A wildcard certificate tells browsers that a server may present itself under any name matching a pattern. They solve different problems and can be used separately.
If I create a wildcard DNS record, do I get HTTPS on every subdomain?
No. DNS only makes the name resolve to an address. HTTPS also needs a certificate that covers the name, and the server must be configured to present it.
If I have a wildcard certificate, do I need a wildcard DNS record?
Not necessarily. The certificate says nothing about DNS. Each subdomain still needs to resolve, either through its own record or through a wildcard record.
Does a wildcard DNS record override records I already created?
No. A specific record for a name takes precedence over the wildcard for that name. The wildcard only answers for names that have no matching record of their own.
Are there risks in using a wildcard DNS record?
Yes. Every possible name resolves, including typos, which can hide mistakes and give attackers or crawlers many valid-looking addresses. It also needs care with mail and with services that attach custom names.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need an SSL certificate?
Pick the certificate type that fits your site and see the price before you check out.
SSL from $14.99
See SSL certificatesKeep reading

SSL Guides
How to Renew a Wildcard SSL Without Taking Several Systems Down
A single wildcard certificate can sit on load balancers, web servers and mail hosts. This guide shows how to renew it in stages so nothing goes down together.
10 min read

SSL Guides
When to Use a SAN Certificate Instead of a Wildcard
Wildcards are popular, but a SAN certificate is often the better fit when names are few, known or spread across several domains. Here is how to decide.
10 min read

SSL Guides
One Certificate or a Separate SSL Certificate per Subdomain?
Covering all subdomains with one certificate is tidy, but a separate certificate per subdomain limits the damage when something goes wrong. Here is how to choose.
10 min read