$ ypdomainname -a
To display all long host names (FQDNs)
$ ypdomainname -A
To display ypdomainname
$ ypdomainname -yp
To print all addresses for the host
$ ypdomainname -I
To print short host name
$ ypdomainname -s
To print addresses for the host name
$ ypdomainname -i
To print help options
$ ypdomainname -h
regards,
T.Dhanasekar