How does a text file become the keeper’s facts?
05Expand short names, move a fact by changing its owner, and check a candidate file before installing it.
A zone file is preparation on disk; it is not the network message.
A file prepares records for one name keeper
$ORIGIN example.org.
@ 60 IN SOA ns hostmaster 1 3600 600 86400 60
@ 60 IN NS ns
ns 60 IN A 192.0.2.53
www 60 IN A 192.0.2.20
60 IN A 192.0.2.30The first records describe the zone and its name keeper. Follow the last two address lines.
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
Load the resulting records as authoritative zone data.
Key idea: The same text can name different owners when the origin or leading whitespace changes; check the expanded records before loading.
Terms
- zone file
- A text file a name keeper can load as records for one area of the name tree.
- origin
- The complete ending added to a relative name.
- relative name
- A name with its ending left for the current origin to supply.
- absolute name
- A complete name ending with a dot; no origin is appended.
- record owner
- The name a DNS fact belongs to.
- SOA
- A zone’s starting record: its revision and maintenance settings.
Rules & examples
The origin and leading whitespace decide which names own the facts.
These reference examples may differ from the selected experiment.
- Relative names use an origin; omitted owners can inherit from the previous record.
- The original master-file syntax is supplemented by later specifications; use current TTL directives correctly.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
A bounded six-line master-file fixture, not a general parser: $ORIGIN, one SOA, one apex NS, the in-zone ns A and two selected A entries. Explicit60/IN avoids historical omitted-TTL defaults ($TTL was added later). SOA target ns and responsible mailbox hostmaster expand relative to the origin; revision1, refresh3600, retry600, expiry86400, negative-cache minimum60. The zone being loaded equals the selected origin. Out-of-zone selected owners and invalid IPv4 data reject the whole candidate here, retaining previous data; no actual server is changed. Blank owner lines inherit the last stated owner. Absolute owner names do not borrow the origin. Includes, escaping, multiline text, delegation and real server configuration are outside this fixture.
Sources
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.