Visual RFC.
ALL RFCs / RFC 1035
Read the RFC ↗
RFC 1035 / DNS MESSAGES AND FILES

How does a text file become the keeper’s facts?

05

Expand short names, move a fact by changing its owner, and check a candidate file before installing it.

RFC 1035 · § 5.1EXAMPLE
1 / 4 · Write the keeper’s facts in a text file

A zone file is preparation on disk; it is not the network message.

A file prepares records for one name keeper

Candidate file · zone example.org.
$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.30

The 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.

3 / 3
03
Load the resulting records as authoritative zone data.

Load the resulting records as authoritative zone data.

How does a text file become the keeper’s facts?Expand short names, move a fact by changing its owner, and check a candidate file before installing it.MASTER FILE$ORIGIN example.org.www 300 IN A 192.0.2.20load zonewww.example.org. A 192.0.2.20Authoritative data, not a resolver cache entryRelative names use origin; omitted owners can inherit

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.

Look up a term in the glossary ↗

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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 1035

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗