From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 10:44:53 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5B3716A4CE for ; Mon, 21 Feb 2005 10:44:53 +0000 (GMT) Received: from hobbes.brasapen.org (tafkam.xs4all.nl [82.92.76.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4BA943D31 for ; Mon, 21 Feb 2005 10:44:52 +0000 (GMT) (envelope-from tafkam@brasapen.org) Received: from webmail.home.brasapen.org (www.bos-zuidema.nl [172.20.1.10]) by hobbes.brasapen.org (Postfix) with ESMTP id 3232F60C8; Mon, 21 Feb 2005 11:44:47 +0100 (CET) Received: by webmail.home.brasapen.org (Postfix, from userid 1001) id 1B75960E4; Mon, 21 Feb 2005 11:44:47 +0100 (CET) Date: Mon, 21 Feb 2005 11:44:47 +0100 From: Eilko Bos To: michael Christie Message-ID: <20050221104446.GA45694@webmail.home.brasapen.org> References: <1108980962.9422.47.camel@localhost.localdomain> <1108981883.9422.55.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1108981883.9422.55.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-Bos-Zuidema-MailScanner-Information: Neem contact op met postmaster@bos-zuidema.nl voor meer informatie X-Bos-Zuidema-MailScanner: Found to be clean X-MailScanner-From: tafkam@brasapen.org cc: FreeBsd Questions Subject: Re: server name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 10:44:54 -0000 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.