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):
- The name of the instruction set architecture for this node's CPU(s).
- The domain name.
- The name of this node in the network.
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.
- The name of the hardware manufacturer.
- Serial number associated with the hardware.
- A value similar to the LD_LIBRARY_PATH environment variable that finds all standard libraries.
- This node's hardware type.
- A value similar to the PATH environment variable that finds all standard utilities.
- The current OS release level.
- The contents of the resolv.conf file, excluding the domain name.
- The secure RPC domain.
- The operating system name.
- The current OS version number.
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).
Last modified: 2014-05-14