Subdomains Made Simple

The complete guide to creating, configuring, and managing subdomains — from DNS records to wildcard SSL certificates. Everything you need to know in one place.

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.

Request Domain Consultation

Need expert help with DNS configuration, subdomain architecture, or domain migration? Our team can guide you through it.

  • Multi-domain DNS setup
  • Wildcard subdomain config
  • SSL/TLS certificate strategy
  • CDN and routing optimization

Get Expert Help

Book a Tech Consultation

Schedule a 1-on-1 session with our DNS and subdomain specialists. We will review your architecture and recommend the best approach.

  • 30-minute expert sessions
  • Video or phone call
  • Free consultation

Schedule Your Session

Latest Articles

Stay informed with our latest content

Loading...

DNS & Domain Management Tips

Weekly practical guides on DNS, subdomains, SSL, and web infrastructure.

Loading latest news...