Get or set a configuration string
confstr [name [value]]
This utility gets or sets the value of a configuration string. If given, the name must be one of the following (in lower- or uppercase):
|A hostname can consist only of letters, numbers, and hyphens, and must not start or end with a hyphen. For more information, see RFC 952.|
|Although these names are similar to the _CS_* names accepted by confstr(), getconf, and setconf, this utility requires that you specify the names as given above.|
If you don't specify a name, confstr displays the current value of all configuration strings.
To set the value of the configuration string, specify a value on the command line.
|You must be logged in as root in order to set a value.|
You can create a symbolic link to confstr that corresponds to one of the possible names (e.g. in the /bin directory, run ln -s confstr domain), and you can then use the symlink to set or get that name value (e.g. domain to get the domain, or domain mydomain to set the domain).
confstr(), pathconf(), sysconf() in the Library Reference
“Configuration strings” in the Configuring Your Environment chapter of the Neutrino User's Guide