Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Aging & Scavenging

Direct 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.

When to use this

Use it to control stale dynamically registered records without blindly deleting active/static data.

First 30 seconds

1. Get-DnsServerScavenging and zone aging.

2. No-refresh + refresh intervals ≥ DHCP lease.

3. Enable on one server first.

4. Static records excluded.

5. Check stale record removal events (2501).

Operational verification

records timestamped → aging intervals → scavenging removes stale

Evidence · next step

Validate registration/lease ownership and client cache behavior before concluding cleanup is safe.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show the record was truly unused by every workload or that clients no longer cache it.

Next check: Validate registration/lease ownership and client cache behavior before concluding cleanup is safe.

Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse it to control stale dynamically registered records without blindly deleting active/static data.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

record timestamp → aging intervals → stale eligibility → server scavenging cycle → deletion → resolver/cache effect

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • 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.
Key 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
ReferenceImportant terms & boundaries2 sections · depth on demand

What the evidence shows

Old-looking record ≠ eligible stale record; scavenging enabled ≠ record will be deleted immediately.

Microsoft warns that incorrect scavenging configuration can delete records that should remain; treat it as a lifecycle mechanism, not cleanup magic.

and state what the evidence does not show.

In depth

Aging and scavenging remove stale dynamically registered records.

SettingDefaultMeaning
No-refresh interval7 daysTimestamp not updated
Refresh interval7 daysRecord may be refreshed
Scavenging period (server)7 daysHow often scavenging runs

A record becomes eligible for deletion after no-refresh + refresh (14 days) without refresh.

Set-DnsServerZoneAging corp.example.com -Aging $true -NoRefreshInterval 7.00:00:00 -RefreshInterval 7.00:00:00
Set-DnsServerScavenging -ScavengingState $true -ScavengingInterval 7.00:00:00 -ApplyOnAllZones
Start-DnsServerScavenging -Force

Enable scavenging on one or two servers only, and set refresh longer than DHCP lease time. Static records (no timestamp) are never scavenged.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in DNS Server → Aging & Scavenging. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/networking/dns/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
DNS scavengingDNS agingstale DNS recordsno-refresh interval
Embedded reference data

Quick lookup tables

DNS Server → Aging & Scavenging reference map

Fast lookup boundaries for DNS Server → Aging & Scavenging.

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
Confirmation

Confirm action

Continue?