Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 23:24:55 +0200
From:      Benjamin Lutz <mail@maxlor.com>
To:        freebsd-chat@freebsd.org
Cc:        Benjamin Adams <freebsdworld@gmail.com>
Subject:   Re: Blacklist dns help
Message-ID:  <200705092324.59022.mail@maxlor.com>
In-Reply-To: <6199c3dc0705080800p796e6210n277fdf8ab6ab1d15@mail.gmail.com>
References:  <6199c3dc0705080800p796e6210n277fdf8ab6ab1d15@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGQjwqzZEjpyKHuQwRAqklAKCFuI1SKrOIKKR8eNg1UeBmdaw6JACeOXkm
mBfIuAKqiK7LqukYzTaPOrU=
=vC0y
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705092324.59022.mail>