Pcornel
Windows · DNS Server

Aging & Scavenging

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

Back to the Topic

Answer

DNS aging timestamps eligible records and scavenging removes records considered stale after configured no-refresh/refresh timing and server/zone scavenging conditions are met.

Remember

  • Aging/scavenging is disabled by default and must be deliberately configured.
  • Server and zone settings both matter.
  • Manually created records normally have timestamp 0 and are not scavenged unless changed to participate.
  • Aggressive timing can delete valid records and create outages.

First checks

  • Get-DnsServerZone — zones on the server
  • Get-DnsServerResourceRecord -ZoneName <zone> -Name <name> — records
  • Resolve-DnsName <name> -Server <dns> — query the server
  • Get-DnsServerForwarder — forwarders
  • dcdiag /test:dns /v — DC DNS health

Verify in this order

records timestamped → aging intervals → scavenging removes stale

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

DNS Server → Aging & Scavenging reference map

BoundaryMeaningEvidence limit
TimestampRecord participates/last refresh indicatorZero timestamp usually means no automatic aging
IntervalsEligibility windowNot deletion event
Scavenge runServer evaluates stale recordsNot proof clients have fresh cache
DeletionRR removed from zoneCan be harmful if policy was wrong

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

Confirmation

Confirm action

Continue?