Dashboard
Edit Article Logout

What is a subdomain?

Written by: Rob Howard

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

PartIn blog.example.comWhat it is
Top-level domain (TLD).comThe last part of the domain, like .com, .org or .co.uk
Root (registered) domainexample.comThe name you register and pay for
SubdomainblogA 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:

SubdomainUsed for
www.dailystory.comThe main DailyStory website
app.dailystory.comThe DailyStory application
docs.dailystory.comUser documentation
dev.dailystory.comDeveloper 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

SubdomainSubdirectorySeparate domain
Exampleblog.example.comexample.com/blogexampleblog.com
CostFree, set up in DNSFree, set up on your websiteRequires registering a new domain
HostingCan run on a different server or platformUsually runs on the same siteFully separate
Search ConsoleVerified and tracked separately (unless you use a domain property)Tracked with the main siteVerified and tracked separately
Best forApps, help centers, stores, landing pages and services on other platformsBlogs, guides and content you want tied closely to the main siteDistinct 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

  1. Sign in to your DNS provider, usually your domain registrar or hosting company.
  2. 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.
  3. Add any verification records the service asks for, often TXT records.
  4. Wait for DNS to update. Changes can take from a few minutes to 48 hours.
  5. 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.
A subdomain doesn't give you a fresh reputation

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

UseExampleHow it works
Email sendingds.example.comYou 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 pagespages.example.comEnterprise 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 shortenertxts.example.comA 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.

Related Articles