Home > IT Architecture, Kernel, Linux, Systems, Unix > hostname is different between linux and solaris

hostname is different between linux and solaris

February 21st, 2012

1. For linux, -a is a option for the command hostname:
-a, --alias
Display the alias name of the host (if used).
For example:
[root@linux ~]# hostname -a
linux localhost.localdomain localhost
[root@linux ~]# grep linux /etc/hosts
127.0.0.1 linux.doxer.org linux localhost.localdomain localhost

2.For solaris:

But for solaris, there's no -a option, which means, if you run hostname -a on a solaris box, you're actually setting the hostname to "-a", which in turn will cause many problem especially ldap.

Good Luck!


Categories: IT Architecture, Kernel, Linux, Systems, Unix Tags:
Comments are closed.