Skip to content
Caleb SmithCyberSecurityWithSmitti
LEARN WITH SMITTI

DNS Explained

CYBERSECURITYWITHSMITTI · DNS FIELD GUIDE

DNS, explained visually.

Understand the records. Follow the resolution path. Interpret the evidence.

Start with the everyday records, then explore service discovery, DNSSEC and the complete assigned type-code reference. All examples are synthetic; angle-bracket fields are explanatory placeholders, not deployable zone data.

Open the DNS lookup tool →

Record types

01Addressing

A

Name → IPv4

Maps a hostname to an IPv4 address.

Example and interpretation
www.example.test. 300 IN A 192.0.2.10

An address is infrastructure evidence, not proof of ownership or safety.

02Addressing

AAAA

Name → IPv6

Maps a hostname to an IPv6 address.

Example and interpretation
www.example.test. 300 IN AAAA 2001:db8::10

Review IPv6 as well as IPv4; they can lead to different infrastructure.

03Addressing

CNAME

Alias → canonical name

Makes one DNS name an alias of another.

Example and interpretation
portal.example.test. IN CNAME www.example.test.

An ordinary CNAME cannot coexist with other data at the same name, apart from DNSSEC exceptions. Provider ALIAS/flattening is different.

04Email

MX

Mail → receiving server

Routes email to a mail exchanger. Lower preference numbers are tried first.

Example and interpretation
example.test. IN MX 10 mail.example.test.

The target is a hostname. Null MX “0 .” explicitly accepts no mail. Absence of MX alone is not conclusive: SMTP has address-record fallback.

05Email

TXT

Name → text assertions

Stores text used by mechanisms including SPF, DKIM and DMARC.

Example and interpretation
example.test. IN TXT "v=spf1 -all"

This synthetic SPF policy authorizes no senders. SPF, DKIM and DMARC are not separate current record types. Validate each mechanism at its correct owner name.

06Infrastructure

NS

Zone → name servers

Identifies the authoritative servers for a zone or delegation.

Example and interpretation
example.test. IN NS ns1.example.test.

Parent delegation and child NS data can differ. In-bailiwick servers may require glue addresses.

07Infrastructure

SOA

Zone → administrative metadata

Includes the primary server, responsible mailbox, serial and refresh/retry/expiry timers.

Example and interpretation
example.test. IN SOA ns1.example.test. hostmaster.example.test. (2026112301 3600 600 1209600 300)

Serial changes support secondary synchronization; the final field participates in negative caching, not every positive record TTL.

08Addressing

PTR

Reverse address → name

Maps a reverse-DNS name to a hostname.

Example and interpretation
10.2.0.192.in-addr.arpa. IN PTR host.example.test.

IPv6 uses ip6.arpa. Reverse names are controlled by address-space delegation and do not establish identity.

09Infrastructure

SRV

Service → host and port

Advertises a service using priority, weight, port and target.

Example and interpretation
_ldap._tcp.example.test. IN SRV 10 20 389 dc.example.test.

Lower priority wins; weight distributes selection within equal priority. Common in Active Directory service discovery.

10Security

CAA

Domain → permitted certificate issuers

Expresses certificate issuance policy.

Example and interpretation
example.test. IN CAA 0 issue "letsencrypt.org"

CAA influences issuance checks; it does not revoke existing certificates or prove a site is safe.

11Infrastructure

SVCB

Service → connection parameters

Publishes service bindings and endpoint parameters.

Example and interpretation
_8443._foo.example.test. IN SVCB 1 svc.example.test. alpn="h2"

AliasMode uses priority 0; ServiceMode uses a positive priority. Client support and service mappings matter.

12Infrastructure

HTTPS

HTTPS → service binding

Uses SVCB-style parameters for HTTP services.

Example and interpretation
example.test. IN HTTPS 1 . alpn="h2"

Does not replace TLS certificate validation, enable HTTPS by itself or guarantee security.

13Security

DS

Parent → child key digest

Links a parent zone to a child DNSSEC key.

Example and interpretation
example.test. IN DS 12345 13 2 <digest>

A mismatched DS can cause validating resolvers to return SERVFAIL.

14Security

DNSKEY

Zone → public signing keys

Publishes DNSSEC public keys.

Example and interpretation
example.test. IN DNSKEY 257 3 13 <public-key>

A key without a validated chain of trust is not sufficient.

15Security

RRSIG

Record set → signature

Carries a DNSSEC signature over a record set.

Example and interpretation
example.test. IN RRSIG A 13 2 300 <signature-fields>

Signatures expire; validity also depends on time and the chain of trust.

16Security

NSEC / NSEC3

Signed proof → absence

Supports authenticated denial of existence in DNSSEC.

Example and interpretation
<owner> IN NSEC <next-name> A RRSIG NSEC

NSEC3 uses hashed owner names. DNSSEC authenticates data; it does not encrypt queries.

17Security

TLSA

Service → certificate association

Associates a TLS service with certificate or public-key data.

Example and interpretation
_443._tcp.example.test. IN TLSA 3 1 1 <digest>

DANE trust requires validated DNSSEC and supporting clients.

18Security

SSHFP

Host → SSH key fingerprint

Publishes SSH public-key fingerprints.

Example and interpretation
host.example.test. IN SSHFP 4 2 <digest>

Use validated DNSSEC and a client configured to verify SSHFP; unvalidated DNS is not a safe trust anchor.

19Advanced

NAPTR

Name → service rewrite

Provides ordered rewrite rules used in service discovery, including SIP and ENUM.

Example and interpretation
example.test. IN NAPTR 10 10 "s" "SIP+D2U" "" _sip._udp.example.test.

Order, preference, flags and service fields control interpretation.

20Advanced

DNAME

Subtree → alternate subtree

Aliases descendants of a name into another DNS subtree.

Example and interpretation
old.example.test. IN DNAME new.example.test.

Unlike CNAME, it redirects descendants, not the owner name itself.

21Advanced

URI

Service → URI

Publishes a URI with priority and weight.

Example and interpretation
_service.example.test. IN URI 10 1 "https://example.test/"

Client support determines whether it is used.

22Advanced

LOC

Name → geographic data

Stores geographic coordinates, altitude and precision.

Example and interpretation
example.test. IN LOC 33 55 0 S 18 25 0 E 10m

Operator-supplied location is not reliable geolocation evidence.

23Advanced

CERT

Name → certificate data

Stores certificate-related data in DNS.

Example and interpretation
example.test. IN CERT <type> <key-tag> <algorithm> <certificate>

Interpret certificate type and trust separately; publication alone is not validation.

DNS concepts: beyond record types

CONCEPT · NOT A RECORD TYPE

TTL

How long may this answer be cached?

A per-record value in seconds, not a record type. Reducing it now does not shorten the lifetime of answers already cached with the old TTL.

CONCEPT · NOT A RECORD TYPE

Recursive resolver

Asks on your behalf

Finds answers, follows referrals and caches results. Your browser may use a different resolver from your operating system.

CONCEPT · NOT A RECORD TYPE

Root servers

Where should a resolver go next?

The root refers resolvers toward top-level-domain servers. There are 13 named root-server identities backed by many physical anycast instances.

CONCEPT · NOT A RECORD TYPE

Authoritative server

Holds zone answers

Serves data for the zones it hosts. Authoritative answers and recursive cached answers have different roles.

CONCEPT · NOT A RECORD TYPE

DNS cache

Reuse an earlier answer

Positive and negative answers can be cached. Local, browser and recursive caches can temporarily disagree.

CONCEPT · NOT A RECORD TYPE

Propagation

Caches and delegations converge

DNS is not a single global push. TTLs, negative caches, delegation updates and resolver behavior determine when users observe a change.

CONCEPT · NOT A RECORD TYPE

DNSSEC

Authenticate DNS data

Signatures and a chain of trust provide origin authentication and integrity, not encryption or a guarantee that a domain is benign.

CONCEPT · NOT A RECORD TYPE

DoH / DoT

Encrypt the resolver connection

HTTPS or TLS protects transport to the resolver. The resolver still sees the queries; encrypted transport alone does not validate DNS data.

CONCEPT · NOT A RECORD TYPE

NXDOMAIN / NODATA

Name absent or type absent?

NXDOMAIN says the name does not exist. NOERROR with no requested answer may mean NODATA; inspect referrals and response context. SERVFAIL is a failure, not proof of absence.

CONCEPT · NOT A RECORD TYPE

DNS hijacking

Answers or settings redirected

Unauthorized changes to registrar, nameserver, router or resolver settings can redirect users. Verify delegation, change history and independent evidence.

CONCEPT · NOT A RECORD TYPE

Cache poisoning

False data enters a cache

A resolver may cache forged or incorrect answers. Compare authoritative evidence and validating resolvers; a mismatch alone does not prove an attack.

CONCEPT · NOT A RECORD TYPE

AXFR / IXFR / ANY / OPT

Queries and protocol metadata

AXFR and IXFR request zone transfers. ANY does not reliably list every record. OPT is an EDNS pseudo-record, not an ordinary zone record.

Full assigned type-code reference

IANA snapshot retrieved 23 November 2026. Includes historical, experimental and protocol/query entries; assignment does not imply current recommended use or support in this website’s lookup tool. Unassigned and reserved ranges are excluded. This bundled snapshot does not update automatically.

Browse 102 registry entries
DNS RR TYPE assignments
MnemonicCode
A1
NS2
MD3
MF4
CNAME5
SOA6
MB7
MG8
MR9
NULL10
WKS11
PTR12
HINFO13
MINFO14
MX15
TXT16
RP17
AFSDB18
X2519
ISDN20
RT21
NSAP22
NSAP-PTR23
SIG24
KEY25
PX26
GPOS27
AAAA28
LOC29
NXT30
EID31
NIMLOC32
SRV33
ATMA34
NAPTR35
KX36
CERT37
A638
DNAME39
SINK40
OPT41
APL42
DS43
SSHFP44
IPSECKEY45
RRSIG46
NSEC47
DNSKEY48
DHCID49
NSEC350
NSEC3PARAM51
TLSA52
SMIMEA53
DELEGPARAM54
HIP55
NINFO56
RKEY57
TALINK58
CDS59
CDNSKEY60
OPENPGPKEY61
CSYNC62
ZONEMD63
SVCB64
HTTPS65
DSYNC66
HHIT67
BRID68
UNECE69
ISO70
SPF99
UINFO100
UID101
GID102
UNSPEC103
NID104
L32105
L64106
LP107
EUI48108
EUI64109
NXNAME128
TKEY249
TSIG250
IXFR251
AXFR252
MAILB253
MAILA254
*255
URI256
CAA257
AVC258
DOA259
AMTRELAY260
RESINFO261
WALLET262
CLA263
IPN264
TA32768
DLV32769
DELEG61440
Private use65280-65534

Legacy examples include MD/MF and obsolete SPF type 99. Modern SPF uses TXT. ALIAS/ANAME and provider flattening are not ordinary IANA-assigned RR types.

Check your understanding

Think through each question, then reveal the explanation. This is practice, not a graded exam.

Does a domain without MX definitely reject mail?

No. SMTP may fall back to address records. Null MX explicitly declares that the domain does not accept mail.

Is TTL a DNS record type?

No. It is a cache lifetime in seconds associated with records. Previously cached answers retain their original lifetime.

Does DNSSEC encrypt DNS requests?

No. It authenticates DNS data. DoH and DoT encrypt transport to a resolver.

Does ANY return every record in a zone?

No. Servers may give minimal responses. Query the specific types you need; zone transfer is a separate operation.

Is a changed IP address proof of hijacking?

No. CDNs, failover and legitimate changes can cause differences. Corroborate with authoritative data, delegation and change history.