.\" -*- nroff -*- .\" Copyright (C) 1998, 1999, 2001, 2007, 2010 Thorsten Kukuk .\" This file is part of the yp-tools. .\" Author: Thorsten Kukuk .\" .\" 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 General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software Foundation, .\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\" .TH domainname 8 "April 2010" "YP Tools 3.3" .SH NAME domainname - set or display name of current domain .br nisdomainname - set or display name of current NIS(YP) domain .br ypdomainname - set or display name of current NIS(YP) domain .SH SYNOPSIS .B domainname [ .B domain ] .br .B nisdomainname [ .B domain ] .br .B ypdomainname [ .B domain ] .LP .SH DESCRIPTION Without an argument, .B domainname displays the name of the current NIS domainname of the system. .B domainname uses the .BR getdomainname (2) function for getting the domainname, .B nisdomainname and .B ypdomainname are using .BR yp_get_default_domain (3). .PP Only the super-user can set the name of the domain by specifying the new .B domain as an argument. All three programs uses .BR setdomainname (2) for this. Bear in mind, that already running programs may continue to use the old domainname. .SH "SEE ALSO" .BR getdomainname (2), .BR setdomainname (2), .BR yp_get_default_domain (3), .BR ypbind (8), .BR ypcat (1), .BR ypmatch (1), .BR ypwhich (1), .BR yppoll (8), .BR ypserv (8), .BR ypset (8) .LP .SH AUTHOR .B domainname is part of the .B yp-tools package, which was written by Thorsten Kukuk .