From owner-freebsd-questions Mon Sep 16 22:58:24 2002 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 723AF37B400; Mon, 16 Sep 2002 22:58:23 -0700 (PDT) Received: from ns.museum.rain.com (gw-ipinc.museum.rain.com [206.29.169.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC5DF43E6E; Mon, 16 Sep 2002 22:58:22 -0700 (PDT) (envelope-from list@museum.rain.com) Received: from ns.museum.rain.com (localhost [127.0.0.1]) by ns.museum.rain.com (8.12.5/8.12.5) with ESMTP id g8H5wFqm053239; Mon, 16 Sep 2002 22:58:15 -0700 (PDT) (envelope-from list@ns.museum.rain.com) Received: (from list@localhost) by ns.museum.rain.com (8.12.5/8.12.5/Submit) id g8H5wELE053238; Mon, 16 Sep 2002 22:58:14 -0700 (PDT) (envelope-from list) Date: Mon, 16 Sep 2002 22:58:14 -0700 From: James Long To: "Greg 'groggy' Lehey" Cc: Mike Hogsett , freebsd-questions@FreeBSD.ORG Subject: Re: Hosts file from DNS zone files? Message-ID: <20020916225814.A53213@ns.museum.rain.com> References: <200209161802.g8GI2l7B070289@axp.csl.sri.com> <20020917031325.GG61132@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020917031325.GG61132@wantadilla.lemis.com>; from grog@FreeBSD.ORG on Tue, Sep 17, 2002 at 12:43:25PM +0930 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 Tue, Sep 17, 2002 at 12:43:25PM +0930, Greg 'groggy' Lehey wrote: > > It would be easy enough to do, but why? You're much better off > running a name server. What about during startup, when one needs name resolution of local hosts before named is running? I refer to hosts entries in my ipfw script, such that I might define ${www} as the name of my webserver, resolvable by /etc/hosts, and proceed to define rulesets like: allow tcp from any to ${www} 80 allow tcp from ${www} 80 to any Then, should the value of ${www} change, it does not break my firewall rules. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message