DNS Zones & Records
Introduction
The Domain Name System (DNS) is the backbone of the World Wide Web (WWW) because it translates human readable domain names into their corresponding IP addresses. For successful translation, DNS zone files and records must supply detailed information.
DNS Zones
Management of the DNS is divided into many different zones. The main reason for doing so is because the entire DNS is huge and complex. No single person or entity can possibly manage the DNS in its entirety. Therefore, the entire DNS is divided into many different zones at different levels with different people and organizations responsible for managing their respective zones.
The people and organizations responsible for managing each zone ensure that the information they are responsible for is updated and accurate so that DNS queries can be successfully resolved. This information is stored in files called DNS zone files.
DNS is managed using zones. The root of the DNS system is called the DNS root zone, which is overseen by the Internet Corporation for Assigned Names and Numbers (ICANN). The DNS root zone contains the correct information to direct DNS queries to the top-level domain (TLD) server that is separately managed in another DNS zone.
The TLD zone contains the correct information to direct DNS queries to the DNS name server of the specific domain name (e.g. bunny.net), which again is separately managed in another DNS zone. If subdomains exist (e.g. blog.bunny.net), the subdomain can also be managed as a separate DNS zone.
DNS Zone files and records
The management of DNS zones is achieved through zone files. The zone files contain necessary information about the domain so that a successful DNS lookup can be performed. This information is known as resource records or simple DNS records.
Each DNS zone file contains a Start of Authority (SOA) record containing important information, such as the administrative email address, the date of the last update of the domain, and time-to-live (TTL) information, which refers to how long the DNS records should be cached.
Other types of common DNS records include:
- A record (holds the IPv4 address of the domain)
- AAAA record (holds the IPv6 address of the domain)
- CNAME record (forwarding domains or subdomains; does not contain any IP information)
- MX record (holds information the email server to handle mail delivery)
- NS record (holds information about name servers)
- PTR record (holds the domain name for reverse look-ups)
- SRV record (holds port information for specific services)
- TXT record (holds any information or notes provided by the admin)
For example, an A record could look something like this:
Type | Name | Value | TTL (seconds) |
---|---|---|---|
A | example.com | 192.0.2.62 | 3600 |
Every line in a DNS zone file contains the information for a single record. Each record typically contains at least the following information:
- Record Name
- Record Value
- Record TTL