Creating a subdomain — like blog.yourdomain.com or shop.yourdomain.com — is one of the simplest, most useful things you can do with a domain you own, and it costs nothing extra. Whether you want a blog, a store, a help centre, or a staging site, a subdomain gives that section its own clear address in just a few minutes. The exact steps depend on where your DNS is managed, but the process is straightforward either way.
This guide walks through how to create a subdomain step by step: the two methods (via your hosting control panel or via a DNS record), a clear walkthrough of each, how to add content once it exists, verifying it works, and how to delete one. By the end, creating subdomains will be a quick, confident task you can repeat as often as you need.
Did you know?
Subdomains are free and unlimited on a domain you own — you never register or pay for one. Creating a subdomain is just telling DNS where a new prefix should point, which your host’s control panel often does for you in a couple of clicks.
Two ways to create a subdomain
There are two main ways to create a subdomain, and which you use depends on where your domain’s DNS is managed. If your domain and hosting are with the same provider, the easiest method is your hosting control panel’s Subdomains tool, which creates the subdomain and sets up its DNS and a folder automatically.
If your DNS is managed somewhere other than the host you want the subdomain to point to — for example, at your registrar or a separate DNS provider — you create the subdomain by adding a DNS record yourself, telling DNS where the new prefix should resolve.
Both methods achieve the same result: a working subdomain under your domain. The control-panel method is simpler because the host handles the DNS behind the scenes; the DNS-record method gives you manual control and works in any setup. The rest of this guide walks through each, so you can follow whichever matches your situation.
Method 1: your hosting control panel
If your domain and hosting are with the same provider, creating a subdomain through the control panel is the quickest route. The steps are consistent across panels like hPanel and cPanel:
- Log in to your hosting control panel.
- Open the Subdomains section (sometimes under a Domains menu).
- Enter the subdomain prefix you want — for example, blog, shop, or app.
- Select the main domain you want to attach it to.
- Set the document root — the folder where the subdomain’s files will live (usually filled in automatically).
- Click Create.
That is all it takes. The control panel creates the subdomain, configures the necessary DNS automatically, and provisions a folder ready for your content. This automatic DNS handling is why the panel method is the easiest — you never have to touch a DNS record yourself when your domain and hosting are together.
Method 2: adding a DNS record
If your DNS is managed elsewhere, you create the subdomain by adding a DNS record at whoever holds your domain’s active nameservers. There are two record types you might use, depending on what you are pointing the subdomain at.
If you have a server IP address to point to, add an A record with the Host (or Name) set to your subdomain prefix — like blog — and the value set to the IP address. If instead you have been given a hostname to point at (for example, connecting the subdomain to a platform or service), add a CNAME record with the Host set to your subdomain prefix and the value set to that target hostname.
Log in to your DNS provider, open the DNS editor, add the appropriate record for your subdomain, and save. After propagation, the subdomain resolves to wherever you pointed it. This method works regardless of where your domain and hosting live, giving you the flexibility to create subdomains in any configuration.
Which method applies to you
Choosing the right method is simple once you know your setup. Here is how the options map to common situations.
For most people hosting their domain with one provider, the control-panel method is the obvious, easiest choice. The DNS-record methods come into play when your DNS is managed separately from where the subdomain should point. Match the method to your setup, and creating the subdomain is a matter of minutes.
Adding content to your subdomain
Creating the subdomain is only the first half — once it exists, you put content on it. If you created it via the control panel, it has its own document root folder, so you can install a separate site there (such as a fresh WordPress installation), upload files directly, or point a website builder at it, giving the subdomain its own distinct content.
Because servers treat a subdomain as an independent mini-site, what you put on blog.yourdomain.com can be entirely different from your main site — a different platform, a different design, even a different application. This independence is exactly why subdomains are so flexible for distinct sections.
So after the subdomain resolves, decide what lives there and set it up: a blog install, a store, a help centre, a landing page, or a staging copy of your main site. Add or install your content in the subdomain’s folder, and it becomes a fully functioning section of your web presence, distinct from but branded alongside your main domain.
Verifying it works
After creating a subdomain, allow time for it to take effect — like any DNS change, it can take from a few minutes up to 48 hours to resolve everywhere. Then visit the subdomain in your browser to confirm it loads the content or installation you set up.
If it does not resolve after propagation, check the basics. For the control-panel method, confirm the subdomain was created successfully and that its files or installation are actually in place at the document root. For the DNS-record method, verify the A record’s IP or the CNAME’s target is exactly correct, and — crucially — that you added the record on the nameservers your domain actually uses.
Editing a record in the wrong place, a DNS zone that is not active for your domain, is a common reason a subdomain does not appear. So confirm you are working where your domain’s DNS is truly managed, double-check the record values, and be patient through propagation. Get those right, and your subdomain will come online reliably.
Managing and deleting subdomains
Because subdomains are free and unlimited on a domain you own, you can create as many as you need and manage them over time. You might add subdomains as your site grows — a blog now, a store later, a help centre after that — each created with the same quick process and each functioning as its own section.
When you no longer need a subdomain, you can delete it. In the control-panel method, the Subdomains section lets you remove a subdomain (which also removes its automatic DNS entry); in the DNS-record method, you delete the A or CNAME record you added. Removing a subdomain takes it offline, so only delete ones you genuinely no longer want.
So subdomains are a flexible, ongoing tool: create them freely as your needs evolve, point each where it should go, add content, and clean up any you stop using. Because there is no cost and the process is quick, subdomains give you an easy way to organize and expand your web presence exactly as your site develops.
FAQs
How do I create a subdomain?
Two ways. If your domain and hosting are with the same provider, use your control panel’s Subdomains section: enter the prefix (like blog), select your domain, set a folder, and click Create — DNS is configured automatically. If your DNS is managed elsewhere, add a DNS record: an A record pointing the prefix to a server IP, or a CNAME pointing it to a hostname.
How do I create a subdomain in cPanel or hPanel?
Log in to your control panel, open the Subdomains section (sometimes under Domains), enter the subdomain prefix you want, select the main domain to attach it to, set or accept the document root folder, and click Create. The panel automatically configures the DNS and provisions a folder ready for your content.
Do subdomains cost money?
No. Because you already own the root domain, subdomains are free to create and you can make as many as you like, limited only by your hosting plan’s resources. You never register or pay for a subdomain the way you do a domain — you simply create it under your existing domain in your control panel or DNS.
How do I add a website to my subdomain?
Once the subdomain exists, put content in its document root: install a separate site (like a fresh WordPress installation), upload files, or point a website builder at it. Since a subdomain is treated as an independent mini-site, its content can be entirely different from your main site — a different platform, design, or application.
Why isn’t my subdomain working?
Usually propagation — allow up to 48 hours. Otherwise, confirm the subdomain was created and has content (control-panel method), or that the A record’s IP or CNAME’s target is correct and added on the nameservers your domain actually uses (DNS method). Editing the record in the wrong DNS zone is a common reason a subdomain doesn’t appear.
How do I delete a subdomain?
In the control-panel method, use the Subdomains section to remove the subdomain, which also removes its automatic DNS entry. In the DNS-record method, delete the A or CNAME record you added for it. Removing a subdomain takes it offline, so only delete ones you genuinely no longer need.
The bottom line
Creating a subdomain is a quick, free task on any domain you own, and there are two ways to do it depending on where your DNS is managed. If your domain and hosting are with the same provider, the easiest route is your control panel’s Subdomains tool: enter the prefix, select your domain, set a folder, and create — the host configures the DNS and provisions a folder automatically. If your DNS is managed elsewhere, you add a DNS record yourself — an A record pointing the prefix to a server IP, or a CNAME pointing it to a hostname — at whoever holds your active nameservers.
Once the subdomain resolves, you put content on it — a separate site install, uploaded files, or a connected builder — and because servers treat it as an independent mini-site, that content can be entirely distinct from your main site while sharing your brand. If it does not appear, it is almost always propagation, an incorrect record, or editing in the wrong DNS zone, so verify the values and the location and be patient. Subdomains are free and unlimited, easy to create and just as easy to delete, making them a flexible tool for organizing and expanding your web presence exactly as your site grows — a blog now, a store later, each with its own clear address in minutes.
When you are ready, you can start with Hostinger and use code PROTIPS for the reader discount. Create a subdomain via your host’s control panel Subdomains tool (same-host: auto DNS + folder) or by adding a DNS record elsewhere (A record to a server IP, or CNAME to a hostname). Then add content, verify after propagation, and delete any you no longer need. It’s free and unlimited on a domain you own.