Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Glossary

Subdomain: what it is and how it works

A subdomain is a domain name that sits beneath another, for example blog.example.com under example.com. You create one by adding DNS records, with no separate registration fee, and it can point to a different server than the parent domain.

The short answer
  • Created in your DNS zone; no new registration needed.
  • Each subdomain can point to a different server, service or provider.
  • Forgotten subdomains that still point at a deleted service can be taken over.
Try the dns lookupFree, live, no signup

How can a subdomain be set up?

Two ways to create blog.example.com
MethodHowWhen to use
Record in the parent zoneAdd an A, AAAA or CNAME record named blogNormal case; the same DNS host serves both names
DelegationAdd NS records for blog in the parent zoneHand the subdomain to other nameservers or another team

RFC 8499 defines a subdomain as a domain contained within another: section 2.

How do you keep subdomains safe?

  • List every subdomain periodically, including old campaign and staging names
  • Delete DNS records that point at services you no longer use
  • Remember each label is limited to 63 bytes and the full name to 255 bytes
  • Use DNS monitoring to see when records change unexpectedly

Common questions

Is a subdomain free?

Subdomains cost nothing to create: you add records in the DNS zone of a domain you already own. You pay only for the parent domain registration and any DNS hosting.

What is the difference between a subdomain and a subdirectory?

A subdomain is a separate hostname (blog.example.com). A subdirectory is a path on the same host (example.com/blog). DNS treats subdomains as separate names; search engines can treat them as separate sites to varying degrees.

How many subdomain levels can a domain have?

DNS sets no fixed level count. The limits are 63 bytes per label and 255 bytes for the entire name, per RFC 1035, so practical depth is bounded by name length.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.