19ddb49cbSWarner Losh.\"- 26f2d50c0SGarrett Wollman.\" Copyright (c) 1983, 1988, 1990, 1993 36f2d50c0SGarrett Wollman.\" The Regents of the University of California. All rights reserved. 46f2d50c0SGarrett Wollman.\" 56f2d50c0SGarrett Wollman.\" Redistribution and use in source and binary forms, with or without 66f2d50c0SGarrett Wollman.\" modification, are permitted provided that the following conditions 76f2d50c0SGarrett Wollman.\" are met: 86f2d50c0SGarrett Wollman.\" 1. Redistributions of source code must retain the above copyright 96f2d50c0SGarrett Wollman.\" notice, this list of conditions and the following disclaimer. 106f2d50c0SGarrett Wollman.\" 2. Redistributions in binary form must reproduce the above copyright 116f2d50c0SGarrett Wollman.\" notice, this list of conditions and the following disclaimer in the 126f2d50c0SGarrett Wollman.\" documentation and/or other materials provided with the distribution. 13fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 146f2d50c0SGarrett Wollman.\" may be used to endorse or promote products derived from this software 156f2d50c0SGarrett Wollman.\" without specific prior written permission. 166f2d50c0SGarrett Wollman.\" 176f2d50c0SGarrett Wollman.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 186f2d50c0SGarrett Wollman.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 196f2d50c0SGarrett Wollman.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 206f2d50c0SGarrett Wollman.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 216f2d50c0SGarrett Wollman.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 226f2d50c0SGarrett Wollman.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 236f2d50c0SGarrett Wollman.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 246f2d50c0SGarrett Wollman.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 256f2d50c0SGarrett Wollman.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 266f2d50c0SGarrett Wollman.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 276f2d50c0SGarrett Wollman.\" SUCH DAMAGE. 286f2d50c0SGarrett Wollman.\" 29224359b5SJoel Dahl.Dd April 22, 2013 306f2d50c0SGarrett Wollman.Dt DOMAINNAME 1 31caa2db3bSRuslan Ermilov.Os 326f2d50c0SGarrett Wollman.Sh NAME 336f2d50c0SGarrett Wollman.Nm domainname 346f2d50c0SGarrett Wollman.Nd set or print name of current YP/NIS domain 356f2d50c0SGarrett Wollman.Sh SYNOPSIS 36be8b1497SRuslan Ermilov.Nm 376f2d50c0SGarrett Wollman.Op Ar ypdomain 386f2d50c0SGarrett Wollman.Sh DESCRIPTION 39e004acc8SPhilippe CharnierThe 40e004acc8SPhilippe Charnier.Nm 41eccea571SRuslan Ermilovutility prints the name of the current YP/NIS domain. 42eccea571SRuslan ErmilovThe super-user can 43224359b5SJoel Dahlset the domain name by supplying an argument; this is usually done with the 44224359b5SJoel Dahl.Va nisdomainname 45224359b5SJoel Dahlvariable in the 46224359b5SJoel Dahl.Pa /etc/rc.conf 47*90405e1dSChia-Jung Changfile, normally runs at boot 486f2d50c0SGarrett Wollmantime. 49b35e435fSRuslan Ermilov.Sh NOTES 506f2d50c0SGarrett WollmanThe YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons) 516f2d50c0SGarrett Wollmandomain name does not necessarily have anything to do with the Domain 526f2d50c0SGarrett WollmanName System domain name, although they are often set equal for administrative 536f2d50c0SGarrett Wollmanconvenience. 546f2d50c0SGarrett Wollman.Sh SEE ALSO 55224359b5SJoel Dahl.Xr getdomainname 3 , 56224359b5SJoel Dahl.Xr rc.conf 5 576f2d50c0SGarrett Wollman.Sh HISTORY 586f2d50c0SGarrett WollmanThe 596f2d50c0SGarrett Wollman.Nm 606f2d50c0SGarrett Wollmancommand appeared in 614a70bdf9SRuslan Ermilov.Fx 1.1 , 624a70bdf9SRuslan Ermilovbased on a similar command in 636f2d50c0SGarrett Wollman.Tn SunOS . 64