From owner-freebsd-chat@FreeBSD.ORG Wed May 9 21:38:50 2007 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A8B616A400 for ; Wed, 9 May 2007 21:38:50 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id D6A2513C458 for ; Wed, 9 May 2007 21:38:49 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l49LP5s3093534; Wed, 9 May 2007 23:25:07 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id A0A832E207; Wed, 9 May 2007 23:25:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MUXI0AGBbzl6; Wed, 9 May 2007 23:25:00 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 65E6C2E205; Wed, 9 May 2007 23:25:00 +0200 (CEST) From: Benjamin Lutz To: freebsd-chat@freebsd.org Date: Wed, 9 May 2007 23:24:55 +0200 User-Agent: KMail/1.9.5 References: <6199c3dc0705080800p796e6210n277fdf8ab6ab1d15@mail.gmail.com> In-Reply-To: <6199c3dc0705080800p796e6210n277fdf8ab6ab1d15@mail.gmail.com> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3738909.iMcjVdIiMY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705092324.59022.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: Benjamin Adams Subject: Re: Blacklist dns help X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2007 21:38:50 -0000 --nextPart3738909.iMcjVdIiMY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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"=20 that contains the following (without the -----): =2D---- @ 1D IN SOA @ root.intranet. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS @ =2D---- ie, an empty DNS db file. Now, for every DNS name you want to blacklist,=20 in your /etc/namedb/named.conf create an entry like the following: =2D---- zone "doubleclick.net" { type master; file "blackhole.db"; }; zone "advertising.com" { type master; file "blackhole.db"; }; zone "popupad.net" { type master; file "blackhole.db"; }; =2D---- Now restart named and you're done. Cheers Benjamin --nextPart3738909.iMcjVdIiMY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGQjwqzZEjpyKHuQwRAqklAKCFuI1SKrOIKKR8eNg1UeBmdaw6JACeOXkm mBfIuAKqiK7LqukYzTaPOrU= =vC0y -----END PGP SIGNATURE----- --nextPart3738909.iMcjVdIiMY--