Assume that a text file /var/yp/mymap.asc was created with an editor or a shell script on the master. You want to create an NIS map from this file and locate it in the home-domain subdirectory. To do this, type the following on the master server.
# cd /var/yp # makedbm mymap.asc home-domain/mymap
The mymap map now exists on the master server in the directory home-domain. To distribute the new map to slave servers run ypxfr.