Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 08:57:27 +0800
From:      Erich Dollansky <freebsd.ed.lists@sumeritec.com>
To:        Joseph Ward <jbwlists@hilltopgroup.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jbwlists@hilltopgroup.com> 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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180621085727.42b31b18.freebsd.ed.lists>