Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Reading a zone

Module 2: Nameservers and zones · Reading time: 8 minutes

Learning objective: After this lesson you can read and write a DNS record: name, TTL, class and type, and value, including the @ sign and the trailing dot.

Key concepts: zone file, @, relative and full name, trailing dot, SOA, serial number, NS record

The five parts of a record

In technical terms, a zone is often written as a zone file: a text file with one record per line. Even if your panel turns it into a nice form, the same five parts are there:

www.example.com.   3600   IN   A   192.0.2.10
│                   │      │    │   │
name                TTL    class type value
PartMeaning
NameWhich name the record applies to
TTLHow many seconds the answer may be remembered (lesson 6.1)
ClassAlways IN (internet). Panels usually leave this out
TypeThe kind of record: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA ...
ValueThe answer. For an MX and SRV this also includes numbers, such as the priority

A few examples:

example.com.        3600  IN  A      192.0.2.10
example.com.        3600  IN  MX     10 mail.example.com.
_dmarc.example.com. 3600  IN  TXT    "v=DMARC1; p=none"
shop.example.com.   3600  IN  CNAME  shops.example.net.

There can be several records with the same name and the same type. Two MX records for example.com or two A records for www is perfectly normal. Together they're called a record set.

The @ sign

The @ sign means in a zone: the name of the domain itself. In the zone for example.com,

@   3600  IN  A  192.0.2.10

is the same as

example.com.   3600  IN  A  192.0.2.10

Most panels use @, or leave the name field blank, for the bare domain. If a service asks you for a record "on your domain" or "at the root of your domain", it means @. Note: "root of your domain" is different from the root of the DNS from lesson 1.2.

Relative and full names

In lesson 1.2 you saw the trailing dot. In a zone it works like this:

  • If a name ends with a dot, it's full. mail.example.com. is exactly that name.
  • If a name doesn't end with a dot, it's relative. The name of the zone is appended to it. In the zone for example.com, mail therefore becomes mail.example.com. (with a dot).

This applies both to the name of a record and to a name in the value, such as with CNAME, MX, NS and SRV. For an IP address in an A or AAAA record it doesn't matter: you never add a dot after that.

Compare:

You enter (zone example.com)Becomes in reality
Name: shopshop.example.com.
Name: shop.example.com (without a dot)shop.example.com.example.com.
Name: shop.example.com.shop.example.com.
MX value: mail.example.netmail.example.net.example.com. (wrong)
MX value: mail.example.net.mail.example.net. (correct)

Panels handle this differently. Some always append your domain name to the name field and show that below the field. Some automatically add a dot after a value. Others just use what you type. There's one safe approach:

  1. In Name, enter only the first part (shop, www, _dmarc), or @ for the domain itself.
  2. For a value that is a name, enter the full name with a trailing dot, unless the panel clearly states that this isn't needed.
  3. After saving, check how the record appears in the list. If you see your own domain name doubled up in it, fix it.

The SOA record: the header of the zone

Every zone starts with exactly one SOA record (start of authority). It contains management data, such as:

example.com.  3600  IN  SOA  ns1.hosting.example. hostmaster.example.com. (
               2026110701 ; serial number
               14400      ; refresh
               3600       ; retry
               1209600    ; expire
               300 )      ; minimum (negative cache)
  • The first name is the primary nameserver.
  • The second is the administrator's email address, with a dot instead of @: hostmaster.example.com. means hostmaster@example.com.
  • The serial number goes up with every change. The other nameservers use this to see that something new has appeared and fetch the zone again. It's often a date with a sequence number, such as 2026110701.
  • The last value determines, among other things, how long an answer of "doesn't exist" may be remembered (lesson 6.2).

Your panel usually manages the SOA record itself. You'll almost never need to change it. It is useful to know: if the serial numbers differ between your nameservers, not every nameserver has the latest version.

NS records in the zone

The zone also contains NS records for the domain itself:

@   3600  IN  NS  ns1.hosting.example.
@   3600  IN  NS  ns2.hosting.example.

These should match the nameservers registered with the registry (lesson 2.1). Don't change them without also changing the nameservers at the registrar. An NS record for a subdomain (klant.example.com NS ...) delegates that subdomain to other nameservers. That's advanced work.

In practice: what it looks like in a panel

In DirectAdmin, open DNS Administration. You'll see a table with the columns Name, TTL, Type and Value: exactly the parts from this lesson, without the class. A name followed by a dot, such as example.com., is the domain itself. In My WebOké, on the DNS tab, you enter @ in the Name field for the domain itself, and you'll see the full name below the field. cPanel (Zone Editor), Plesk, Cloudflare and registrar panels work with the same fields; only the button names differ.

Summary

  • A record consists of name, TTL, class (IN), type and value.
  • @ means the domain itself.
  • A name with a trailing dot is full; without a dot, the zone name is appended.
  • In Name, enter only the first part, and check how the record looks after saving.
  • The SOA record is the header of the zone; the serial number rises with every change.

Quiz

1. What does @ mean in the zone for example.com?



2. In the zone for example.com, you create an MX record with value 10 mail.example.net, without a dot. Which mail server is it actually pointing to?



3. What's the purpose of the serial number in the SOA record?



4. Which part of a record do most panels leave out, because it's always the same?



Exercise

Exercise Z2.2: Reading an SOA. Look up the SOA record for sidn.nl (SIDN, the registry of .nl in the Netherlands) using an online tool or dig SOA sidn.nl. Fill in: (1) the primary nameserver, (2) the serial number.

Exercise Z2.2: Reading an SOA



We don't store what you enter or what we find live. Your browser remembers your answers and whether you've passed the exercise. If you're signed in, we only save that you got the exercise (almost) right in My courses; you can also delete that there.

Further reading

These articles describe the panels used by WebOké. With other providers it works in a similar way.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…