From owner-freebsd-questions Wed Feb 12 3:43:43 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F2A937B401 for ; Wed, 12 Feb 2003 03:43:41 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1147343F75 for ; Wed, 12 Feb 2003 03:43:39 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from daxhome (anubis.dweebsoft.com [64.81.58.36]) by ra.dweebsoft.com (8.12.6/8.12.3) with SMTP id h1CBhc47035526; Wed, 12 Feb 2003 03:43:38 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Message-ID: <02f501c2d28b$fb848b90$0a0aa8c0@dweebsoft.com> From: "Daxbert" To: "Bjarne Wichmann Petersen" , References: <200302121029.14713.freebsd.nospam@mekanix.dk> <200302121109.33305.kde.nospam@mekanix.dk> <02a401c2d27f$e9640140$0a0aa8c0@dweebsoft.com> <200302121228.14301.kde.nospam@mekanix.dk> Subject: Re: Resolving or blocking eg. doubleclick.net? Date: Wed, 12 Feb 2003 03:43:37 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Wednesday 12 February 2003 11:17, Daxbert wrote: > > > One option... cheat > > > > Make your dns server authoritative > > for doubleclick.net, and have no entries > > (or optionally your own web server as an * entry) > > in the zone file. > > So, would that mean I should create an entry in named.conf like: > > zone "doubleclick.net" { > type master; > file "doubleclick.net"; > }; > > and then don't have a doubleclick.net ... or should I create an empty file? > ... or? > > > named stores it's cache in memory. You can get a dump > > of the current cache.. don't remember the exact syntax > > but it's in the man page. > > Hmm, so every time I reboot I loose my cache? But still, if I visit eg. > and wait untill it's loaded (ie. finished resolving > doubleclick.net) and then hit reload it ought to go a lot quicker. But it > doesn't, takes just as long. :-/ > > Bjarne I do this in named.conf... zone "atdmt.com" { type master; file "db.empty_zone"; }; zone "doubleclick.net" { type master; file "db.empty_zone"; }; then, I have a single file called db.emtpy_zone $TTL 36000 @ IN SOA my.dns.server. email.address.i.use.in.zones. ( 1 ; serial 36000 ; refresh 18000 ; retry 1209600 ; expire 36000 ; minimum ) NS my.dns.server. * A 1.1.1.1 ; NOTE: The 1.1.1.1 A record is optional. If you use this, you should point it to your own web server. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message