Subdomains Made Simple

A free, independent guide to creating, configuring and securing subdomains — from DNS records to wildcard SSL certificates — written for site owners, developers and students. Instructions are provider-neutral and work with any registrar or DNS host.

Create Your First Subdomain

How to Create a Subdomain

Step-by-step guide that works for any registrar or DNS provider.

1
Log into your DNS provider — This is your registrar (Namecheap, Cloudflare, etc.) or your host's DNS panel.
2
Add a new A record or CNAME — For an A record, set Name = subdomain (e.g. "blog"), Value = your server IP. For CNAME, Value = target domain.
3
Wait for DNS propagation — Changes typically propagate in 5–30 minutes (Cloudflare) or up to 48 hours (some legacy providers).
4
Configure your web server — Add a virtual host (Apache/Nginx) or app routing to handle requests for the new subdomain.
5
Install SSL certificate — Use Let's Encrypt (free) or get a wildcard cert for *.yourdomain.com to cover all subdomains at once.

Example DNS Records (Cloudflare format):

# A Record — subdomain points to server IP Type: A Name: blog (→ blog.yourdomain.com) Content: 203.0.113.42 TTL: Auto
# CNAME — subdomain points to another domain Type: CNAME Name: shop (→ shop.yourdomain.com) Content: stores.shopify.com TTL: Auto
# Wildcard — covers all subdomains at once Type: A Name: * (→ *.yourdomain.com) Content: 203.0.113.42

Common Subdomain Use Cases

What developers and businesses actually use subdomains for.

📝
blog.yourdomain.com

Separate blog from main site, often on WordPress or Ghost while main site runs on a different stack.

🛒
shop.yourdomain.com

E-commerce store on Shopify, WooCommerce, or custom platform while keeping the brand domain.

📱
api.yourdomain.com

RESTful API endpoint for mobile apps and third-party integrations. Standard practice.

🛠️
dev.yourdomain.com

Staging/development environment that mirrors production for testing before deployment.

🌍
de.yourdomain.com

Country/language-specific versions of a site. Common for international businesses.

📊
app.yourdomain.com

Web application, SaaS dashboard, or customer portal separate from the marketing site.

📧
mail.yourdomain.com

Mail server (Postfix, Exchange) or webmail client (Roundcube) access point.

🎓
docs.yourdomain.com

Documentation site, often on GitBook, Notion, or a static site generator like Docusaurus.

💬
status.yourdomain.com

System status page (Atlassian Statuspage, Upptime) to communicate service health to users.

Subdomain vs. Subfolder: Which Should You Use?

The SEO debate, settled with clear use-case guidance.

FactorSubdomain (blog.site.com)Subfolder (site.com/blog/)
SEO ImpactTreated as separate siteShares domain authority
Technical SeparationFull stack independenceShared server/config
Best for Blog/ContentOnly if different CMS neededRecommended
Best for App/APIRecommendedNon-standard
SSL CertificateSeparate cert or wildcardSame cert as main domain
DeploymentFully independent deploysTied to main app deploy
Bottom line: Use subfolders for blogs/content (SEO benefit). Use subdomains for apps, APIs, staging environments, and services that need independent tech stacks.

Go deeper

SubDoms is a free, independent reference. These guides and tools cover the rest of a typical subdomain setup.

DNS record types

A, AAAA, CNAME, MX, TXT, NS and CAA records explained, with when to use each.

Common subdomain types

www, api, blog, cdn, mail, staging and more: what each is usually for and how it is set up.

Subdomain vs. subfolder SEO

How search engines treat each option and which to choose for content, apps and regional sites.

Free DNS lookup tools

Check records, CNAME targets and security headers from your browser using public DNS-over-HTTPS.

Articles

Wildcard subdomains, staging environments, SSL options, microservices and takeover prevention.

Subdomain FAQ

Quick answers on propagation time, A vs. CNAME, wildcard certificates and SEO.

Latest Articles

Stay informed with our latest content

Loading...

DNS & Domain Management Tips

Occasional emails when new guides on DNS, subdomains and SSL are published.

Loading latest news...