What is a domain and what happens when someone types it

Published on 2026-09-12 by frfrand

It is read backwards from how it is written, and that single idea explains the entire hierarchy. The full DNS query path, what TTL is, and why changes take time.

What is a domain and what happens when someone types it

Short answer: a domain is a name that points to a network address, organized in levels that are read from right to left: the root, the top-level domain (.com), your name, and subdomains. When someone types it, a recursive DNS server asks level by level until reaching your name servers, and caches the answer during the TTL.

A domain is a name that points to a network address. That is the short definition. What is interesting is how it is organized and what happens between when you type it and the site appears.

It is read backwards

Domains are read from right to left, and each dot is a level of delegation.

In blog.miempresa.com:

  • com is the top-level domain, administered by a registry that has a contract with ICANN.
  • miempresa is what you registered. The .com registry knows which name servers are responsible for that domain.
  • blog is a subdomain. You create this yourself, without asking anyone's permission, because you administer your zone.

There is one more level that is almost never written: the root, which is the invisible final dot after "com". It exists, and it is where everything starts.

That hierarchy solves a problem that would otherwise be impossible: nobody needs to have the complete list of all names on the Internet. Each level only knows whom to ask about the next one.

The journey of a query

When you write the name, your computer doesn't know the address. It asks a recursive DNS server (your provider's, or a public one), and that server does the work:

  1. It asks a root server: "who knows about .com?". It responds with the servers of the .com registry.
  2. It asks the .com registry: "who knows about miempresa.com?". It responds with the name servers you configured.
  3. It asks your servers: "what is the address of blog.miempresa.com?". There it finally gets the answer.

It seems like many steps and in practice almost never are all of them traversed, because each result remains in cache.

The TTL, which explains why changes take time

Each DNS response comes with a TTL: how many seconds it can be kept in cache before asking again.

If your record has a TTL of 86400 (one day) and you change the address, the servers that already had it cached will keep giving the old answer for up to an entire day. It's not that "DNS propagates slowly": it's that you are waiting for the caches to expire.

From there comes the most useful custom about DNS: before a migration, lower the TTL to 300 seconds one day in advance. On the day of the change, caches expire in five minutes and the transition is almost immediate. Then you raise it again.

The records you will use

A name -> IPv4 address AAAA name -> IPv6 address CNAME name -> another name (an alias) MX where the email for this domain goes TXT free text: verifications, SPF, DKIM

Two rules about CNAME that cause real problems:

  • It cannot coexist with other records at the same name. That's why you cannot put a CNAME at the root of the domain: SOA and NS records are always there (and almost always MX). Some DNS providers offer an equivalent ("CNAME flattening" or ALIAS records) that resolves it on their side and returns an A record.
  • It can chain queries. A CNAME pointing to another CNAME in another zone can add latency.

How to diagnose

dig blog.miempresa.com dig +trace blog.miempresa.com # the full path, step by step dig @8.8.8.8 blog.miempresa.com # what another server responds

The second one is the most educational: it shows the entire path from the root and makes the whole hierarchy visible.

And a clarification that saves confusion: if you see a correct response with dig but your browser keeps going to the old place, the problem is cache (system, browser, or your router), not DNS.

In ArduMaker, when you register a domain in your Company, its DNS zone is created and it gives you the nameservers to which you must point it from your registrar. From there, the records (A, AAAA, CNAME, MX, TXT…) are managed in the panel, and when publishing a name on a VPS, a CNAME is created towards the VPS name.

The domain and the server are two distinct resources

You can buy a domain and host your application on an ArduMaker VPS. The registrar controls who owns the name; DNS records indicate which addresses a browser should connect to; the server responds to requests.

If you change the VPS, you usually have to update the appropriate records and check that HTTPS works at the destination. Keep access to the registrar to correct an error and do not expect modifying DNS to fix a downed application.

Related: Who decides that a domain is yours · What is Nginx.

Frequently asked questions

Why does a DNS change take time to appear? Because responses remain cached during the record's TTL. There is no "propagation": you wait for the copies to expire. Lowering the TTL to 300 seconds one day before a migration makes the change appear within minutes.

Can I put a CNAME at the root of the domain? No according to the standard, because at the root SOA and NS coexist. Some providers emulate it with "CNAME flattening" or ALIAS records.

How do I see the full path of a query? With dig +trace name, which queries from the root and shows each delegation level.

  • dominios
  • DNS
  • Internet
  • fundamentos
  • web

Keep reading

All articles · VPS plans