Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 22:41:15 -0400
From:      Joseph Ward <jbwlists@hilltopgroup.com>
To:        freebsd-jail@freebsd.org
Subject:   Leveraging system hostname as part of a jail's hostname
Message-ID:  <4e20e5e4-cb49-2dbb-89fa-4bf70e055979@hilltopgroup.com>

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

I have several jails, configured via jail.conf, whose hostname I want to
make: $name.$system_hostname.

Is there a way to do this in jail.conf?   If I use:

host = inherit;

the hostnames of the jails all match the hostname of the system.  I
tried using:

host.hostname = $name;
host.domainname = inherit;

but the hostname ends up just being $name (expanded, of course).

Trying:

host = inherit;
host.hostname = $name;

ended up with simply $name as well, with the "inherit" ignored.

So, am I missing something? 


Thanks,

Joseph




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e20e5e4-cb49-2dbb-89fa-4bf70e055979>