Blacklist dns help
Benjamin Lutz
mail at maxlor.com
Wed May 9 21:38:50 UTC 2007
On Tuesday 08 May 2007 17:00, Benjamin Adams wrote:
> I'm trying to create a blacklist.zone in my dns records for blacking
> spam. Anyone know where I can find a tutorial for this?
This is really straightforward. Create a file "/etc/namedb/blackhole.db"
that contains the following (without the -----):
-----
@ 1D IN SOA @ root.intranet. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
-----
ie, an empty DNS db file. Now, for every DNS name you want to blacklist,
in your /etc/namedb/named.conf create an entry like the following:
-----
zone "doubleclick.net" { type master; file "blackhole.db"; };
zone "advertising.com" { type master; file "blackhole.db"; };
zone "popupad.net" { type master; file "blackhole.db"; };
-----
Now restart named and you're done.
Cheers
Benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-chat/attachments/20070509/034a7f03/attachment.pgp
More information about the freebsd-chat
mailing list