Leveraging system hostname as part of a jail's hostname

Joseph Ward jbwlists at hilltopgroup.com
Wed Jun 20 02:43:20 UTC 2018


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



More information about the freebsd-jail mailing list