What is a DNS zone file?
What is inside a zone file
A zone file starts with a Start of Authority record, often shortened to SOA, which holds administrative details like the primary name server and timing values. After that come the records that answer lookups, such as an A record for an IP address or an MX record for mail servers.
Each line usually has a name, a time-to-live value, a record type, and the data. Understanding this structure makes it easier to read DNS panels, troubleshoot problems, and compare settings with what your host recommends.
- SOA holds the zone's core settings
- A and AAAA point names to addresses
- MX points mail to servers
- TXT stores verification and policy data
Working with DNS panels
You rarely need to write a zone file by hand. Your DNS provider shows the same information in a table, and changes made there update the zone. Copy values carefully, since a single missing dot or extra space can break a record.
After changing records, check the result with a lookup tool such as dig or an online DNS checker. Changes can take time to show up, so verify before assuming a mistake.
Common mistakes
- Editing a record without noting the old value for rollback.
- Pasting a full zone file into a panel that expects single records.
