What is a Subdomain?
A subdomain is a prefix added to your main domain — like blog.example.com or shop.example.com. Subdomains let you separate different parts of your site without needing a new domain.
How to Create a Subdomain on Domain Providers (e.g., Hostinger, GoDaddy, Namecheap)
Most domain providers don’t host the content, but they let you create DNS records that point subdomains to another server or IP.
Step-by-Step:
- Login to your domain provider dashboard
- Go to DNS Zone / DNS Management
- Click Add Record
- Choose:
- Type: A Record (or CNAME if you’re pointing to another domain)
- Name: The subdomain (e.g.,
blog) - Value: The destination IP or domain (e.g., IP of your VPS or site)
Example for A Record:
Type: A Name: blog Value: 123.45.67.89 (your server IP) TTL: Auto or 3600Example for CNAME (if using another domain):
Type: CNAME Name: blog Value: mysite.hostingprovider.com TTL: Auto