From owner-freebsd-jail@freebsd.org Thu Jun 21 00:58:33 2018 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A37E710173B4 for ; Thu, 21 Jun 2018 00:58:33 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out3-6.antispamcloud.com (out3-6.antispamcloud.com [185.201.18.6]) (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 3991E7CB41 for ; Thu, 21 Jun 2018 00:58:32 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from [153.92.8.106] (helo=srv31.niagahoster.com) by mx15.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fVnva-0003zO-L6; Thu, 21 Jun 2018 02:58:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wE7kv7Ip+rRvnvtduKmByOSAa0o6fEKCvP8GNSHuAEM=; b=RRethN3xb3AI7PMnjcTR3XV+JG DPY9+3+MMy843Jq0bJhUDxyc1mA2zmHBkOdIZ085MnFuRRcOwx4O8GeCNv9YBjH229cUPE1WxxIH1 7AAXT5MEx35D2MknlLHWGbcdW6J7dsYoyr1h+vE0exzUoKD6eAbNmCv7suX9cj7KFM3QjGI0sLsTo 9BbHUyU/7slka4HhuZ6W+oOV8KBw7kJuWmv7nAkSijpXWb+FbT9p5Wnzxh4dLx5b8q3sfSzn+Ehup Om+ILar2sNCjuAAR9EzT1jK7jHXRgWY4I/0FNb9bHohVYtLcXOzxi6gnHgng/O2yWpKnkFslA5gV8 aYsjm76w==; Received: from [182.1.103.48] (port=11261 helo=X220.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fVnuk-0004ih-FQ; Thu, 21 Jun 2018 07:57:33 +0700 Date: Thu, 21 Jun 2018 08:57:27 +0800 From: Erich Dollansky To: Joseph Ward Cc: freebsd-jail@freebsd.org Subject: Re: Leveraging system hostname as part of a jail's hostname Message-ID: <20180621085727.42b31b18.freebsd.ed.lists@sumeritec.com> In-Reply-To: <4e20e5e4-cb49-2dbb-89fa-4bf70e055979@hilltopgroup.com> References: <4e20e5e4-cb49-2dbb-89fa-4bf70e055979@hilltopgroup.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-AntiSpamCloud-Domain: out.niagahoster.com X-AntiSpamCloud-Username: niaga Authentication-Results: antispamcloud.com; auth=pass (login) smtp.auth=niaga@out.niagahoster.com X-AntiSpamCloud-Outgoing-Class: ham X-AntiSpamCloud-Outgoing-Evidence: Combined (0.09) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5vA69jNUbQ3Eoxubb6OM4id602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvOxyWReBUsi5eTAfjUS7ABiByKPiwtEFGq6hRRdjQ5VZJXrIHCsEp6/treEtj7AyECPtY hp0qtLkrVxs7kID66VjXFT0qB5tFv92nRX4mJdp7VGsidpdBx9XCEkkJ20mzRsqi8+ldBimsVmCO vSTacF+9fzzuxLusS2bHhXLrY/YHVgW9/bktU41htiJ8fk7NkNLrygCciEZkmwxxjPu2gHLb0zYK te9Ud27+oASI0WHi5ZnVLCtF5AzIFaWvdlmEAVLPf5Zo9/csD7Mzv65+WmDR/V3sf/S6vH9NqYDT kbe06TrtUNoNp3QEllh3nsMou9OyOZ0LCWyRLTW+ixPGoQEDoZRECU8FXlHOLizGle7HhPJCvcLs x3MQl7kOqB7FVvgtqBiaStuDUV3oxanap0GFR8C6Sb0kvfDIoDIdEdB1Yw3U+6fDJowgRNrCFqlt RHRs143fMQKAVYIEbcILAyf0ekCLxoCCgq1sXEiavgwnUS69HR3U+z4lojSF5X6rNvvg7iEFLP+S SY+Av5+AiC57JThBIjPb6X5eR6Yk0RgSOhNk0o2QYpDOwY8ocAhjI776C6+7Pzbxn4wme/e8Cs5N K6EWcSVfmGTlk0Fq+uBMqWnapj58kfoQ/1d58kpOPxEJe7+Ro61ja/hPwx5/t1MuS/KSEYab4Vqs 7TuEAkTXLX+T3lWn5D+rSMPBP0ZzBBn9FMmFcozF7AKqXO7cjJ1eQS6fsKHB9e/ZNcECJK6iUJUu XEWO3z3Bj3aS9YwpT+uO5TcDeKjrEmYPn2IVWRvem9dFk0QltArRDZ82S6Db28gXtNNULBk6aern bbuZRgIctf3pY30jeWl57Ki2S3n/asDO0V6SUvEY03codo+QFsg2ewUQsSFul4j4JOcIDUqZKa5H XwCUMPzR8VRhZ6F6N4B5N0L32t+3ubLqofQKMS+4ayUpOtEhdxekWDmK9g== X-Report-Abuse-To: spam@quarantine1.antispamcloud.com X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2018 00:58:34 -0000 Hi, I use a script that generates the configuration file when the jail is created. This should work for you too. Erich On Tue, 19 Jun 2018 22:41:15 -0400 Joseph Ward wrote: > Hi everyone, >=20 > I have several jails, configured via jail.conf, whose hostname I want > to make: $name.$system_hostname. >=20 > Is there a way to do this in jail.conf?=C2=A0=C2=A0 If I use: >=20 > host =3D inherit; >=20 > the hostnames of the jails all match the hostname of the system.=C2=A0 I > tried using: >=20 > host.hostname =3D $name; > host.domainname =3D inherit; >=20 > but the hostname ends up just being $name (expanded, of course). >=20 > Trying: >=20 > host =3D inherit; > host.hostname =3D $name; >=20 > ended up with simply $name as well, with the "inherit" ignored. >=20 > So, am I missing something?=C2=A0 >=20 >=20 > Thanks, >=20 > Joseph >=20 > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to > "freebsd-jail-unsubscribe@freebsd.org"