Concepts / Names and DNS

Names and DNS

DNS records

Also called A record, AAAA record, CNAME, NS, MX, TTL, SRV, TXT, PTR, SOA, reverse zone

The typed entries of a zone: A for an address, CNAME for an alias, NS for delegation, and more.

The type says what kind of answer it is
The type says what kind of answer it is

A zone is a list of records, and each has a type: A and AAAA hold addresses, CNAME points a name at another name, MX says where mail goes, NS names the zone's servers, TXT holds free text. Each record has a TTL, the number of seconds a resolver may keep it.

A DNS record is one typed entry in a zone. A holds an IPv4 address, AAAA an IPv6 address, CNAME an alias, MX the mail server, NS the name servers, SRV a service's host and port, TXT free text, SOA the zone's serial and timers, and PTR, under in-addr.arpa, the name for an address. Each has a TTL: resolvers cache it that long, so changes arrive as old copies expire.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab