From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 02:52:42 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7378F326 for ; Mon, 25 Aug 2014 02:52:42 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 21BE63281 for ; Mon, 25 Aug 2014 02:52:41 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s7P2qeRU024738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 24 Aug 2014 20:52:40 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s7P2qek9024735; Sun, 24 Aug 2014 20:52:40 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 24 Aug 2014 20:52:40 -0600 (MDT) From: Warren Block To: Stephen Cook Subject: Re: "hosts" file for jails (ezjail) In-Reply-To: <53FA92E1.7000300@gmail.com> Message-ID: References: <53FA92E1.7000300@gmail.com> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 24 Aug 2014 20:52:40 -0600 (MDT) Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 02:52:42 -0000 On Sun, 24 Aug 2014, Stephen Cook wrote: > Is there a way to get a bunch of jails (I'm using ezjail) to share the same > hosts file, preferably one stored somewhere on the host OS? I tried putting a > symlink in the "flavour" template but when a jail is created with that the > symlink within the jail pointed to itself and gave me some sort of recursive > error when I tried to "cat" it. > > I'd like to be able to update the file when I add a new jail, and have the > others able to connect to it by whatever stupid name I give it, without > editing all those different hosts files. But I suspect the whole point of > jails being kept separate from the host filesystem might be in my way. Could you run a local DNS server? Of course, it would need to be started before the jails. Or, if in a jail, that jail would need to be started first.