You want to scavenge old resource records. DNS scavenging is the process whereby resource records are automatically removed if they are not updated after a period of time. Typically, this applies to only resource records that were added via DDNS, but you can also scavenge manually added, also referred to as static, records. DNS scavenging is a recommended practice so that your DNS zones are automatically kept clean of stale resource records.
The following solutions will show how to enable automatic scavenging on all AD-integrated zones.
Open the DNS Management snap-in.
If an entry for the DNS server you want to connect to does not exist, right-click on DNS in the left pane and select Connect to DNS Server. Select This computer or The following computer, enter the server you want to connect to (if applicable), and click OK.
Click on the server, right-click on it, and select Set Aging/Scavenging for all zones.
Check the box beside Scavenge stale resource records.
Configure the No-Refresh and Refresh intervals as necessary and click OK.
Check the box beside Apply these settings to the existing Active Directory-integrated zones and click OK.
Right-click on the server again and select Properties.
Select the Advanced tab.
Check the box beside Enable automatic scavenging of stale resource records.
Configure the scavenging period as necessary.
> dnscmd <
DNSServerName> /config ...