dnsdomainname - show the system's DNS domain name

To display the alias name
$ dnsdomainname -a

To display all the fully qualified domain names
$ dnsdomainname -A

To set default hostname if none available
$ dnsdomainname -b ilugc

To Displays the short hostname
$ dnsdomainname -s

To display addresses for the host name
$ dnsdomainname -i

To display all addresses for the host
$ dnsdomainname -I

To Displays the Network Information System (NIS) domain name
$ dnsdomainname -y



regards,
T.Dhanasekar