none
OLD DNS records are not getting deleted RRS feed

  • Question

  • I am running with Windows 2012 R2 server with DNS services enabled. DNS scavenging is working fine as i am getting event 2501 with scavenged records detail. But the old records still exist there. Let me know how to clean those records and update the timestamp for active old records.

    Kuldeep Singh

    Thursday, March 16, 2017 12:27 PM

All replies

  • Hi Kuldeep Singh Mehra,

    >But the old records still exist there. Let me know how to clean those records and update the timestamp for active old records.

    Do you have a lot of old records that are not removed with DNS scavenging and aging enabled? What is the timestamp of these old records? And what is the scavenging and aging settings, refresh interval, no-refresh interval, scavenge period?

    Besides, it's recommended to use DHCP server to register DNS records for clients, so that when clients obtain a new IP address, the old record will be removed before DHCP register new records for clients. 

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 17, 2017 7:21 AM
    Moderator
  • Yes i have lot of old DNS records and they are having timestamp for year 2014. 

    refresh = 7 days

    non-refresh= 7 days

    Scavenging period= 7days


    Kuldeep Singh

    Friday, March 17, 2017 8:44 AM
  • Hi Kuldeep Singh Mehra,

    Please check the following things:

    1. Check if you enable DNS scavenging and aging both on the DNS server and DNS zone;

    2. Please enable "Advanced view", double click the old records, verify if "Delete this record when it becomes stale" is checked:

    3. Check if the Date and Time setting is correct on the DNS server.

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, March 20, 2017 6:06 AM
    Moderator
  • Hi,

    Everything is setup as per your above points. Date and Time is fine on DNS servers.


    Kuldeep Singh

    Monday, March 20, 2017 1:27 PM
  • Hi Kuldeep Singh Mehra,

    1. Please manually click "Scavenge stale Resource Records", check if it could help:

    2. At the same time, you may use Process Monitor to check the detailed scavenge progress;

    3. If it still not work, as a workaround, you may delete these records manually, order the records by Timestamp, then select all old records, right click "Delete"; Check if all things work well after then.

    4. If you want to troubleshoot the issue deeply, another though is to use powershell command to get the affected records' attributes, check if there is an attribute like Isaged, check the state of the record, check if the issue exits in "Age" progress or "Scavenge" progress. With the Progress Monitor tool, we may check the progress deeply.

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Thursday, March 23, 2017 9:49 AM
    Moderator
  • Thanks for info Anne.

    GUI is not helpful. Can you share powershell commands to check stale records having old timestamp and method to delete them? Once deleted how to register them again in DNS.


    Kuldeep Singh

    Thursday, March 23, 2017 10:45 AM
  • Hi Kuldeep Singh Mehra,

    >Once deleted how to register them again in DNS.

    You may delete one record for test. After deletion, run ipconfig /registerdns on client side, check if the new record will be registered.

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, March 28, 2017 8:33 AM
    Moderator