From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 15:29:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E023F3FC for ; Mon, 25 Aug 2014 15:29:09 +0000 (UTC) Received: from relay.mailchannels.net (tkt-001-i390.relay.mailchannels.net [72.249.144.205]) by mx1.freebsd.org (Postfix) with ESMTP id 1280C37F1 for ; Mon, 25 Aug 2014 15:29:08 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.32.44 Received: from mail-24.name-services.com (ip-10-236-1-24.us-west-2.compute.internal [10.236.1.24]) by relay.mailchannels.net (Postfix) with ESMTPA id 1E53F100582 for ; Mon, 25 Aug 2014 15:20:59 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.32.44 Received: from mail-24.name-services.com (mail-24.name-services.com [10.245.145.206]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.2.12); Mon, 25 Aug 2014 15:21:04 GMT X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|107.201.32.44 X-MailChannels-Auth-Id: demandmedia X-MC-Ingress-Time: 1408980064206 Received: from [10.0.10.1] (107-201-32-44.lightspeed.bcvloh.sbcglobal.net [107.201.32.44]) by mail-24.name-services.com with SMTP; Mon, 25 Aug 2014 08:20:51 -0700 Message-ID: <53FB5453.6080708@a1poweruser.com> Date: Mon, 25 Aug 2014 11:20:51 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD Questions Subject: Re: "hosts" file for jails (ezjail) References: <53FA92E1.7000300@gmail.com> <20140825114658.1ebfaa1c@X220.alogt.com> In-Reply-To: <20140825114658.1ebfaa1c@X220.alogt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 15:29:10 -0000 Erich Dollansky wrote: > Hi, > > On Sun, 24 Aug 2014 21:35:29 -0400 > 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. >> >> Any advice is welcome! Thanks! >> > what you want is against the idea of jails. What you can do, creates in > the root filesystem the hosts file and write a script which copies it > then into the jails. > > Erich This is a an error in the handbook. This is NOT required by ezjail or jail(8). The author has made a great mistake in publishing this mis-leading information. You may safely disregard all comments made in the new handbook jail ezjail section about the jails /etc/hosts file.