What a subdomain is and why you might need one
A subdomain is a prefix you add to your existing domain name that creates a separate web address pointing to a different part of your site or a different service entirely. If your main domain is example.com, a subdomain might be blog.example.com or shop.example.com. You own the main domain already — creating a subdomain does not require buying anything new or registering with a separate authority.
Subdomains let you organize different sections of your website under their own addresses, run a separate blog or store without buying a second domain, test new features on a staging version of your site, or point to services like email hosting or file storage. They are useful when you want visitors to see a distinct section of your site but do not want to purchase an entirely separate domain name.
Key Takeaways
- You create a subdomain through your domain registrar's control panel by adding a DNS record, not by registering anything new.
- The most common method is creating an A record or CNAME record that points the subdomain to your web host's server.
- Subdomains take effect within minutes to a few hours depending on how quickly DNS changes propagate across the internet.
- You can create as many subdomains as you need from the same main domain without additional cost.
Where to create a subdomain: your registrar's DNS settings
You create a subdomain in the same place you manage your domain name — your registrar's control panel. This is where you already went to register the domain in the first place. Log in to your account with the registrar (GoDaddy, Namecheap, Google Domains, Bluehost, or whoever you registered with), find the DNS settings or DNS management section, and look for an option to add a DNS record or manage records.
If your domain is registered with one company but hosted with another, you will manage the DNS in your registrar's panel, not your hosting company's panel. Your hosting company will tell you what information to enter into those DNS records — usually an IP address or a server address — but the actual creation happens at the registrar.
The two main ways to point a subdomain to your site
Most subdomains are created using one of two types of DNS records: an A record or a CNAME record. An A record points your subdomain directly to an IP address (a string of numbers like 192.0.2.1). A CNAME record points your subdomain to another domain name instead, which then points to the IP address. CNAME records are more flexible because if your hosting company changes your IP address, you only have to update one place instead of multiple records.
Your web host will tell you which type to use and what information to enter. If they say "create an A record pointing to 192.0.2.1", you will add a new DNS record, select A record as the type, enter the subdomain name (just "blog" if you are creating blog.example.com), and paste the IP address. If they say "create a CNAME record pointing to example.com.c.hosting.com", you follow the same steps but select CNAME as the type and enter the host address instead.
Step-by-step: creating a subdomain at a common registrar
The exact steps vary slightly by registrar, but the process is similar everywhere. Log into your registrar account, navigate to your domain, and look for DNS management, DNS settings, or nameserver settings. Once you are in the DNS section, find the button to add a new record or add a DNS entry.
In the form that appears, you will see fields for Name (or Subdomain), Type, and Value (or Points To). In the Name field, enter only the prefix — if you are creating blog.example.com, type "blog", not "blog.example.com". For Type, select A or CNAME depending on what your host instructed. In the Value field, paste the IP address or host address your hosting company provided. Leave the TTL (time to live) at its default unless your host tells you otherwise. Click Save or Create, and the record is live.
If you are creating multiple subdomains, repeat this process for each one. You can have shop.example.com, blog.example.com, and mail.example.com all pointing to different places from the same main domain.
How long it takes for a subdomain to work
After you create the DNS record, the subdomain does not work when ready. DNS changes propagate across the internet's servers over time — usually within a few minutes to a few hours, though occasionally up to 24 hours. During this time, some people may see the old version of the subdomain (or no version at all) while others see the new one.
You can check whether your subdomain is live by typing it into your browser or using a DNS lookup tool like MXToolbox or Google's DNS checker. If it does not work right away, wait an hour and try again. If it still does not work after several hours, double-check that you entered the information correctly in the DNS record — a single typo in the IP address or host name will prevent it from working.
Subdomains versus subfolders: when to use each
A subdomain (blog.example.com) is different from a subfolder (example.com/blog). Subdomains are separate addresses that can point to different servers or services. Subfolders are just different pages within the same site on the same server. For most small websites, a subfolder is simpler and requires no DNS setup — you just create a folder in your site files and upload content to it.
Use a subdomain when you want a completely separate service (like a store powered by Shopify while your main site is on WordPress), when you need a staging or testing version of your site, or when you want to host something on a different server. Use a subfolder when you are just organizing different sections of the same website. If you are unsure, a subfolder is usually the easier choice and works fine for most purposes.
Frequently Asked Questions
Can I create a subdomain if my domain is registered with one company and hosted with another?
Yes. You create the DNS record at your registrar (where you registered the domain), but you use the server information from your hosting company. Your host will tell you what IP address or host name to point the subdomain to. The registrar and host work together through DNS.
Do I have to pay extra to create a subdomain?
No. Subdomains are created through DNS records at no additional cost. You are not registering a new domain or buying anything — you are just pointing a new address to a server you already have.
What if I create a subdomain but nothing shows up when I visit it?
First, wait a few hours for DNS to propagate. If it still does not work, check that you entered the IP address or host name exactly as your hosting company provided it — even a single character wrong will break it. If the information is correct, contact your hosting company to confirm the subdomain is set up on their end.
Can I use a subdomain for email?
Not directly. Email addresses use the main domain (you cannot have user@blog.example.com as a separate email service). However, you can create a subdomain to point to email hosting services — for example, mail.example.com could point to your email provider's server. Your email provider will give you the DNS record details to set up.
How many subdomains can I create?
Most registrars and hosts allow unlimited subdomains on a single domain. You can create as many as you need without additional cost. The only limit is practical — you probably do not need hundreds of them.