Display or set the system's NIS/YP domain name.
The domainname command is used to display and set the NIS (Network Information Service) domain name of the system.
domainname (options) (parameters)
-v Verbose mode.
-F Read the domain name from a specified file.
NIS Domain Name: Specifies the NIS domain name to be set.
[root@AY1307311912260196fcZ ~]# domainname -v
getdomainname()=`(none)'
(none)
[root@AY1307311912260196fcZ ~]# domainname
www.jsdig.com
[root@AY1307311912260196fcZ ~]# domainname -v
getdomainname()=`www.jsdig.com'
www.jsdig.com