Thursday, May 28, 2020

DNS Scavening not working

IF DNS Scavenging is enabled on the server , configured  the Scavenging Cycle and Aging (No Refresh and Refresh interval)  but old records are not deleting yet,

type in cmd dnscmd /zoneinfo test.com


you will see ....Ptr          = 000000000031D480               MaxCount     = 1                AddrCount    = 1                                Server[0] => af=2, salen=16, [sub=0, flag=00000000] p=13568, addr=192.168.1.1


Here you notice the IP address 192.168.1.1.


This is the IP address of the server which has the permission to scavenge the zone (Most likely this could be a server which is no longer existing)
If this is not the IP address of the server which on which you have configured Scavenging then we need to change that.


To change the Scavenging server for a zone, run the command:


dnscmd /zoneresetscavengeservers test.com <Ip of the current DNS Server>


where <IP of the current DNS Server> is the IP address of the DNS Server where Scavenging is configured.


Source

No comments: