First of all, I'm not sure if this is the right place to post this, in case I'll get a bash from the mods and move this post elsewhere ;D
Now, to go back on topic, DNS filtering is something I've been using for quite some time now, and something which I found really useful, not just to block "ad" sites or "danging pigs" ones ::) but also to cut-off unwanted sites or even WHOLE domains
Here's how it works (using Microsoft DNS)
Start by firing up your favourite editor (notepad will do btw) and copy/paste the following in the editor window
; NULL Zone File for DNS filtering
;
@ IN SOA localhost. root.localhost. (
2008090201 ; serial number
28800 ; refresh
1800 ; retry
432000 ; expire
18000 ) ; minimum TTL
;
; Zone NS records
;
@ NS localhost.
A 169.254.255.254
* IN A 169.254.255.254
in case you're wondering the above is a DNS zone file which will resolve ANY request to 169.254.255.254, feel free to change that IP if you want (e.g. using 127.0.0.1 or any other "unused" IP) when done, save the zone inside %SYSTEMROOT%\System32\dns and give it the name "nullzone.dns" (ensure to save it as "any file" to avoid the automatic addition of the "txt" extension)
Now you're ready to start filtering hosts or domains; all you'll need to do will be firing up your DNS console, selecting the "forward zones" node and then after a right click, selecting "new zone", the new zone will be a "standard primary" (we don't need AD for filtering ;)), enter either the host name (e.g.
www.foobar.com) or the domain name (e.g. foobar.com) you want to block and then, when it comes to the zone file name, select "use the following file" and enter "nullzone.dns", that is, the zone file you created above, confirm and that's all, now try running "nslookup
www.foobar.com" or "nslookup foobar.com" and you'll see the result
Repeat the above for whatever host/domain you want and you'll quickly build up your DNS filtering list; as I wrote, such a list will be useful to block "ad" sites, pr0n sites and so on, but may also come handy to quickly lock-off malware sites/domains
Well... that's all, I just hope you'll find it as useful as I did
HTH