domainname (8)
Leading comments
Copyright (C) 1998, 1999, 2001 Thorsten Kukuk This file is part of the yp-tools. Author: Thorsten Kukuk <kukuk@suse.de> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Ge...
NAME
domainname - set or display name of current domainnisdomainname - 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 ]
DESCRIPTION
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.
SEE ALSO
getdomainname(2), setdomainname(2), yp_get_default_domain(3), ypbind(8), ypcat(1), ypmatch(1), ypwhich(1), yppoll(8), ypserv(8), yset(8)