Wednesday, February 18, 2009

Set GlobalQueryBlockList using dnscmd

To set GlobalQueryBlockList on command prompt using dnscmd, do the following

1. Assume the dnsserver is "dnsserver2008" , domain is "" and host name which is to be blocked from querying is ""
2. Now run the command below
dnscmd dnsserver2008 /config /GlobalQueryBlockList ""

3. To reset query block (remove all block listed hosts), run
dnscmd dnsserver2008 /config /GlobalQueryBlockList
4. To find block listed host names, run
dnscmd dnsserver2008 /info /globalqueryblocklist


Design by infinityskins.blogspot