none
Delete Static Stale Records RRS feed

  • Question

  • I have AD Integrated DNS Environment. DNS records in zones are grow to huge numbers and there are huge quantity of static dns records. Need to identify stale/ inactive static dns records and delete them.

    I applied the PowerShell command to convert static to dynamic and assign time stamp, however it deleted all records after stale/scavenge period over.


    Rox_Star

    Monday, January 21, 2019 9:30 PM

Answers

  • Hi,

     

    We don't recommend you convert all the static records to dynamic records. You may lose the records that you never want to be scavenged.

     

    Normally static DNS records are used for devices which are configured with static IP addresses. Unlike dynamic records, static records will remain the same until you decide to update them manually. Devices that have created a static record will hardly attempt to send an update message either.

    When you convert them to dynamic records, they will then follow the normal scavenging process. As a result, the records will be deleted if you don't manually update them in time.

     

    You may run ipconfig /registerdns command to re-create the DNS entries.

     

    Regards,

    Zoe


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

    Tuesday, January 22, 2019 6:32 AM

All replies

  • I have AD Integrated DNS Environment. DNS records in zones are grow to huge numbers and there are huge quantity of static dns records. Need to identify stale/ inactive static dns records and delete them.

    I applied the PowerShell command to convert static to dynamic and assign time stamp, however it deleted all records after stale/scavenge period over.


    Rox_Star

    Hi,

    It's normal behavior because the machine don't have a permission to update DNS record when the record was created manually.
    Try force DNS registration on each windows machine using the following command :

    ipconfig /registerdns

    Check also on each network card this option :


    Please don't forget to mark the correct answer, to help others who have the same issue. Thameur BOURBITA MCSE | MCSA My Blog : http://bourbitathameur.blogspot.fr/

    Monday, January 21, 2019 9:47 PM
  • Hi,

     

    We don't recommend you convert all the static records to dynamic records. You may lose the records that you never want to be scavenged.

     

    Normally static DNS records are used for devices which are configured with static IP addresses. Unlike dynamic records, static records will remain the same until you decide to update them manually. Devices that have created a static record will hardly attempt to send an update message either.

    When you convert them to dynamic records, they will then follow the normal scavenging process. As a result, the records will be deleted if you don't manually update them in time.

     

    You may run ipconfig /registerdns command to re-create the DNS entries.

     

    Regards,

    Zoe


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

    Tuesday, January 22, 2019 6:32 AM
  • Hi,

     

    Just checking in to see if the information provided was helpful.

    Please let us know if you would like further assistance.

     

    Best Regards,

    Zoe


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

    Thursday, January 24, 2019 2:54 AM
  • Hi,

    Was your issue resolved?

    If the information provided was helpful, please "mark it as answer" to help other community members find the helpful reply quickly.

    If no, please reply and tell us the current situation in order to provide further help.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    Thank you for your understanding and support.

    Best Regards,

    Zoe


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

    Monday, January 28, 2019 2:47 AM
  • Hi,

    As this thread has been quiet for a while, we will propose the solution as answer. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to unpropose the answer as you wish.

    BTW, we'd love to hear your feedback about the solution. By sharing your experience, you can help other community members facing similar problems. Thanks for your understanding and efforts.

    Best Regards,

    Zoe


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

    Wednesday, January 30, 2019 2:59 AM
  • I have AD Integrated DNS Environment. DNS records in zones are grow to huge numbers and there are huge quantity of static dns records. Need to identify stale/ inactive static dns records and delete them.

    I applied the PowerShell command to convert static to dynamic and assign time stamp, however it deleted all records after stale/scavenge period over.


    Rox_Star

    Hi,

    It's normal behavior because the machine don't have a permission to update DNS record when the record was created manually.
    Try force DNS registration on each windows machine using the following command :

    ipconfig /registerdns

    Check also on each network card this option :


    Please don't forget to mark the correct answer, to help others who have the same issue. Thameur BOURBITA MCSE | MCSA My Blog : http://bourbitathameur.blogspot.fr/

    But what about non windows based devices as static dns records are created for these devices manually. Coz it may be web server, database machine etc.


    Rox_Star

    Thursday, January 31, 2019 12:30 PM
  • Hi,

    You may manually create an A record for the device in the DNS console.

    Please make sure the delete the record when it becomes stale option is unchecked.

    Regards,

    Zoe


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

    Friday, February 1, 2019 1:27 AM