domainname

Display and set the system's NIS domain name

Supplementary instructions

domainname command is used to display and set the NIS domain name of the system.

grammar

domainname(option)(parameter)

Options

-v: detailed information mode;
-F: Specifies the file to read domain name information.

Parameters

NIS domain name: Specify the NIS domain name to be set.

Example

[root@AY1307311912260196fcZ ~]# domainname -v
getdomainname()=`(none)'
(none)
  [root@AY1307311912260196fcZ ~]# domainname
www.jsdig.com

[root@AY1307311912260196fcZ ~]# domainname -v
getdomainname()=`www.jsdig.com'
www.jsdig.com