Re: Blacklist dns help

看板FB_chat作者時間19年前 (2007/05/10 05:39), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
--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--
文章代碼(AID): #16GZzt00 (FB_chat)
文章代碼(AID): #16GZzt00 (FB_chat)