1829265 Members
1803 Online
109988 Solutions
New Discussion

uname ?

 

uname ?


Is it possible to make uname under HP-UX
show the fully qualified nodename of the
machine? I have set the hostname to the
long one, but uname still returns the short
one.

Any help would be appreciated.
2 REPLIES 2
Rick Garland
Honored Contributor

Re: uname ?

uname does not return the FQDN. Might want to look at nslookup. This will return the FQDN if it is defined in the hosts file or in the DNS tables. Look at how nsswitch.conf is setup.
Bill Hassell
Honored Contributor

Re: uname ?

You can set the uname value to FQDN but it might break some applications (typical tools and utilities) that are not expecting .com type names.


Bill Hassell, sysadmin