Display and set the system's NIS domain name
domainname command is used to display and set the NIS domain name of the system.
domainname(option)(parameter)
-v: detailed information mode;
-F: Specifies the file to read domain name information.
NIS domain name: Specify 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