in bind9 I can use rndc flushname zone.tld from a shell.
In the Windows DNS mmc I can select the zone and delete it.
With dnscmd I can flush the whole cache, but I just need to flush a zone's cache every now and then.
Is it possible and how? TIA
DNSCmd.exe is used to display and change the properties of DNS servers, zones, and resource records. You can find detailed syntax here. As much as I would like to give proper reference and explanation for this, I found it by random googling, trial and error: cached lookups seem to be internally stored in Zone called ..Cache, and each cached zone is only a node under "..Cache", so the right switch to use is /NodeDelete:
Still, it would be cool if anyone could find "..cache" in MS official documentation.
I'm afraid that programatically, you'll have to resort to
You can do it from the GUI, though I doubt that's any help
For authoritative Servers, you can either refresh or reload zone data, depending on the source type.
For active directory integrated zones, reload the zone data from AD:
assuming that the fqdn of your dns server is