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 "myrootdns2008.com" and host name which is to be blocked from querying is "dnsclient.myrootdns2008.com"
2. Now run the command below
dnscmd dnsserver2008 /config /GlobalQueryBlockList "dnsclient.myrootdns2008.com"



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

0 comments:

Design by infinityskins.blogspot