Skip to content

DNS Evidence and Name Resolution

DNS records document questions, answers and resolver behavior, with limits on linking a name lookup to a later connection.

By Reviewed by Jeevesh Kumar

Last updated:

Domain Name System (DNS) evidence describes questions about names and the replies visible to a resolver, endpoint or network sensor. An address reply gives the investigator a candidate destination to compare with connection records. Establishing whether an application used that answer requires evidence of a subsequent connection.

Suppose an internal resolver lists a workstation address alongside a domain queried during an incident window. The record may support a name lookup attributed to that address within the resolver’s view. To learn whether a browser, background service or another application made the lookup, look for endpoint evidence and check whether a forwarding layer sits between the workstation and the resolver.

Key terms

Recursive resolver
A service that answers client questions from cache or by consulting other DNS servers. Its client and upstream records expose different steps.
Resource record
A typed DNS item such as an A or AAAA address record, an alias or a service advertisement. Its type governs how to interpret the value.
Response code
The DNS outcome field. Read it with the question type and response sections to distinguish different classes of result.
Time to live (TTL)
The advertised caching lifetime of a record in seconds. A later view can carry a shorter remaining lifetime.
Query name (QNAME)
The name in a DNS message’s question. An upstream minimised QNAME can contain fewer labels than the client question.
Authenticated Data (AD)
A flag conveying the responder’s assertion of authenticated data. Interpret it in the context of the resolver and transport.
More key terms (3)
Extended DNS Error (EDE)
Optional diagnostic detail that can refine a DNS outcome such as SERVFAIL.
EDNS Client Subnet (ECS)
An option for carrying a network prefix relevant to an answer and indicating the reply’s scope. It supports prefix-level interpretation.
DNS over HTTPS (DoH)
DNS carried in an HTTPS exchange. A usable record can expose both the HTTP outcome and the DNS outcome.

Read the Question and Reply Together

Start with the queried name, the question type, the observer and both endpoint addresses. A and AAAA queries ask for different address families. A CNAME record can supply an alias target, and a reply can include multiple addresses or a chain of names. Preserve the original question and each name or address returned. Keep the source order when the log preserves it.

A packet capture offers a transaction identifier but the identifier can recur. Match it within the observed address and port pair, transport protocol, question and time window. Where a sensor groups more than one DNS transaction into one transport flow, use the flow key for the first join and the question type or transaction key to identify the individual lookup.

For a saved trace, keep the packet or row number that anchors the request and response. Check whether the DNS reply is marked truncated and whether a corresponding retry appears over a different transport. The initial reply may supply only part of the evidence. Where only a normalized log is available, compare its fields with the analyzer documentation to see whether it retained the truncation flag and the same sections of the reply.

Interpret Empty and Negative Replies

Read the response code with the answer, authority and additional sections. An NXDOMAIN reply reports that the queried name does not exist in that DNS view. A NOERROR reply can still have an empty answer section. That can mean there is no record of the requested type or that the server is referring the client elsewhere. The rest of the reply helps distinguish those possibilities. DNS negative caching, RFC 2308

Read the response code alongside all response sections. An empty answer section alone does not identify a name error.

An absent response in the collected records describes a gap in observation. A timeout, dropped packets, capture location or a logging policy can yield the same appearance. Keep it distinct from a decoded response carrying a DNS error. Review retry timing and capture statistics before interpreting a query-only entry as a resolver failure.

A resolver may answer a repeated question from a cached negative result. That means several applications can experience the same lookup outcome while the upstream log shows only one exchange. In a timeline, record separately the negative answers seen at the client boundary and the requests visible upstream. A response left over in the cache from before the collection window can also explain why a client gets a prompt error without a matching upstream query.

Compare Resolver and Network Views

In a forwarding chain, the client-side record may identify the workstation address while an upstream server sees only the forwarder. A sensor monitoring the upstream link can miss questions answered by the forwarder’s own cache. Endpoint caches can serve the same purpose before a request ever leaves the machine. Record whose cache or logging boundary governs each observation.

The upstream source can miss questions answered locally by the forwarder. Record exactly where each question was observed.

DNS over HTTPS and DNS over TLS protect queries in transit. A passive sensor can sometimes identify a connection to the resolver through surrounding metadata. Recovering a particular question generally requires an authorized source that records it in usable form, such as the configured resolver’s logs or endpoint telemetry. A low query count in one export may simply reflect limited resolver coverage.

Two resolvers can legitimately return different answers for the same name. Internal and public views, cached data and address selection can account for the difference. When comparing logs, preserve the responder identity and time with each answer. A present-day lookup from the examiner’s network is useful for comparison only if the report labels it as a later test and preserves the earlier observed result on its own terms.

Read Resolver Validation and Error Details

Domain Name System Security Extensions (DNSSEC) validate the origin and integrity of DNS data. The Authenticated Data (AD) flag in a response indicates that the responder considers the relevant data authentic. For forensic interpretation, identify the resolver and document the trust and transport context before relying on that assertion. DNSSEC protocol modifications

In a hypothetical practice trace, frame 40 asks a managed resolver for the A record for archive.example, and frame 41 returns SERVFAIL with Extended DNS Error (EDE) code 6. Record both fields. SERVFAIL describes the DNS outcome. Code 6, DNSSEC Bogus, adds that the resolver reported a validation failure. Extended DNS Errors

Suppose an authorized resolver diagnostic for that transaction reports an expired signature. Match the diagnostic to the question type, time and resolver instance. Record the signature issue as the resolver’s stated reason. Independent verification would require the relevant historical DNS data, trust configuration and evaluation time. A current successful lookup would describe a later state.

Extended DNS Error 6 records a Domain Name System Security Extensions (DNSSEC) validation failure. The matched diagnostic adds the resolver’s stated reason.

If the capture contained only SERVFAIL, the reason would remain open. If another reply succeeded with AD unset, that flag alone would leave validation status unresolved. Keep the response code, the resolver’s diagnostic reason and any independently reproduced validation result in separate columns so the reader can see where each conclusion comes from.

Read Service Hints in HTTPS Records

An HTTPS resource record can advertise how to reach a service. In ServiceMode, a positive service priority accompanies a target name and any service parameters. The alpn parameter advertises application protocol identifiers. The ipv4hint and ipv6hint parameters supply candidate addresses. Read those values under the original HTTPS question rather than treating them as A or AAAA answers. HTTPS and SVCB records

In a hypothetical practice trace, a reply for maps.example advertises priority 1, TargetName edge.maps.example, application protocol h3 and IPv4 hint 192.0.2.20. A later DNS reply gives an A record for edge.maps.example of 192.0.2.21. Enter both addresses in the exhibit and label one as a hint and the other as a returned address record.

Suppose the same client sends a datagram to 192.0.2.20 between those replies. Identify its packet number and check the decoded protocol. The destination is consistent with the advertised hint. A compliant client may use a hint before it receives an address record, although the selected address can depend on local cache and client behavior. Address hint semantics

The DNS advertisement gives the examiner a candidate explanation for a destination that differs from the later A answer. A contemporaneous client diagnostic could confirm where the client obtained that address. A negotiated protocol or specific web request still needs separate evidence from a participating endpoint or service.

Recover the Original Question from the Right Boundary

A recursive resolver using query name minimisation can send an upstream server a shorter question name and a different question type as it discovers the zone that can answer the client. A parent server may know which servers handle a child zone while knowing nothing about a particular host inside it. Record the question exactly as observed and label whether the record came from the resolver’s client-facing or upstream side. DNS query name minimisation, RFC 9156

In a hypothetical resolver export, row 186 shows a client asking for the AAAA record for images.museum.example. A parent-side A question a few milliseconds later asks about museum.example and receives a referral. A later packet to a server for that child zone contains the full AAAA question. Put the observed question names, types and responder roles in separate exhibit columns. This sequence is consistent with minimised resolution of the client question.

This example is consistent with query name minimisation. Keep the question name, type and observation point with each record.

Check the relationship against resolver activity records if several clients asked about related names at the same time. The parent-side question and referral can fit multiple client requests. One upstream step can also serve more than one client if answers are cached or concurrent lookups are combined. Keep the parent question as its own observation even if an internal resolver transaction key supports one proposed chain.

If the only retained record is from the parent side, describe its exact question and scope. The more specific host from the practice exhibit would be invisible there. A registrar, an authoritative server and a recursive resolver maintain different records, so identify which source could actually supply the missing question.

Interpret Subnet Scope in Resolver Records

An Extension Mechanisms for DNS Client Subnet option, commonly abbreviated ECS, can carry a network prefix relevant to a resolver’s request. Examine the address family, source prefix length, scope prefix length and address bits as separate fields. In a reply, the scope describes the network range for which the server says the response applies. The packet’s source address identifies the observed resolver-side peer. EDNS Client Subnet option format, RFC 7871

In a hypothetical upstream trace, a query carries IPv4 ECS information for 198.51.100.0 with source prefix length 24. The reply echoes the source prefix length and carries scope length 24 alongside an address answer for exhibits.example. Write the supplied prefix as 198.51.100.0/24. The reply describes applicability to that prefix. It supplies no individual endpoint among its addresses.

A second answer for the same question might carry a different scope or arrive from another server. Compare the zone view, answer time and responder before deciding whether the network scope explains the result. Absence of ECS in another row only describes that recorded message. Check whether the export retains EDNS options, since a collection pipeline can omit them.

When reviewing a scoped answer beside a managed client inventory, keep the endpoint address candidate and ECS scope on separate rows. Confirm the client through an authorized client-facing resolver or endpoint record. Redact the subnet in any shared exhibit when recording the address family and prefix length is sufficient to explain the finding.

Distinguish HTTPS Status from DNS Status

A DNS over HTTPS (DoH) exchange can report a valid DNS response in an HTTP success response even when the DNS outcome is negative. Read the HTTP status, response media type and inner DNS response code as distinct fields. The standard uses HTTP errors for failures in the HTTP exchange and successful HTTP codes to carry valid DNS responses, including DNS error outcomes. DNS over HTTPS response handling, RFC 8484

Consider a hypothetical authorized DoH service export with two rows. Request d17 has HTTP 200, the application/dns-message media type and a parsed DNS status of NXDOMAIN for posters.example. Request d18 has HTTP 503 and no decoded DNS message. The first row records an HTTP exchange that returned a negative DNS answer. The second records an HTTP-layer failure, with DNS outcome unavailable in that row.

Read the HTTP status and inner DNS response code as separate fields.

Review a concurrent request by checking the HTTP transaction key in the endpoint and resolver records. RFC 8484 recommends that clients use DNS message ID zero for the application/dns-message format, so several DNS messages can share that value. Keep the method, request reference and parsed question with the response. A flow record for the encrypted connection cannot resolve which of the two transactions it carried.

To practice, write two findings from the sample and list a record that could resolve d18. A resolver diagnostic might show whether processing occurred before the HTTP failure. A client retry could produce a later valid DNS response, which would be a separate exchange with its own statuses and time.

Casework Example

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
Which pair best distinguishes the two sample DNS transactions?

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.