Start with the five parts

A DNS record connects a name to a particular kind of information. In a zone file or a DNS lookup result, you may see a line like this: www.example.com. 3600 IN A 192.0.2.10. Reading from left to right, its fields are the owner name, time to live (TTL), class, type, and value. Here, the record says that www.example.com has an IPv4 address of 192.0.2.10.

The example address belongs to a range reserved for documentation; it is not an address to copy into your own setup. Records do not always appear in exactly this layout. A lookup tool may put the fields in columns, and a DNS provider may present them as separate form inputs. The same questions still help: Which name is this about? How long may an answer be cached? What kind of record is it? What information does it provide?

Owner name: the name the record belongs to

The owner name is the DNS name to which the record applies. In the example, www.example.com. is the owner. The final dot marks it as a complete domain name, ending at the DNS root. Many control panels leave that dot out for readability. It is part of DNS notation, not an extra character visitors need to type into a browser.

A zone editor may show a shorter owner such as www because it assumes the zone’s domain name, often called the origin. In a zone for example.com, www can therefore represent www.example.com. The symbol @ commonly means the zone’s origin itself. These conventions vary by interface, so check how your provider displays the resulting full name before saving. An owner name is also separate from a record’s value: a name can be the subject of a record, the destination named by it, or both in different records.

TTL and class: caching and namespace

The TTL tells DNS resolvers how long they may keep a cached answer before asking again. It is usually shown in seconds, so a TTL of 3600 represents one hour. A shorter TTL can help future changes become visible sooner to resolvers that follow it, but it does not erase answers already cached under an earlier TTL. It also does not guarantee that every user will see a change at the same moment. Some provider interfaces set the TTL automatically rather than asking you to enter it.

The class is usually IN, meaning the Internet class. For ordinary website and email DNS records, you will generally leave it as IN. You may not see a class field in a provider’s form because it is implied. When reading raw output, keeping it in mind prevents confusion: IN is neither part of the owner name nor the record type.

Type and value: what the record says

The type defines how to interpret the value. An A record’s value is an IPv4 address; an AAAA record’s value is an IPv6 address. A CNAME points a name to another domain name, rather than directly to an address. A TXT record carries text used for various purposes, including domain verification and email-related policies. You cannot tell whether a TXT record is appropriate just from its type; you need to read the text and understand the purpose of that particular record.

Some types give the value more structure. An MX record, for example, identifies a mail server and includes a preference number, as in example.com. 3600 IN MX 10 mail.example.com. Here the owner is example.com., the type is MX, and the value consists of preference 10 and mail server mail.example.com. A lower MX preference number is tried before a higher one. The mail server name is a destination, not the owner of this MX record.

Read a record in context

If a record looks wrong, first check whether the displayed owner is a full name or a name relative to the zone. Then check the type before interpreting the value: 192.0.2.10 makes sense as an A value, not as an MX mail server name. Finally, note the TTL when planning a change, especially if an older answer may still be cached.

One owner name can have multiple records, such as both an A and an AAAA record. A DNS response may also contain additional records beyond the one you asked about. Reading each line by its owner, class, type, and value helps you distinguish the requested answer from supporting information. With that habit, a DNS listing becomes a set of specific statements rather than an opaque block of text.

Back to category ↗