xref: /netbsd/bin/domainname/domainname.1 (revision 0576e4b0)
1*0576e4b0Sjmmv.\"	$NetBSD: domainname.1,v 1.15 2004/06/15 14:08:33 jmmv Exp $
249f0ad86Scgd.\"
35b20b0d3Smycroft.\" Copyright (c) 1983, 1988, 1990, 1993
45b20b0d3Smycroft.\"	The Regents of the University of California.  All rights reserved.
5355265a8Sderaadt.\"
6355265a8Sderaadt.\" Redistribution and use in source and binary forms, with or without
7355265a8Sderaadt.\" modification, are permitted provided that the following conditions
8355265a8Sderaadt.\" are met:
9355265a8Sderaadt.\" 1. Redistributions of source code must retain the above copyright
10355265a8Sderaadt.\"    notice, this list of conditions and the following disclaimer.
11355265a8Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright
12355265a8Sderaadt.\"    notice, this list of conditions and the following disclaimer in the
13355265a8Sderaadt.\"    documentation and/or other materials provided with the distribution.
14b5b29542Sagc.\" 3. Neither the name of the University nor the names of its contributors
15355265a8Sderaadt.\"    may be used to endorse or promote products derived from this software
16355265a8Sderaadt.\"    without specific prior written permission.
17355265a8Sderaadt.\"
18355265a8Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19355265a8Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20355265a8Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21355265a8Sderaadt.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22355265a8Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23355265a8Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24355265a8Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25355265a8Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26355265a8Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27355265a8Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28355265a8Sderaadt.\" SUCH DAMAGE.
29355265a8Sderaadt.\"
3049f0ad86Scgd.\"	@(#)hostname.1	8.1 (Berkeley) 5/31/93
31355265a8Sderaadt.\"
325b20b0d3Smycroft.Dd May 31, 1993
33355265a8Sderaadt.Dt DOMAINNAME 1
34f1247650Sgarbled.Os
35355265a8Sderaadt.Sh NAME
36355265a8Sderaadt.Nm domainname
375b20b0d3Smycroft.Nd set or print YP domain of current host system
38355265a8Sderaadt.Sh SYNOPSIS
39c3872193Senami.Nm
400eee1ab6Sjtc.Op Ar name-of-domain
41355265a8Sderaadt.Sh DESCRIPTION
42c3872193Senami.Nm
4393480d2eSlukemprints the
4493480d2eSlukem.Tn YP
4514dfaa4bSwizdomain name of the current host.
4614dfaa4bSwizThe super-user can set the domain name by supplying an argument;
4714dfaa4bSwizthis is usually done in the network initialization script
48f7df6a37Smason.Pa /etc/rc.d/network ,
49355265a8Sderaadtnormally run at boot
50355265a8Sderaadttime.
51355265a8Sderaadt.Sh SEE ALSO
520eee1ab6Sjtc.Xr hostname 1 ,
53c6850b36Spk.Xr getdomainname 3 ,
54c6850b36Spk.Xr setdomainname 3
55355265a8Sderaadt.Sh HISTORY
56355265a8SderaadtThe
57c3872193Senami.Nm
5823e6aab1Sjtcutility is derived from the
595b20b0d3Smycroft.Nm hostname
6023e6aab1Sjtcutility, which appeared in
61355265a8Sderaadt.Bx 4.2 .
626b78d395SmycroftThe
63c3872193Senami.Nm
6423e6aab1Sjtcutility appeared in
656b78d395Smycroft.Nx 0.8 .
66