Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 11:44:47 +0100
From:      Eilko Bos <tafkam@brasapen.org>
To:        michael Christie <michael@christie.org.au>
Cc:        FreeBsd Questions <freebsd-questions@freebsd.org>
Subject:   Re: server name
Message-ID:  <20050221104446.GA45694@webmail.home.brasapen.org>
In-Reply-To: <1108981883.9422.55.camel@localhost.localdomain>
References:  <1108980962.9422.47.camel@localhost.localdomain> <Pine.LNX.4.58.0502211015420.4077@jackhammer> <1108981883.9422.55.camel@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>From the keyboard of michael Christie, written on Mon, Feb 21, 2005 at 09:31:23PM +1100:
> I see what you mean, that may not help me as my host name is an ip
> address running in a jail. There for my host name at the command prompt
> is 192#  if I change the ip to a name in the /etc/rc.conf  I do not
> think the jail will run.

A hostname is not an IP-address.
For a jail, the hostname is given in the commandline. You should change that
for in case you have to restart the jail. Also, you should update /etc/hosts
and /etc/rc.conf to refect the changes. This might be needed for e.g. running
services like Apache and MySQL.

Keep in mind, from man(8) jail:

     NOTE: If you plan to allow untrusted users to have root access inside the
     jail, you may wish to consider setting the
     security.jail.set_hostname_allowed sysctl variable to 0.  Please see the
     management discussion later in this document as to why this may be a good
     idea.  If you do decide to set this variable, it must be set before
     starting any jails, and once each boot.


Grtz,
--
Eilko.



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