[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 2

domainname Command

Purpose

Displays or sets the name of the current Network Information Service (NIS) domain.

Syntax

/usr/bin/domainname [ DomainName ]

Description

The domainname command displays or sets the name of the current NIS domain. If you do not specify a parameter, the domainname command displays the name of the current NIS domain. A domain typically encompasses a group of hosts under the same administration.

Only the root user can set the name of the domain by giving the domainname command an argument.

Examples

  1. To join a new domain, enter:

    domainname caesar

    In this example, the domainname command sets the NIS domain name to caesar.

  2. To find out the name of the domain your machine belongs to, enter:

    domainname

Related Information

The ypinit command.

The ypbind daemon, ypserv daemon.

Network Information Service (NIS) Overview for System Management in AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guide.

NIS Reference.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]