xref: /openbsd/usr.sbin/ypserv/makedbm/makedbm.8 (revision a6445c1d)
1.\"	$OpenBSD: makedbm.8,v 1.18 2013/07/16 11:13:34 schwarze 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.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
16.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.Dd $Mdocdate: July 16 2013 $
28.Dt MAKEDBM 8
29.Os
30.Sh NAME
31.Nm makedbm
32.Nd create a YP database
33.Sh SYNOPSIS
34.Nm makedbm
35.Bk -words
36.Op Fl blsUu
37.Op Fl d Ar yp_domain_name
38.Op Fl i Ar yp_input_file
39.Op Fl m Ar yp_master_name
40.Op Fl o Ar yp_output_file
41.Ar infile outfile
42.Ek
43.Sh DESCRIPTION
44.Nm
45is the utility in YP that creates the database file containing the YP map.
46The database format is a slightly modified version of ndbm.
47.Pp
48The options are as follows:
49.Bl -tag -width Ds
50.It Fl b
51Interdomain.
52Include an entry in the database informing a YP server to use
53DNS to get information about unknown hosts.
54This option will only have
55effect on the two maps hosts.byname and hosts.byaddr.
56.It Fl d Ar yp_domain_name
57Include an entry in the map with the key YP_DOMAIN_NAME and the argument
58as value.
59.It Fl i Ar yp_input_file
60Include an entry in the map with the key YP_INPUT_FILE and the argument
61as value.
62.It Fl l
63Lowercase.
64Convert all keys to lower case before adding them to the YP database.
65.It Fl m Ar yp_master_name
66Include an entry in the map with the key YP_MASTER_NAME and the argument
67as value.
68.It Fl o Ar yp_output_file
69Include an entry in the map with the key YP_OUTPUT_FILE and the argument
70as value.
71.It Fl s
72Secure map.
73Include an entry in the database informing
74.Xr ypxfr 8
75and
76.Xr ypserv 8
77that the YP map is going to be handled as secure.
78.It Fl U
79Same as
80.Fl u
81but also try
82.Xr db 3
83hash format.
84.It Fl u
85Dump a database to standard output.
86.El
87.Sh SEE ALSO
88.Xr db 3 ,
89.Xr Makefile.yp 8 ,
90.Xr yp 8 ,
91.Xr ypserv 8 ,
92.Xr ypxfr 8
93.Sh AUTHORS
94.An Mats O Jansson Aq Mt moj@stacken.kth.se
95