What is a subdomain?
A subdomain is a prefix added to a domain name to create a separate section or service, such as blog.example.com or shop.example.com. The subdomain sits to the left of the main domain, separated by a dot, and you create it in your DNS settings without buying a new domain.
Businesses use subdomains to run different websites, apps and services under one brand. In marketing, they're also essential behind the scenes: email platforms send from authenticated subdomains, landing pages live on them, and branded link shorteners use them to make tracked links look trustworthy.
Parts of a web address
| Part | In blog.example.com | What it is |
|---|---|---|
| Top-level domain (TLD) | .com | The last part of the domain, like .com, .org or .co.uk |
| Root (registered) domain | example.com | The name you register and pay for |
| Subdomain | blog | A prefix you create in DNS to point to a separate site or service |
Even "www" is technically a subdomain. You can also stack subdomains, as in us.shop.example.com. For more on how domains work, read Domain name 101: A beginner's guide for small businesses.
Subdomain examples
DailyStory uses several subdomains of dailystory.com:
| Subdomain | Used for |
|---|---|
| www.dailystory.com | The main DailyStory website |
| app.dailystory.com | The DailyStory application |
| docs.dailystory.com | User documentation |
| dev.dailystory.com | Developer documentation |
Other common uses include shop. for a store, support. or help. for a help center, events. for registrations, and regional or language subdomains like uk. or es.
Subdomain vs. subdirectory vs. separate domain
| Subdomain | Subdirectory | Separate domain | |
|---|---|---|---|
| Example | blog.example.com | example.com/blog | exampleblog.com |
| Cost | Free, set up in DNS | Free, set up on your website | Requires registering a new domain |
| Hosting | Can run on a different server or platform | Usually runs on the same site | Fully separate |
| Search Console | Verified and tracked separately (unless you use a domain property) | Tracked with the main site | Verified and tracked separately |
| Best for | Apps, help centers, stores, landing pages and services on other platforms | Blogs, guides and content you want tied closely to the main site | Distinct brands or products |
Are subdomains bad for SEO?
Not inherently. Google has said it doesn't prefer one structure over the other for ranking. In practice, Google may need time to learn a new subdomain, and many SEO teams keep blog content in a subdirectory so it's clearly part of the main site. Choose the structure that's easiest to manage, and keep it consistent.
How to create a subdomain
- Sign in to your DNS provider, usually your domain registrar or hosting company.
- Add a DNS record for the subdomain. Use a CNAME record to point it to another hostname, such as a service provider, or an A or AAAA record to point it to an IP address.
- Add any verification records the service asks for, often TXT records.
- Wait for DNS to update. Changes can take from a few minutes to 48 hours.
- Confirm it works with a DNS lookup tool, and make sure the site loads over HTTPS.
Why email marketing uses subdomains
Most email platforms send marketing email from a subdomain of your domain, such as ds.example.com or news.example.com. This approach:
- Protects your company email. Marketing DNS records live on the subdomain, so your main domain's MX and SPF records don't change.
- Keeps your brand. Emails still come from your domain, and DKIM and DMARC alignment work because the subdomain belongs to your organizational domain.
- Separates sending streams. Marketing and transactional mail can use different subdomains, so a spike in complaints from a promotion is less likely to affect password resets and receipts.
Mailbox providers look at both the subdomain and your main domain. Switching to a new subdomain won't escape a poor sending reputation, and a brand-new subdomain still needs to be warmed up gradually. Your DMARC policy also applies to subdomains unless you set a separate subdomain policy.
Keep your subdomains secure
When you stop using a service, delete the DNS record that pointed a subdomain to it. A leftover ("dangling") CNAME can let someone else claim that service and publish content on your subdomain, a risk known as subdomain takeover. That kind of takeover can host phishing pages under your brand and damage trust in your links.
Subdomains in DailyStory
| Use | Example | How it works |
|---|---|---|
| Email sending | ds.example.com | You add two MX records plus SPF and DKIM records that DailyStory provides. A green check appears when each is verified, usually within 20 to 30 minutes. See Setting up email marketing. |
| Landing pages | pages.example.com | Enterprise customers can host DailyStory landing pages on their own subdomain with a CNAME or A record, and DailyStory adds an SSL certificate automatically. See Setting up a subdomain. |
| SMS link shortener | txts.example.com | A branded short-link domain for text messages helps recipients trust your links and click. See Custom SMS URL shortener. |
Learn more about email marketing and SMS marketing with DailyStory, or explore all features.
Frequently asked questions
Do I have to pay for a subdomain?
No. If you own the domain, you can create subdomains for free in your DNS settings. Some services charge for features tied to a subdomain, such as hosting or SSL.
Will setting up an email sending subdomain affect my company email?
No. The records go on the subdomain only, so your main domain's mailboxes and existing records keep working.
Is www a subdomain?
Yes. www.example.com is a subdomain of example.com. Most sites redirect one version to the other so visitors and search engines see a single address.
How many subdomains can I have?
There's no practical limit for most businesses. Each one just needs its own DNS record, and each one is something to keep track of and secure.