What Is a Subdomain
Learn what subdomains are, common examples like www and mail, DNS records per subdomain, and SSL considerations.
Introduction
Subdomains let you organize services under one brand. The root domain example.com and subdomain www.example.com are separate DNS names that can route to different servers.
Subdomains are not separate domain registrations — they are DNS names inside your existing zone, unless delegated to another DNS provider.
Quick answer
A subdomain is a hostname under your main domain, such as www.example.com, mail.example.com or app.example.com. Each subdomain can have its own DNS records (A, CNAME, MX, TXT) and may point to different services.
What it means
A subdomain adds a label before the registered domain. DNS treats each full name as its own hostname with its own records.
- www is the most common subdomain
- mail, app, api, staging are frequent use cases
- Each subdomain can have A, AAAA, CNAME, MX or TXT records
- SSL certificates must cover subdomains you use (or use wildcard)
- Wildcard DNS (*.example.com) can catch undefined subdomains
Where you see this:
- www for websites
- mail for mail server hostnames
- app or api for applications
- staging or dev for test environments
- CDN or SaaS verification subdomains
www.example.com
mail.example.com
app.example.com
blog.example.com
Why this matters
Missing subdomain DNS breaks only that hostname — the root site may work while app.example.com fails. SSL and hosting must be configured per subdomain when needed.
How to check it
- Run DNS Lookup on the full subdomain (for example app.example.com).
- Check which record type it uses: A, AAAA or CNAME.
- Confirm SSL covers the subdomain if it serves HTTPS.
- Verify hosting or CDN mapping for that hostname.
- Test the URL in a browser or with Website Status Checker.
Check subdomain DNS
Use DNS Lookup to see how a subdomain resolves and which records exist.
Common mistakes
Subdomain DNS record missing
HighThe subdomain name was created in hosting but no DNS record exists.
Next step: Add A, AAAA or CNAME for the subdomain at authoritative DNS.
SSL does not cover subdomain
HighCertificate is valid for example.com but not www or app.
Next step: Include subdomains in the certificate or use a wildcard cert.
CNAME conflict on subdomain
MediumCNAME on a name that also needs MX or TXT records.
Next step: Restructure DNS so conflicting records use different hostnames.
Wrong document root or hosting mapping
MediumDNS resolves but hosting serves the wrong site or 404.
Next step: Configure virtual host or panel addon domain for the subdomain.
Example
app.example.com. 300 IN A 192.0.2.20
www.example.com. 300 IN CNAME example.com.
mail.example.com. 300 IN A 198.51.100.5
Frequently asked questions
Is www a subdomain?
Yes. www.example.com is a subdomain of example.com.
Do subdomains need separate registration?
No. Subdomains are created with DNS records inside your existing domain zone.
Can subdomains use different hosting?
Yes. Each subdomain can point to a different IP or external service via DNS.
What is a wildcard subdomain?
A record like *.example.com that matches any undefined subdomain name.
Related tools
Use these free tools to verify your configuration after applying changes.
Related guides
Browse all Glossary guides →Need help applying this fix?
Send us your domain, report link or issue details. CheckDomainHealth will review the request and route it to the right technical team if hands-on support is needed.
Was this guide helpful?
Your feedback helps us improve our guides for everyone.
Thanks for your feedback!