CyberSurfaceMap
EXTERNAL ATTACK SURFACE INTELLIGENCE
Learning Hub/DNS / NETWORKING

FIELD GUIDE / DNS

DNS Records Explained

DNS records are not all address records. Follow an IT analyst as she reads the records behind a fictional organization’s website, email, subdomains, and certificate policy.

Beginner·14 min read·Updated October 2026

The DNS zone behind a business

Northstar Retail is preparing a service inventory. The team knows it has a public website, an application API, corporate email, and several systems managed by external vendors. Its DNS zone contains clues about how these services are named and routed.

DNS records are typed pieces of data associated with names. Each type has a purpose, so an analyst first asks what question the record answers. The examples in this guide use documentation-only addresses such as 192.0.2.42 and 2001:db8::42; these are examples, not production endpoints.

A record’s presence is not a security finding by itself. A record must be interpreted in context and connected to a service, owner, and relevant evidence.

A and AAAA: address records

An A record associates a hostname with an IPv4 address. An AAAA record associates a hostname with an IPv6 address. For example, an illustrative record might look like www.northstar.example A 192.0.2.42. An IPv6 example could be www.northstar.example AAAA 2001:db8::42.

A hostname can have multiple address records, and an address can be shared by multiple hostnames or services. Cloud load balancers and content-delivery networks may deliberately return different addresses depending on the resolver’s location or the service’s current state.

Do not assume that an address is a single physical server or that every service at a shared IP belongs to the same organization. Validate ownership and context separately.

CNAME: one name points to another name

A CNAME record makes one DNS name an alias of another canonical name. This is common when a service is hosted by a platform or content-delivery provider. The target name can then resolve to address records or more aliases, depending on the provider’s configuration.

A CNAME does not directly contain an IP address. DNS follows the alias to find the relevant record information. DNS standards and provider rules also place restrictions on using a CNAME alongside other record types at the same owner name; zone-apex behavior can vary with provider-specific features.

During asset review, an unfamiliar CNAME target can identify a third-party dependency. It is a lead to validate, not permission to test the provider or proof of a dangling-record issue.

MX and TXT: email routing and policy

MX records identify mail exchangers for a domain and include preference values that help determine delivery order. The MX record points to a mail-server hostname, not directly to an IP address. That hostname is resolved separately.

TXT records carry text values used for several purposes. Email security commonly uses TXT records for SPF policy and for DKIM public-key records under selector names. DMARC policy is published as a TXT record at a name beginning with _dmarc. TXT records are also used for domain verification and other application-specific configurations.

Do not judge an email-security setup from a single TXT lookup. Check the correct owner name, the published value, how records interact, and the organization’s intended policy. A missing or malformed value should be confirmed with the domain owner and current configuration guidance.

NS and SOA: who serves the zone?

NS records identify the authoritative nameservers for a DNS zone or delegation. They help resolvers find the servers that publish the zone’s data. NS records can reveal which DNS provider or nameservers are associated with a domain, but they do not alone prove who owns every application hosted under it.

A SOA (Start of Authority) record holds important zone information, including a serial number and timing parameters used by DNS operations. The serial helps secondary authoritative servers determine whether they need an update from the primary source in traditional zone-transfer arrangements.

NS and SOA records are useful when diagnosing delegation problems, checking expected authoritative infrastructure, and documenting which DNS service is responsible for a zone.

CAA, PTR, and SRV: other useful records

CAA records express which certificate authorities are authorized by a domain’s DNS policy to issue certificates for names in scope, subject to the CAA processing rules. They are one part of certificate-issuance control, not a replacement for certificate monitoring or account security.

PTR records support reverse DNS lookups: they associate an address with a name when reverse-zone data has been configured. Reverse DNS is not guaranteed to exist or to match forward DNS, and a PTR name is not proof that the named organization owns an address.

SRV records publish service discovery information such as a service name, protocol, priority, weight, port, and target hostname. Applications use SRV only when their protocols and clients are designed to consult it.

Record types such as these are often valuable context for operations teams. Whether they matter to a security assessment depends on the service and the question being investigated.

How to read a record responsibly

When reviewing a DNS observation, capture the exact queried name, record type, returned value, TTL when available, resolver or authoritative source, and timestamp. Then compare it with the team’s known configuration and ask the service owner to confirm its role.

Take care with cached answers and shared hosting. A result can be stale, geographically different, or served by a vendor. DNS data is a snapshot of published information, not a complete service inventory and not evidence of exploitability on its own.

Continue with DNS Fundamentals and Name Resolution to understand how answers are found, or read DNS Caching, TTL, and Propagation to understand when answers may change.

KNOWLEDGE CHECK / DNS

Which record type associates a name with an IPv4 address?

Consider the role of the record or component described in this guide, then reveal the explanation.

Show answer

An A record is used for IPv4 addresses. AAAA records are used for IPv6 addresses.

CONTINUE LEARNING

Continue learning on CyberSurfaceMap

Use DNS data only within an authorized scope. Names and records are clues to validate, not proof that a service is vulnerable.

Featured on CodeHype