Use it to control stale dynamically registered records without blindly deleting active/static data.
Aging & Scavenging
DNS aging timestamps eligible records and scavenging removes records considered stale after configured no-refresh/refresh timing and server/zone scavenging conditions are met.
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).
records timestamped → aging intervals → scavenging removes stale
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
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.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
Get-DnsServerZone— zones on the serverGet-DnsServerResourceRecord -ZoneName <zone> -Name <name>— recordsResolve-DnsName <name> -Server <dns>— query the serverGet-DnsServerForwarder— forwardersdcdiag /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.
| Setting | Default | Meaning |
|---|---|---|
| No-refresh interval | 7 days | Timestamp not updated |
| Refresh interval | 7 days | Record may be refreshed |
| Scavenging period (server) | 7 days | How 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
DNS Server → Aging & Scavenging reference map
Fast lookup boundaries for DNS Server → Aging & Scavenging.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Timestamp | Record participates/last refresh indicator | Zero timestamp usually means no automatic aging |
| Intervals | Eligibility window | Not deletion event |
| Scavenge run | Server evaluates stale records | Not proof clients have fresh cache |
| Deletion | RR removed from zone | Can be harmful if policy was wrong |