>>> On 4/30/2015 at 04:16 PM, Victor Echavarry Diaz <[email protected]>
wrote: 
> We installing the TEPS under SLES 11SP3. The product use the variable $HOST 
> for install the clients outside Linux. The DNS group establish 
> teps.mycompany.com to resolve by name. When you echoed the $HOST variable it 
> shows the TEPS instead the whole name. under the HOSTNAME it look correctly. 
> Is there a way to change it, permanently the HOST variable to show 
> teps.mycompany.com instead teps? We have SLES 11SP3 under z/VM 6.3.

HOST and HOSTNAME are set by the shell and reflect just the host name, _not_ 
the "fully qualified domain name" (or FQDN) that you seem to be expecting.  Is 
there a problem with just the host name being used?  If so, that would be worth 
opening a bug with IBM to get them to use a standard method of extracting the 
FQDN.

If you look at /etc/profile, it will set HOSTNAME to the contents of 
/etc/HOSTNAME if $HOSTNAME is null.  The fact that the shell is setting 
HOSTNAME before then means that the contents of /etc/HOSTNAME are _not_ being 
used.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to