1*5b20b0d3Smycroft.\" Copyright (c) 1983, 1988, 1990, 1993 2*5b20b0d3Smycroft.\" The Regents of the University of California. All rights reserved. 3355265a8Sderaadt.\" 4355265a8Sderaadt.\" Redistribution and use in source and binary forms, with or without 5355265a8Sderaadt.\" modification, are permitted provided that the following conditions 6355265a8Sderaadt.\" are met: 7355265a8Sderaadt.\" 1. Redistributions of source code must retain the above copyright 8355265a8Sderaadt.\" notice, this list of conditions and the following disclaimer. 9355265a8Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 10355265a8Sderaadt.\" notice, this list of conditions and the following disclaimer in the 11355265a8Sderaadt.\" documentation and/or other materials provided with the distribution. 12355265a8Sderaadt.\" 3. All advertising materials mentioning features or use of this software 13355265a8Sderaadt.\" must display the following acknowledgement: 14355265a8Sderaadt.\" This product includes software developed by the University of 15355265a8Sderaadt.\" California, Berkeley and its contributors. 16355265a8Sderaadt.\" 4. Neither the name of the University nor the names of its contributors 17355265a8Sderaadt.\" may be used to endorse or promote products derived from this software 18355265a8Sderaadt.\" without specific prior written permission. 19355265a8Sderaadt.\" 20355265a8Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21355265a8Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22355265a8Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23355265a8Sderaadt.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24355265a8Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25355265a8Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26355265a8Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27355265a8Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28355265a8Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29355265a8Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30355265a8Sderaadt.\" SUCH DAMAGE. 31355265a8Sderaadt.\" 32*5b20b0d3Smycroft.\" from: @(#)hostname.1 8.1 (Berkeley) 5/31/93 33*5b20b0d3Smycroft.\" $Id: domainname.1,v 1.4 1994/09/22 09:42:47 mycroft Exp $ 34355265a8Sderaadt.\" 35*5b20b0d3Smycroft.Dd May 31, 1993 36355265a8Sderaadt.Dt DOMAINNAME 1 37355265a8Sderaadt.Os BSD 4.2 38355265a8Sderaadt.Sh NAME 39355265a8Sderaadt.Nm domainname 40*5b20b0d3Smycroft.Nd set or print YP domain of current host system 41355265a8Sderaadt.Sh SYNOPSIS 42355265a8Sderaadt.Nm domainname 430eee1ab6Sjtc.Op Ar name-of-domain 44355265a8Sderaadt.Sh DESCRIPTION 450eee1ab6Sjtc.Nm Domainname 46*5b20b0d3Smycroftprints the YP domain name of the current host. The super-user can 47355265a8Sderaadtset the domainname by supplying an argument; this is usually done in the 48355265a8Sderaadtnetwork initialization script 49355265a8Sderaadt.Pa /etc/netstart , 50355265a8Sderaadtnormally run at boot 51355265a8Sderaadttime. 52355265a8Sderaadt.Sh SEE ALSO 530eee1ab6Sjtc.Xr hostname 1 , 540eee1ab6Sjtc.Xr getdomainname 2 , 550eee1ab6Sjtc.Xr setdomainname 2 56355265a8Sderaadt.Sh HISTORY 57355265a8SderaadtThe 58355265a8Sderaadt.Nm domainname 59*5b20b0d3Smycroftcommand is derived from the 60*5b20b0d3Smycroft.Nm hostname 61*5b20b0d3Smycroftcommand, which appeared in 62355265a8Sderaadt.Bx 4.2 . 63