Guides10 min read

What Is a Subdomain? How It Works, With .si Examples

A subdomain is a name you add to the left of your domain, at no registry cost. This guide covers how a hostname is built, real .si and AI examples, what Google says about SEO, setup steps, takeover risks and the .si registration rules.

Terminal window running dig on aipic.si, listing app, docs and api subdomains as CNAME, A and AAAA records under one domain

What is a subdomain? It is any name to the left of a registered domain, such as docs in docs.example.si. You create it yourself as a record in your own DNS zone, and the registry does not charge for it. Strictly speaking, example.si is itself a subdomain of the si top-level domain.

Most examples in this guide end in .si on purpose. .si is Slovenia’s country-code domain. For AI companies it reads as SuperIntelligence. For AI products, where the app, docs and API should live is also a current question. When BuySI Domains checked on November 26, 2026, OpenAI’s old ChatGPT address, chat.openai.com, sent every visitor to chatgpt.com with a permanent redirect.

What is a subdomain? Anatomy of a hostname

A subdomain is a domain that sits inside another domain. RFC 1034, one of the two 1987 RFCs that define the DNS, says a domain is a subdomain of another “if it is contained within that domain.” The test is simple: the subdomain’s name ends with the name of the domain that contains it.

Read a hostname from right to left. Take docs.example.si as an example:

  • si is the top-level domain (TLD), one layer below the DNS root.
  • example.si is the registered domain, often called the root domain: the part you register and renew through a registrar.
  • docs is the subdomain label you add yourself.

Each part between the dots is a label. A label can be up to 63 octets long. A full name is limited to 255 octets on the wire, which works out to 253 characters as you type it. Hostname labels use letters, digits and hyphens.

By the same test, www is a subdomain. Google’s Search Console help lists “m, www, and so on” as subdomains. The word is relative, not a fixed level. People often call blog.example.si a third-level domain, but www.fri.uni-lj.si sits four levels deep and is still a subdomain of uni-lj.si.

Subdomain examples

A subdomain example is any hostname with an extra label before the registered domain, such as www.gov.si. Subdomains usually split one brand into separate services. All 7 hostnames in this table resolved when BuySI Domains checked them on November 26, 2026.

HostnameParent domainWhat it hosts
www.gov.sigov.siSlovenian state portal
e-uprava.gov.sigov.siE-government services
fri.uni-lj.siuni-lj.siA University of Ljubljana faculty
gemini.google.comgoogle.comGemini AI assistant
platform.openai.comopenai.comOpenAI developer console
chat.mistral.aimistral.aiLe Chat assistant
sora.chatgpt.comchatgpt.comSora, under the ChatGPT domain

For a new product the usual pattern is app.example.si for the signed-in product, api.example.si for the API, docs.example.si for documentation and status.example.si for the status page. None of these needs a second registration.

Subdomain vs subdirectory vs separate domain

A subdomain gets its own hostname. A subdirectory, also called a subfolder, is a path on a hostname you already have. A separate domain is a new registration. The differences show up in cost, setup, cookies and how Google groups your pages.

FactorSubdomainSubfolderSeparate domain
Exampledocs.example.siexample.si/docsexampledocs.si
Registry feeNoneNoneYes, plus renewals
Where you set it upYour DNS zoneYour web server or appRegistrar, then DNS
robots.txtIts own fileShares the main fileIts own file
Search Console Domain propertyIncluded in example.siIncluded in example.siNeeds its own property
Site name in GoogleSupportedNot supportedSupported
CookiesShared only if set for Domain=example.siSame host, sharedKept apart from example.si
TLS certificateMust cover the new nameMain certificate covers itIts own certificate
Typical useApp, API, docs, statusBlog, guides, help pagesA separate product or brand

Subdomains are free at the registry, since only the registered domain carries a fee, although hosting and certificates can still cost money. Beyond cost, the choice depends on where the content runs. For a blog or guides that share the main site’s design and server, a subfolder is the least work. For software that runs on other servers or a hosted platform, a subdomain is easier because its DNS record can point anywhere. A separate domain makes sense when the product needs a name of its own.

Subdomain SEO: what Google says

Google treats subdomains and subfolders as equally valid choices. In a December 2017 video on the channel now called Google Search Central, Google’s John Mueller said “Google web search is fine with using either subdomains or subdirectories.” Google’s guide to multi-regional sites lists both as valid structures: subdomains allow “different server locations,” while subdirectories are “low maintenance (same host).”

Some differences are documented, though, and they affect your setup:

  • Search Console. A Domain property “Includes all subdomains (m, www, and so on)” and requires DNS record verification. A URL-prefix property includes only URLs that start with one exact prefix, protocol and hostname included.
  • robots.txt. Google’s robots.txt documentation says a robots.txt on a subdomain “is only valid for that subdomain.” Each subdomain needs its own file.
  • Site names. Google can show a site name for a domain or a subdomain, but it “does not support site names at the subdirectory level.”

Subdomains are no loophole either. Google’s spam policies list “creating new subdomains, subdirectories, or sites” to keep breaking its rules as policy circumvention. If you also run country sites, our guide to how country-code domains affect SEO covers that side.

How to create a subdomain

To create a subdomain, add a DNS record with the new label, such as docs, in the DNS zone your domain’s nameservers point to. That provider may be neither your registrar nor your web host. The five steps are the same at any DNS provider:

  1. Find your DNS host. Your domain’s nameservers show who answers for the zone. Our guide to nameservers explains how to check them.
  2. Set up the service first. Add the hostname, for example docs.example.si, in your hosting or docs platform before you touch DNS. MDN advises creating DNS records last.
  3. Add the record. Use an A or AAAA record to point at an IP address, or a CNAME to point at another hostname. A CNAME works on a subdomain but not on the bare domain, because the zone apex must hold the SOA and NS records. Some DNS providers work around this with ALIAS or CNAME flattening.
  4. Cover it with HTTPS. Issue a certificate for the new name. A wildcard such as *.example.si matches one label only, so it covers docs.example.si but not eu.docs.example.si or example.si itself. Let’s Encrypt issues wildcards only through the DNS-01 challenge.
  5. Wait for resolvers to pick up the record. How fast the new subdomain works everywhere depends on the record’s TTL and on resolver caches, not on a fixed 48 hours.
Five steps to create a subdomain: find the DNS host, set up the service, add an A, AAAA or CNAME record, cover it with HTTPS, wait for caches
Creating a subdomain takes five steps, and the DNS record comes after the service is ready. Source: RFC 1034, MDN, Let’s Encrypt.

Subdomain risks: takeover, cookies and wildcards

The biggest subdomain risk is a dangling DNS record, which can let an attacker take over the subdomain. MDN describes the weak spot as a subdomain that “has a canonical name (CNAME) in the Domain Name System (DNS), but no host is providing content for it.” Microsoft’s security guidance adds that the attacker can then get a valid certificate for the hijacked name.

The fix is a habit. When you retire a service, remove the DNS record first, then shut the service down. Keep a list of every subdomain and where it points. Our article on domain hijacking covers the registrar side of the same problem.

Cookies are the second risk. Under RFC 6265, a cookie set with Domain=example.si is sent to example.si and to every subdomain below it. If you leave out the Domain attribute, the browser returns the cookie only to the host that set it. Starting a cookie’s name with the __Host- prefix makes browsers enforce that: as MDN explains, such a cookie must be Secure, must have no Domain attribute and must use Path=/.

Two settings widen the blast radius. A wildcard DNS record (*.example.si) makes every name under example.si that has no records of its own resolve, typos included. When example.si sends the HSTS includeSubDomains directive, browsers use HTTPS on every subdomain as well, so an old internal host that serves only HTTP stops loading. The HSTS preload list requires that directive.

How subdomains work under .si

Register.si registers one level only: the name directly under .si. Its general terms, published November 15, 2024, define a domain name as “a string of characters registered directly under the .si top-level domain.” Arnes, the Academic and Research Network of Slovenia, runs the registry.

The rules for that name are short. It needs at least 2 characters and at most 63, with no hyphen at the start or end. The 63-character cap matches the DNS label limit. The terms set no rule and no fee for anything to the left of yourname.si, because that part lives in your own DNS zone.

The Public Suffix List, which browsers use to tell where one site ends and the next begins, shows the same flat structure. BuySI Domains checked the November 25, 2026 version of the list on November 26, 2026. Its ICANN section has a single .si entry: “si” itself. By comparison, .uk has 12 entries, including co.uk, ac.uk and gov.uk, and .ai has 5, including com.ai. Under .si there is no co.si layer, so a name like example.si is the registrable domain and everything to its left is a subdomain you create.

The list’s private section adds 3 .si names run by platforms that hand out subdomains to users, such as gitpage.si. Browsers treat each user’s name under them as a separate site, so one user cannot set cookies for another.

Slovenian public bodies run many of their services on subdomains. The government domain gov.si is an ordinary second-level name: the state portal runs on www.gov.si, e-government on e-uprava.gov.si and the Financial Administration on fu.gov.si. The University of Ljubljana gives faculties names such as fri.uni-lj.si, fe.uni-lj.si and ff.uni-lj.si, and the University of Maribor uses feri.um.si.

The same lookups show CNAMEs at work. The University of Ljubljana’s www.uni-lj.si is a CNAME to a hostname at an outside web agency, and Arnes points www.arnes.si to splet.arnes.si. For the registration side, see our complete guide to the .si domain.

Subdomain or a separate .si domain for an AI product

Most consumer AI chat assistants run on a domain of their own. On November 26, 2026, BuySI Domains checked 18 of them. Of those, 11 answered on the root or www of their own domain, 5 on a subdomain of a broader domain and 2 in a subfolder.

Bar chart of where 18 consumer AI chat assistants are served: 11 on their own domain, 5 on a subdomain and 2 in a subfolder, November 2026
Where 18 consumer AI chat assistants are served: own domain, subdomain or subfolder. Source: BuySI Domains check of 18 AI assistants, November 26, 2026.

On their own domains we found claude.ai, grok.com and poe.com, among others. Gemini runs on gemini.google.com and Le Chat on chat.mistral.ai. HuggingChat lives in a subfolder at huggingface.co/chat.

Some of the biggest names changed hosts. ChatGPT’s old address, chat.openai.com, returned a 308 permanent redirect to chatgpt.com, and Microsoft’s copilot.microsoft.com returned a 301 to copilot.com. Gemini moved sideways: bard.google.com redirects to gemini.google.com, another subdomain. The reverse happens too: sora.com sent a 307 temporary redirect to sora.chatgpt.com.

Developer tools stayed on subdomains, as our check showed for platform.openai.com, platform.claude.com and aistudio.google.com. That fits the split many teams use: the consumer product gets the name people type and share, while the console, API and docs sit on subdomains.

A practical rule for a new AI product:

  • Use subdomains for parts of one product. App, API, docs and status pages cost nothing extra and stay under one brand.
  • Use a separate domain for a product with its own name. It keeps cookies and sessions apart and is easier to spin off later. A short name such as aipic.si, which BuySI Domains lists for sale, would suit an AI image tool.
  • If you move later, redirect the old hostname. ChatGPT’s old address still redirects today. Our guide to domain redirects covers the setup.

If you are naming a product now, start with the name people will type. Put everything else on subdomains of it, and keep a DNS inventory from the first day.

Frequently asked questions

Are subdomains free?

Yes, subdomains carry no registry fee. A registry such as Register.si charges only for the name registered directly under the top-level domain, like example.si. You add docs.example.si or app.example.si yourself as records in your own DNS zone. Costs can still come from hosting the service behind the subdomain, from DNS providers that cap the number of records, or from a paid TLS certificate.

What is the difference between a domain and a subdomain?

The difference between a domain and a subdomain is registration. A domain such as example.si is registered and renewed through a registrar, which records it with the registry. A subdomain such as shop.example.si is a name you create under that domain in your own DNS zone, with no separate registration. Technically both are domains: RFC 1034 calls any domain contained in another a subdomain, so example.si is itself a subdomain of si.

How do I create a subdomain?

To create a subdomain, open the DNS zone at the provider your nameservers point to, which may differ from your registrar. Set up the service first, then add a record with the new label, such as docs: an A or AAAA record for an IP address, or a CNAME for a hosted service. Finally, make sure an HTTPS certificate covers the new hostname.

Which is an example of a subdomain?

Two common examples of a subdomain are www.gov.si, which sits under gov.si, and gemini.google.com, which sits under google.com. In both, the leftmost label is the subdomain and the rest is the registered domain. A subdomain can sit several levels deep: www.fri.uni-lj.si is a subdomain of fri.uni-lj.si and of uni-lj.si. Even www is a subdomain, as Google's Search Console help notes.

Are subdomains bad for SEO?

Subdomains are not bad for SEO. Google's John Mueller said in a December 2017 Google video that Google web search is fine with either subdomains or subdirectories. The real differences are practical: a subdomain needs its own robots.txt file, a Search Console Domain property covers all subdomains, and Google can show a site name for a subdomain but not for a subfolder.

Sources

  1. RFC 1034: Domain Names, Concepts and Facilities — RFC Editor
  2. General terms and conditions for registration under .si — Register.si (Arnes)
  3. Add a website property to Search Console — Google Search Console Help
  4. How Google interprets the robots.txt specification — Google for Developers
  5. Influencing your site name in Google Search — Google Search Central
  6. Managing multi-regional and multilingual sites — Google Search Central
  7. Subdomain takeover — MDN Web Docs
  8. Public Suffix List — Mozilla
  9. RFC 6265: HTTP State Management Mechanism — RFC Editor
  10. Let's Encrypt FAQ — Let's Encrypt
  11. RFC 9525: Service Identity in TLS — RFC Editor
  12. Prevent dangling DNS entries and avoid subdomain takeover — Microsoft Learn