A Wildcard DNS record allows you to route any subdomain that does not explicitly exist to a single destination. This is extremely useful when you want to handle dynamic subdomains, simplify DNS management, or support scalable applications without manually creating DNS records for each subdomain.
This guide explains what wildcard DNS records are, how they work, when to use them, and how they apply to Freename-managed domains.
A wildcard DNS record uses the * (asterisk) character to match any subdomain that is not explicitly defined.
Example:
*.example.com
This means:
will all resolve to the same destination unless a specific record exists for that subdomain.
Wildcard DNS works by acting as a fallback rule.
DNS resolution order:
So if:
Then DNS will use the wildcard record.
Important technical detail:
Explicit DNS records always override wildcard records.
Wildcard records can be created for multiple DNS types.
Routes all subdomains to a single IP.
Example:
Host: *
Type: A
Value: 203.0.113.10
Used for:
Routes all subdomains to another hostname.
Example:
Host: *
Type: CNAME
Value: app.hostingprovider.com
Used for:
- CDN setupsRoutes email for all subdomains.
Example:
Host: *
Type: MX
Mail Server: mail.example.com
Note: rarely recommended unless you fully understand email routing.
Wildcard DNS is useful when:
Avoid wildcard DNS when:
Wildcard DNS can sometimes mask configuration errors, making debugging harder.
6. Wildcard DNS in Freename
Freename fully supports wildcard DNS records at the domain level.
You can create wildcard records in:
Portfolio → Domains → Manage → DNS
Example wildcard setup in Freename:
Once saved, any undefined subdomain will automatically resolve.
Important note:
Wildcard DNS does not automatically provide SSL.
You must:
Without proper SSL, browsers will show security warnings.
FAQ
What is a wildcard DNS record?
A wildcard DNS record uses the * (asterisk) to match any subdomain that does not have an explicit DNS record, routing all undefined subdomains to a single destination.
Do specific (explicit) DNS records override the wildcard?
Yes. DNS resolution checks an exact match first, and only uses the wildcard (*.example.com) as a fallback if no explicit record exists for that subdomain.
Which wildcard record types are commonly used?
You can create wildcard records for multiple DNS types, including:
Wildcard A/AAAA (routes all subdomains to one IP)
Wildcard CNAME (routes all subdomains to another hostname)
Wildcard MX (routes email for all subdomains, but it’s rarely recommended unless you fully understand email routing)
How do I create a wildcard DNS record in Freename?
Freename supports wildcard DNS at the domain level. You can add it from:
Portfolio → Domains → Manage → DNS
Typical setup:
Host/Name: *
Type: A or CNAME
Value: your IP or target hostname
TTL: default or custom
Does wildcard DNS automatically give me SSL for subdomains?
No. Wildcard DNS does not automatically provide SSL. You must use a wildcard SSL certificate (for example *.example.com) or use a provider that supports on-demand certificates (for example Cloudflare or certain CDNs).