Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2014 20:52:40 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Stephen Cook <sclists@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: "hosts" file for jails (ezjail)
Message-ID:  <alpine.BSF.2.11.1408242031510.2348@wonkity.com>
In-Reply-To: <53FA92E1.7000300@gmail.com>
References:  <53FA92E1.7000300@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1408242031510.2348>