We may find ourselves on our domain server with old DNS records associated with IP addresses that however are dated or no longer reflect the current reality. We try to understand how to eliminate them automatically without going crazy.
To perform scavenging it is advisable to know that it must be enabled in three sections otherwise it will not work properly.
Scavenging the settings on a resource record
The first Scavening is to be enabled on the DNS record itself. So check that it is by right clicking on the record and PROPERTY and check that there is a check mark on DELETE THIS RECORD WHEN IT BECOME STALE.
Scavenging settings in the area
The second scavenging to be set is selected under PROPERTY of the area,
within the GENERAL and AGING tab.
Here you can set update intervals and do not update records. To ensure that a record is deleted, both must expire. The non-update interval is a time interval during which a resource record can not be updated. If a client changes the IP of a host record, this is considered an “update” and is exempt from the non-upgrade interval. The purpose of a non-upgrade interval is simply to reduce replication traffic. A change to a record indicates a change that needs to be replicated.
Once the (Record Timestamp) + (No-refresh interval) has elapsed, Refresh occurs. The update interval is the time when updates to the timestamp are allowed. The client can enter and update the timestamp. This timestamp will be replicated and the No-refresh interval will start again.
Scavenging of settings on the server
Under PROPERTIES of our domain server we have the Advanced tab under which the ENABLE AUTOMATIC SCAVENGING OF STALE RECORD can be enabled by setting the scavening period
Books to understand how Windows servers work: