Dynamic updates refresh record timestamps and a scavenging pass removes records not refreshed in time #84
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
lantea-one/ninlil#84
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
AD clients refresh their records every day or so. Records of machines that are gone stay forever.
What changes
DynamicUpdateQueryResolver,DynamicUpdateProcessorandIZoneUpdateService:DynamicRefreshedUtc = now.ComputeDifffinds no change). It now sets the timestamp, unless the record is still inside the no-refresh interval.DnsZoneChangedEvent, because answers do not change.ManagedByFeatureset and records created through REST stay null.DnsScavengingService(BackgroundService) inNinlil.Dns.Server.Authoritative:ScavengingInterval.IZoneUpdateService. The serial bumps once per batch.DnsServer:ScavengingwithEnableandInterval. Add it toOptionsEnvironmentVariableRegistryandENVIRONMENT.md. The service runs by default; zones decide throughAgingEnabled, which is off unless set (or created by the AD template).ZoneModels.csgets the aging fields.RecordModelsexposesdynamicRefreshedUtcread-only, plusPOST /api/zones/{id}/scavenge(permissionzones:write). The REST API changes; regeneration is #86.Acceptance
TimeProvider: an update at t0 sets the timestamp; a repeat at t0 + 1 h (inside no-refresh) leaves it; a repeat at t0 + no-refresh + 1 h moves it.src/dotnet/tests/Ninlil.Dns.Server.Authoritative.Testspasses.src/dotnet/tests/Ninlil.Web.Testspasses for the endpoint and its permission.ENVIRONMENT.mdupdated.Source