Private customers Business customers

Set up a subdomainFree, as many as you like - and what they are worth it for

Subdomains such as shop.yourcompany.com or mc.yourcompany.com are not registered at any registry - you create them yourself in DNS, free of charge and in unlimited numbers. This guide shows how that works and when a subdomain is the better choice than a second domain.

freeA or CNAMEWildcardStaging

Published on

What a subdomain is

A subdomain is everything to the left of your registered domain. yourcompany.com becomes shop.yourcompany.com, blog.yourcompany.com or mc.yourcompany.com.

The crucial point: subdomains are not registered. They come into being solely through a record in your DNS zone. That means they cost nothing, are available immediately and there is no limit - even test.staging.yourcompany.com is possible.

Register a domain from €6.49 / year

Prepaid, DNS management included.

View extensions & prices

Creating one: a single record is enough

In DNS management, you create a record whose name is the subdomain. Two variants are common:

shop    A       85.214.12.7
blog    CNAME   yourcompany.com.
  • A record if the subdomain should point to a specific IP - for example, to a different server than the main domain.
  • CNAME if it should follow the same target as a name you already maintain. If the IP changes there, the subdomain moves along automatically.

Important: next to a CNAME, no other record may exist for the same name. If you additionally need MX or TXT for a subdomain, use an A record. All record types are explained in DNS records explained.

The second step: the server has to play along

The DNS record only gets visitors as far as the server. What is delivered there is decided by the server itself:

If this step is missing, visitors land on the default page or the main domain.

What subdomains are worth it for

SubdomainPurpose
shop.Run a shop system separately from the main site
staging. / dev.Test copy of the site before changes go live
mail.Host name of the mail server the MX points to
mc. / cs.Game server, combined with an SRV record
cloud. / panel.Your own services on the VPS, e.g. Nextcloud or an admin panel

A tip for staging environments: block them via robots.txt and password protection, otherwise Google indexes your test copy and you create duplicate content.

Wildcard subdomains

A record with the name * catches all subdomains that are not explicitly defined:

*   A   85.214.12.7

This is practical for applications that assign each customer their own subdomain. But it comes at a price: typos and unrelated requests also land on your server, and a matching SSL certificate must also be a wildcard - it is issued via a DNS check instead of via HTTP.

Subdomain or subdirectory?

In terms of content, both are possible - blog.yourcompany.com or yourcompany.com/blog. The decision has less to do with SEO than is often claimed, and more to do with technology:

  • Subdomain if the service should run technically separately - its own software, its own server, its own access rights.
  • Subdirectory if the content belongs thematically to the main site and should benefit from its visibility.

Search engines tend to treat subdomains as independent sites. For a blog meant to strengthen the main site, the subdirectory is therefore usually the better choice - for a technically separate shop, the subdomain.

Frequently asked questions

Nothing. Subdomains are not registered at a registry, but only created as a DNS record in your zone. You can create as many as you like.

From the DNS point of view, there is no practical limit. The only limit is how many of them your hosting plan can serve - with web hosting, that depends on the plan; with a VPS, only on its performance.

Yes, every subdomain needs a valid certificate. Either you issue one per subdomain, or you use a wildcard certificate that covers all subdomains of one level.

Because the DNS record does point to the server, but there is no separate configuration for the subdomain there. The web server then delivers the default vHost. Create a separate document directory for the subdomain.

Not in principle, but search engines tend to treat subdomains as independent sites. Content meant to strengthen the main site therefore usually sits better in a subdirectory; technically separate services better on a subdomain.

A DNS record with the name * that directs all subdomains not explicitly defined to one target. Practical for applications with customer-specific subdomains, but it requires a wildcard certificate.

One domain, as many subdomains as you like

Every domain - a .de costs €6.49 / year - comes with DNS management in the web interface. You create subdomains there yourself, at no extra cost.

View domain extensions & prices