Enable Scavenging on DNS zones with Script or Command
Hi, I am trying to automate the process for enabling DNS Scavenging, however facing some issue dnscmd . /zoneresetscavengeservers test.com 192.168.200.1 gives the following error Error, failed reset of scavenge servers on zone rsint.net. Status = 9611 Command failed: DNS_ERROR_INVALID_ZONE_TYPE 9611 If I manually enable Scavenging on test.com zone then the command runs successfully. Is there a way to enable Scavenging at zone level through some command or script instead of dnsmgmt.msc GUI inteface. Regards -Manish
November 29th, 2011 11:06am

Hi Manish, Thanks for posting here. Try to enable it with the command below on host 192.168.200.1: DNScmd /config test.com /aging 1 After that please verify the “aging” entry form the results “DNScmd /zoneinfo test.com” : We may will get delay in GUI so please close and reopen the console to verify it. Thanks. Tiger LiPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2011 3:36am

DNScmd /config example.com /aging 1 Great!!!this is working like a champ. Thankyou. Just to confirm if I run the below command now dnscmd . /zoneresetscavengeservers example.com 10.20.40.14 get success New scavenge servers: Ptr = 00000000002E1FE0 MaxCount = 1 AddrCount = 1 server[0] => af=2, salen=16, [sub=0, flag=00000000] p=0, addr=10.20.40.14 Reset scavenging servers on zone S successfully. Command completed successfully. dnscmd /zoneinfo example.com directory partition = AD-Domain flags 00000015 zone DN = DC=example.com,cn=MicrosoftDNS,DC=DomainDnsZones,DC=example,DC=com Scavenge Servers Ptr = 0000000000163120 MaxCount = 1 AddrCount = 1 Server[0] => af=2, salen=16, [sub=0, flag=00000000] p=0, addr=10.20.40.14 I see Scavenge Servers set to 10.20.40.14. However in GUI the following option is not enable. Is this fine and normal? I hope scaveging is set now. Regards -Manish
November 30th, 2011 6:46am

Hi Manish, Thanks for update. We will see the change in GUI by closing and reopening the console. Thanks. Tiger LiPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2011 12:53am

Hi Li, I tried reopening the GUI lot of times but does now see that option enabled at server level as shown with dnscmd? dnscmd . /zoneresetscavengeservers example.com 10.20.40.14 Regards -Manish
December 2nd, 2011 6:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics