server name

Eilko Bos tafkam at brasapen.org
Mon Feb 21 10:44:54 GMT 2005


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.


More information about the freebsd-questions mailing list