In unix (solaris) is there any command where i can get hostname & domain name together??
ex. hostname -> servername domainname -> us.xyz.com
i need it output as : servername.us.xyz.com
The command hostname
should return a FQDN assuming that it's configured correctly in /etc/nodename.
hostname
should return this, if it doesn't, you probably set it up wrong.
Try combining it with domainname
in that case.