xref: /openbsd/usr.sbin/ypserv/makedbm/makedbm.8 (revision 133306f0)
1.\"	$OpenBSD: makedbm.8,v 1.9 2000/11/09 17:53:30 aaron Exp $
2.\"
3.\" Copyright (c) 1994-97 Mats O Jansson <moj@stacken.kth.se>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by Mats O Jansson
17.\" 4. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
21.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
24.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.Dd July 19, 1994
33.Dt MAKEDBM 8
34.Os
35.Sh NAME
36.Nm makedbm
37.Nd create a YP database
38.Sh SYNOPSIS
39.Nm makedbm
40.Fl u Ar file
41.Nm makedbm
42.Fl U Ar file
43.Nm makedbm
44.Op Fl bls
45.Op Fl i Ar yp_input_file
46.Op Fl o Ar yp_output_file
47.Op Fl d Ar yp_domain_name
48.Op Fl m Ar yp_master_name
49.Ar infile
50.Ar outfile
51.Sh DESCRIPTION
52.Nm
53is the utiliy in YP that creates the database file containing the YP map.
54The databse format is a slightly modified version of ndbm.
55.Pp
56The options are as follows:
57.Bl -tag -width Ds
58.It Fl u
59Dump a database to standard output.
60.It Fl U
61Same as
62.Fl u
63but also try
64.Xr db 3
65hash format.
66.It Fl b
67Interdomain.
68Include an entry in the database informing a YP server to use
69DNS to get information about unknown hosts.
70This option will only have
71effect on the two maps hosts.byname and hosts.byaddr.
72.It Fl l
73Lowercase.
74Convert all keys to lower case before adding them to the YP database.
75.It Fl s
76Secure map.
77Include an entry in the database informing
78.Xr ypxfr 8
79and
80.Xr ypserv 8
81that the YP map is going to be handled as secure.
82.It Fl i Ar yp_input_file
83Include an entry the in the map with the key YP_INPUT_FILE and the argument
84as value.
85.It Fl o Ar yp_output_file
86Include an entry the in the map with the key YP_OUTPUT_FILE and the argument
87as value.
88.It Fl d Ar yp_domain_name
89Include an entry the in the map with the key YP_DOMAIN_NAME and the argument
90as value.
91.It Fl m Ar yp_master_name
92Include an entry the in the map with the key YP_MASTER_NAME and the argument
93as value.
94.El
95.Sh SEE ALSO
96.Xr db 3 ,
97.Xr yp 8 ,
98.Xr ypserv 8 ,
99.Xr ypxfr 8
100.Sh AUTHOR
101Mats O Jansson <moj@stacken.kth.se>
102