Copyright (c) 1999, Sun Microsystems, Inc. Copyright 1989 AT&T All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
makedbm [-b] [-l] [-s] [-E] [-i yp_input_file] [-o yp_output_name] [-d yp_domain_name] [-m yp_master_name] [-S delimiter] [-D number_of_delimiters] infile outfile
makedbm [-u dbmfilename]
The makedbm utility takes the infile and converts it to a pair of files in ndbm format (see ndbm(3C)), namely outfile.pag and outfile.dir. Each line of the input file is converted to a single dbm record. All characters up to the first TAB or SPACE form the key, and the rest of the line is the data. If a line ends with `\e' (backslash), the data for that record is continued on to the next line. makedbm does not treat `#' (pound-sign) as a special character.
Because makedbm is mainly used in generating dbm files for the NIS name service, it generates a special entry with the key yp_last_modified, which is the date of infile (or the current time, if infile is `-'). The entries that have keys with the prefix yp_ are interpreted by NIS server utilities.
The following options are supported: -b
Insert the YP_INTERDOMAIN into the output. This key causes ypserv(8) to use DNS for host name and address lookups for hosts not found in the maps.
Create a special entry with the key yp_domain_name.
Specify number_of_delimiters to skip before forming the key.
Delimiters are escaped.
Create a special entry with the key yp_input_file.
Lower case. Convert the keys of the given map to lower case, so that, for example, host name matches succeed independent of upper or lower case distinctions.
Create a special entry with the key yp_master_name. If no master host name is specified, yp_master_name is set to the local host name.
Create a special entry with the key yp_output_name.
Secure map. Accept connections from secure NIS networks only.
Specify the delimiter to use instead of the default delimiter for forming the key.
Undo a dbm file. Prints out the file in text format, one entry per line, with a single space separating keys from values.
The following operands are supported: infile
Input file for makedbm. If infile is `-' (dash), the standard input is read.
One of two output files in ndbm format: outfile.pag and outfile.dir.
ndbm (3C), attributes (7), ypserv (8)