Windows XP and Vista (and maybe 2000 too) by default have a DNS cache set with a 15 minutes expire time. That is, if you have made changes in your DNS server, a WinXP box will get this changes only after 15 minutes. If you want to change this, you have to add a key to the Windows Registry. Rant: add? ADD?!? why defaults have to be hardcoded and why a key doesn’t already exists with the default value in it? Rationals? Anyway, the path to the registry is:
and you have to create a dword key here called NegativeCacheTime, and set its value to whateveer you want. 0 in case you want to disable this feature. Remember that the values is in second.
If you want to deploy this change, the quickest (and easiest) method I found was to create a registry file delete_dnscache.reg like this:
Windows Registry Editor Version 5.00
(remember to change the final :0 with the seconds of cache you want.
and then create a simple batch (.bat) file to put in the Group Policy machine’s startup scripts with something like this:
regedit /s \\YOURSERVER\netlogon\delete_dnscache.reg
Then, give a
gpupdate /force on your DC, reboot a WinXP machine and check its registry for the new parameter.