From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 03:47:13 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 9B3DEF67 for ; Mon, 25 Aug 2014 03:47:13 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75CC937B8 for ; Mon, 25 Aug 2014 03:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=pqxKxbW3bdbG+2lChrrVu1z4obaaLD4KsCUc946RfAI=; b=jnfdaPCU1anI2TSxYeVlG5OJ3dCcNsCJQVdh92gwLgvDTC0FZwo0N3RHQ7KBZkvf0aFH2AqDvxX9LAyGYkB0SJuscsoBruJI7eThYUB1Av/g7T6HQsC4ofKLAxmdfpTqzvnhOhFR+50tY/rsVMsAQ93wgaTgQxcfwJwFQGYaM+g=; Received: from [39.252.70.96] (port=48594 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XLlFJ-002cue-7p; Sun, 24 Aug 2014 21:47:07 -0600 Date: Mon, 25 Aug 2014 11:46:58 +0800 From: Erich Dollansky To: Stephen Cook Subject: Re: "hosts" file for jails (ezjail) Message-ID: <20140825114658.1ebfaa1c@X220.alogt.com> In-Reply-To: <53FA92E1.7000300@gmail.com> References: <53FA92E1.7000300@gmail.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: 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 03:47:13 -0000 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