Pcornel
Networking · Network & Protocols › DNS Protocol Reference

DNS Resource Record Field Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=278

Back to the Topic

Answer

All DNS data is resource records: a name, a type, a class, a time to live and the data. The type decides what the data is — A and AAAA hold addresses, CNAME an alias, MX mail servers, NS name servers, PTR a name for an address, TXT free text, SRV a service location.

Remember

A name with a CNAME can have no other records — so no CNAME at the top of a zone. MX and NS must point to names with address records, not to aliases or IP addresses. A change becomes visible as caches expire: up to one full time to live.

First checks

  • dig <name> A / AAAA / MX / TXT — the records with their time to live.
  • dig <domain> MX +short — just the data.
  • dig -x <address> — reverse lookup.
  • dig <name> A @<authoritative server> +norecurse — the configured record and its full time to live.

Commands

dig

Verify in this order

record exists on the zone's servers with the right type and data → resolvers fetch it → cached copies expire within the time to live → clients receive the current record

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=278

Confirmation

Confirm action

Continue?