domainname(8)

domainname8

Set or display name of current domain nisdomainname - set or display name of current nis(yp) domain ypdomainname - set or display name of current nis(yp) domain

Synopsys

domainname [ domain ]
nisdomainname [ domain ]
ypdomainname [ domain ]

Overview

Without an argument, domainname displays the name of the current NIS domainname of the system. domainname uses the getdomainname(2) function for getting the domainname, nisdomainname and ypdomainname are using yp_get_default_domain(3).

Only the super-user can set the name of the domain by specifying the new domain as an argument. All three programs uses setdomainname(2) for this. Bear in mind, that already running programs may continue to use the old domainname.

Releases

12 releases since Debian 2.0 (Hamm); the text changed 3 times.

  1. 2.0
  2. 2.1–2.2
  3. 3.0
  4. 3.1–10

Author

domainname is part of the yp-tools package, which was written by Thorsten Kukuk <[email protected]>.

From nis 3.17.1-3+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.