386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 22 Apr 1991 17:45:42 +0000 (09:45 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 22 Apr 1991 17:45:42 +0000 (09:45 -0800)
Work on file usr/othersrc/share/doc/smm/11.named/build.me
Work on file usr/othersrc/share/doc/smm/11.named/files.me
Work on file usr/othersrc/share/doc/smm/11.named/named.boot.secondary
Work on file usr/othersrc/share/doc/smm/11.named/setup.me
Work on file usr/othersrc/share/doc/smm/11.named/manage.me

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/othersrc/share/doc/smm/11.named/build.me [new file with mode: 0644]
usr/othersrc/share/doc/smm/11.named/files.me [new file with mode: 0644]
usr/othersrc/share/doc/smm/11.named/manage.me [new file with mode: 0644]
usr/othersrc/share/doc/smm/11.named/named.boot.secondary [new file with mode: 0644]
usr/othersrc/share/doc/smm/11.named/setup.me [new file with mode: 0644]

diff --git a/usr/othersrc/share/doc/smm/11.named/build.me b/usr/othersrc/share/doc/smm/11.named/build.me
new file mode 100644 (file)
index 0000000..1291ab9
--- /dev/null
@@ -0,0 +1,113 @@
+.\" Copyright (c) 1986, 1988 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)build.me    6.5 (Berkeley) 4/22/91
+.\"
+.sh 1 "Building A System with a Name Server"
+.pp
+BIND is comprised of two parts.  One is the user interface called the 
+\fIresolver\fP
+which consists of a group of routines that reside in the C library 
+\fI/lib/libc.a\fP.
+Second is the actual server called \fInamed\fP.
+This is a daemon that runs in the background and services queries on a 
+given network port. The standard port for UDP and TCP is specified in 
+\fI/\|etc/\|services\fP.
+.sh 2 "Resolver Routines in libc"
+.pp
+When building your 4.3BSD system you may either
+build the C library to use the name server resolver routines 
+or use the host table lookup routines to do host name and address resolution.
+The default resolver for 4.3BSD uses the name server.
+.pp
+Building the C library to use the name server changes the way
+\fIgethostbyname\fP\|(3N), \fIgethostbyaddr\fP\|(3N), and \fIsethostent\fP\|(3N)
+do their functions.
+The name server renders \fIgethostent\fP\|(3N) obsolete,
+since it has no concept of a next line in the database.
+These library calls are built with the resolver routines needed
+to query the name server.
+.pp
+The \fIresolver\fP is comprised of a few routines that build query
+packets and exchange them with the name server.
+.pp
+Before building the C library, set the variable \fIHOSTLOOKUP\fP
+equal to \fInamed\fP in \fI/\|usr/\|src/\|lib/\|libc/\|Makefile\fP. 
+You then make and install the C library and compiler and then
+compile the rest of the 4.3BSD system.  For more information
+see section 6.6 of ``Installing and Operating 4.3BSD on the VAX\(dd''.
+.(f
+\(ddVAX is a Trademark of Digital Equipment Corporation
+.)f
+
+.sh 2 "The Name Service"
+.pp
+The basic function of the name server is to provide information about network
+objects by answering queries.  The specifications for this name server
+are defined in RFC1034, RFC1035 and RFC974.
+These documents can be found in \fI/usr/src/etc/named/doc\fP in 4.3BSD 
+or \fIftp\fPed from nic.ddn.mil. It is also recommended that 
+you read the related
+manual pages,  \fInamed\fP\|(8),
+\fIresolver\fP\|(3),
+and \fIresolver\fP\|(5).
+.pp
+The advantage of using a name server over the host table lookup for
+host name resolution is to avoid the need 
+for a single centralized clearinghouse for all names.
+The authority for this information can be delegated 
+to the different organizations on the network responsible for it.
+.pp
+The host table lookup routines require that the master file
+for the entire network be maintained at a central location by a few people.
+This works fine for small networks where there are only a few machines and the
+different organizations responsible for them cooperate.
+But this does not work well for large networks where machines
+cross organizational boundaries.
+.pp
+With the name server, the network can be broken into a hierarchy of domains. 
+The name space is organized as a tree according to organizational or
+administrative boundaries. 
+Each node, called a \fIdomain\fP, is given a label, and the name of the
+domain is the concatenation of all the labels of the domains from
+the root to the current domain, listed from right to left separated by dots.
+A label need only be unique within its domain.
+The whole space is partitioned into several areas called \fIzones\fP,
+each starting at a domain and extending down to the leaf domains or to
+domains where other zones start.  
+Zones usually represent administrative boundaries.
+An example of a host address for a host at the University of California,
+Berkeley would look as follows:
+.(b
+\fImonet\fP\|\fB.\fP\|\fIBerkeley\fP\|\fB.\fP\|\fIEDU\fP
+.)b
+The top level domain for educational organizations is EDU;
+Berkeley is a subdomain of EDU and monet is the name of the host.
diff --git a/usr/othersrc/share/doc/smm/11.named/files.me b/usr/othersrc/share/doc/smm/11.named/files.me
new file mode 100644 (file)
index 0000000..2cbe3e4
--- /dev/null
@@ -0,0 +1,496 @@
+.\" Copyright (c) 1986, 1988 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)files.me    6.10 (Berkeley) 4/22/91
+.\"
+.sh 1 "Files
+.pp
+The name server uses several files to load its data base.
+This section covers the files and their formats needed for \fInamed\fP.
+.sh 2 "Boot File"
+.pp
+This is the file that is first read when \fInamed\fP starts up.
+This tells the server what type of server it is,
+which
+zones it has authority over and where to get its initial data.
+The default location for this file is \fI/\|etc\|/\|named\|.\|boot\fP\|.
+However this can be changed
+by setting the \fIBOOTFILE\fP variable when you compile \fInamed\fP 
+or by specifying
+the location on the command line when \fInamed\fP is started up.
+.sh 3 "Domain"
+.pp
+A default domain may be specified for the nameserver
+using a line such as
+.(b l
+.ta 0.5i +\w`secondary   `u +\w`berkeley.edu   `u +.5i +.5i
+\fIdomain      Berkeley\fP\fB\|.\|\fP\fIEdu\fP
+.)b
+.re
+The name server uses this information when it receives a query for a
+name without a ``\fB.\fP'' that is not known.
+When it receives one of these queries, it appends the name in the second
+field to the query name.
+This is an obsolete facility which will be removed from future releases.
+.sh 3 "Directory"
+.pp
+The directory line specifies the directory in which the nameserver should
+run, allowing the other file names in the boot file to use relative
+path names.
+.(b l
+.ta 0.5i +\w`secondary   `u +\w`berkeley.edu   `u +.5i +.5i
+\fIdirectory   /usr/local/domain\fP
+.)b
+.re
+If you have more than a couple of named files to be maintained,
+you may wish to place the named files in a directory such as
+/usr/local/domain and adjust the directory command properly.
+The main purposes of this command are to make sure named is
+in the proper directory when trying to include files by relative
+path names with $Include and to allow named to run in a location
+that is reasonable to dump core if it feels the urge.
+.sh 3 "Primary Master"
+.pp
+The line in the boot file that designates the server as a primary server 
+for a zone looks as follows:
+.(b l
+.ta 0.5i +\w`secondary   `u +\w`berkeley.edu   `u +.5i +.5i
+\fIprimary     Berkeley\fP\fB\|.\|\fP\fIEdu    ucbhosts\fP
+.)b
+.re
+The first field specifies that the server is a primary one for the zone 
+stated in the second field.
+The third field is the name of the file from which the data is read.
+.sh 3 "Secondary Master"
+.pp
+The line for a secondary server is similar to the primary except
+that it lists addresses of other servers (usually primary servers)
+from which the zone data will be obtained.
+.(b l
+.ta 0.5i +\w`secondary   `u +\w`berkeley.edu   `u +.5i +.5i
+\fIsecondary   Berkeley\fP\fB\|.\|\fP\fIEdu    128\fP\fB.\fP\fI32\fP\fB.\fP\fI0\fP\fB.\fP\fI10 \fP\fI128\fP\fB.\fP\fI32\fP\fB.\fP\fI0\fP\fB.\fP\fI4\fP \fIucbhosts.bak\fP
+.)b
+.re
+The first field specifies that the server is a secondary master server for
+the zone stated in the second field.
+The two network addresses 
+specify the name servers that are primary for the zone.
+The secondary server gets its data across the network from the listed servers.
+Each server is tried in the order listed until it successfully receives the data
+from a listed server.
+If a filename is present after the list of primary servers, data for the zone
+will be dumped into that file as a backup.
+When the server is first started, the data are loaded from the backup file
+if possible, and a primary server is then consulted to check that the zone
+is still up-to-date.
+.sh 3 "Caching Only Server"
+.pp
+You do not need a special line to designate that a server is a caching server.
+What denotes a caching only server is the absence of authority
+lines, such as \fIsecondary\fP or \fIprimary\fP in the boot file.
+.pp
+All servers should have a line as follows in the boot file to
+prime the name servers cache:
+.(b l
+\fIcache               \fP\fB.\fP\fI   root\fP\fB.\fP\fIcache\fP
+.)b
+All cache files listed will be read in at named boot time and
+any values still valid will be reinstated in the cache and the root
+nameserver information in the cache files will always be used.
+For information on cache file see section on \fICache Initialization\fP.
+.sh 3 "Forwarders"
+Any server can make use of \fIforwarders\fP.  A \fIforwarder\fP is another
+server capable of processing recursive queries that is willing to try
+resolving queries on behalf of other systems.  The \fIforwarders\fP
+command specifies forwarders by internet address as follows:
+.(b l
+\fIforwarders          \fI128\fP\fB.\fP\fI32\fP\fB.\fP\fI0\fP\fB.\fP\fI10      \fP\fI128\fP\fB.\fP\fI32\fP\fB.\fP\fI0\fP\fB.\fP\fI4\fP
+.)b
+.re
+There are two main reasons
+for wanting to do so.  First, the other systems may not have full network
+access and may be prevented from sending any IP packets into the rest of
+the network and therefore must rely on a forwarder which does have
+access to the full net.  The second reason is that the forwarder sees
+a union of all queries as they pass through his server and therefore he
+builds up a very rich cache of data compared to the cache in a typical
+workstation nameserver.  In effect, the \fIforwarder\fP becomes a meta-cache
+that all hosts can benefit from, thereby reducing the total number of queries
+from that site to the rest of the net.
+.sh 3 "Slave Mode"
+.pp
+Slave mode is used if the use of forwarders is the only possible way
+to resolve queries due to lack of full net access or if you wish to prevent
+the nameserver from using other than the listed forwarders.
+Slave mode is activated by placing the simple command
+.(b l
+\fIslave\fP
+.)b
+in the bootfile.  If \fIslave\fP is used, then you must specify forwarders.
+When in slave mode, the server will forward each query to each of the
+forwarders until an answer is found or the list of forwarders is
+exhausted.
+.sh 3 "Remote Server"
+.pp
+To set up a host that will use a remote server instead of a local
+server to answer queries, the file \fI/\|etc/\|resolv\|.\|conf\fP 
+needs to be created.
+This file designates the name servers on the network that should 
+be sent queries.
+It is not advisable to create this file if you have a local server
+running.  If this file exists it is read almost every time
+\fIgethostbyname\|()\fP or \fIgethostbyaddr\|()\fP is called.
+.sh 2 "Cache Initialization"
+.sh 3 root.cache
+.pp
+The name server needs to know the servers that are the authoritative 
+name servers for the root domain of the network.
+To do this we have to prime the name server's cache with the addresses
+of these higher authorities.  
+The location of this file is specified in the boot file.
+This file uses the Standard Resource Record Format (aka. Masterfile Format)
+covered further on
+in this paper.
+.sh 2 "Domain Data Files"
+.pp
+There are three standard files for specifying the data for a 
+domain.  These are \fInamed\|.\|local\fP, \fIhosts\fP and \fIhost\|.\|rev\fP.
+These files use the Standard Resource Record Format covered later
+in this paper.
+.sh 3 named\|.\|local
+.pp
+This file specifies the address for the local loopback interface,
+better known as \fIlocalhost\fP with the network address 127.0.0.1.
+The location of this file is specified in the boot file.
+.sh 3 hosts
+.pp
+This file contains all the data about the machines in this zone.
+The location of this file is specified in the boot file.
+.sh 3 hosts\|.\|rev
+.pp
+This file specifies the IN-ADDR\|.\|ARPA domain.
+This is a special domain for allowing address to name mapping.
+As internet host addresses do not fall within domain boundaries,
+this special domain was formed to allow inverse mapping.
+The IN-ADDR\|.\|ARPA domain has four
+labels preceding it. These labels correspond to the 4 octets of
+an Internet address. 
+All four octets must be specified even if an octets is zero.
+The Internet address 128.32.0.4 is located in the domain
+4\|.\|0\|.\|32\|.\|128\|.\|IN-ADDR\|.\|ARPA.
+This reversal of the address is awkward to read but allows 
+for the natural grouping of hosts in a network.
+.sh 2 "Standard Resource Record Format"
+.pp
+The records in the name server data files are called resource records.
+The Standard Resource Record Format (RR) is specified in RFC1035.
+The following is a general description of these records:
+.TS
+l l l l l.
+\fI{name}      {ttl}   addr-class      Record Type     Record Specific data\fP 
+.TE
+Resource records have a standard format shown above.
+The first field is always the name of the domain record
+and it must always start in column 1.
+For some RR's the name may be left blank;
+in that case it takes on the name of the previous RR.
+The second field is an optional time to live field.
+This specifies how long this data will be stored in the data base.
+By leaving this field blank the default time to live is specified
+in the \fIStart Of Authority\fP resource record (see below).
+The third field is the address class; currently, only one class is supported:
+\fIIN\fP for internet addresses and other information.
+The fourth field states the type of the resource record.
+The fields after that are dependent on the type of the RR.
+Case is preserved in names and data fields when loaded into the name server.
+All comparisons and lookups in the name server data base are case insensitive.
+.bl
+.b
+The following characters have special meanings:
+.ip \fB.\fP
+A free standing dot in the name field refers to the current domain.
+.ip @
+A free standing @ in the name field denotes the current origin.
+.ip "\fB.\|.\fP"
+Two free standing dots represent the null domain name of the root when used in 
+the name field.
+.ip "\\\X"
+Where X is any character other than a digit (0-9),
+quotes that character so that its special meaning does not apply.
+For example, ``\e.'' can be used to place a dot character in a label.
+.ip "\\\DDD"
+Where each D is a digit, is the octet corresponding to the
+decimal number described by DDD.  
+The resulting octet is assumed to be text and 
+is not checked for special meaning.
+.ip "( )"
+Parentheses are used to group data that crosses a line.  
+In effect, line terminations are not recognized within parentheses.
+.ip ";"
+Semicolon starts a comment; the remainder of the line is ignored.
+.ip "*"
+An asterisk signifies wildcarding.
+.pp
+Most resource records will have the current origin appended to names if they
+are not terminated by a ``\fB.\fP''.  
+This is useful for appending the current domain name to the data,
+such as machine names, but may cause problems where you do not want 
+this to happen.
+A good rule of thumb is that, if the name is not in the domain for which
+you are creating the data file, end the name with a ``\fB.\fP''.
+.sh 3 $INCLUDE
+.pp
+An include line begins with $INCLUDE, starting in column 1,
+and is followed by a file name.
+This feature is
+particularly useful for separating different types of data into multiple files.
+An example would be:
+.(b l
+$INCLUDE /usr/named/data/mailboxes
+.)b
+The line would be interpreted as a request to load the file
+\fI/usr/named/data/mailboxes\fP.
+The $INCLUDE command does not cause data to be loaded into a
+different zone or tree. This is simply a way to allow data for a
+given zone to be organized in separate files.  For example,
+mailbox data might be kept separately from host data using this
+mechanism.
+.sh 3 $ORIGIN
+.pp
+The origin is a way of changing the origin in a data file. 
+The line starts in column 1, and is followed by a domain origin. 
+This is useful for putting more then one domain in a data file.
+.sh 3 "SOA - Start Of Authority"
+.(b L
+.TS
+l l l l l l.
+\fIname        {ttl}   addr-class      SOA     Origin  Person in charge\fP
+@              IN      SOA     ucbvax\fB.\fPBerkeley\fB.\fPEdu\fB.\fP  kjd\fB.\fPucbvax\fB.\fPBerkeley\fB.\fPEdu\fB.\fP (
+                       1\|.\|1 ; Serial
+                       10800   ; Refresh
+                       1800    ; Retry
+                       3600000 ; Expire
+                       86400 ) ; Minimum
+.TE
+.)b
+The \fIStart of Authority, SOA,\fP record designates the start of a zone.
+The name is the name of the zone.  
+Origin is the name of the host on which this data file resides.
+Person in charge is the mailing address for the person responsible
+for the name server.
+The serial number is the version number of this data file,
+this number should be incremented whenever a change is made to the data.
+The name server cannot handle numbers over 9999 after the decimal point.
+The refresh indicates how often, in seconds, a secondary name servers
+is to check with the primary name server to see if an update is needed.
+The retry indicates how long, in seconds, a secondary server is to retry 
+after a failure to check for a refresh.
+Expire is the upper limit, in seconds, that a secondary name server
+is to use the data before it expires for lack of getting a refresh.
+Minimum is the default number of seconds to be used for the time to live
+field on resource records.
+There should only be one \fISOA\fP record per zone.
+.sh 3 "NS - Name Server"
+.TS
+l l l l l.
+\fI{name}      {ttl}   addr-class      NS      Name servers name\fP
+               IN      NS      ucbarpa\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB.\fP
+.TE
+The \fIName Server\fP record, \fINS\fP, lists a name server responsible 
+for a given domain.
+The first name field lists the domain that is serviced by 
+the listed name server.
+There should be one \fINS\fP record for each Primary Master 
+server for the domain.
+.sh 3 "A - Address"
+.TS
+l l l l l.
+\fI{name}      {ttl}   addr-class      A       address\fP
+ucbarpa                IN      A       128\fB.\fP32\fB.\fP0\fB.\fP4
+               IN      A       10\fB.\fP0\fB.\fP0\fB.\fP78
+.TE
+The \fIAddress\fP record, \fIA\fP, lists the address for a given machine. 
+The name field is the machine name and the address is the network address.
+There should be one \fIA\fP record for each address of the machine. 
+.sh 3 "HINFO - Host Information"
+.TS
+l l l l l l. 
+\fI{name}      {ttl}   addr-class      HINFO   Hardware        OS\fP
+               IN      HINFO   VAX-11/780      UNIX
+.TE
+\fIHost Information\fP resource record, \fIHINFO\fP, is for host specific data.
+This lists the hardware and operating system that are running at
+the listed host.
+It should be noted that only a single space separates the hardware info
+and the operating system info. 
+If you want to include a space in the machine name you must quote the name.
+There should be one \fIHINFO\fP record for each host.
+.(b L
+.sh 3 "WKS - Well Known Services"
+.TS
+l l l l l l l.
+\fI{name}      {ttl}   addr-class      WKS     address protocol        list of services\fP
+               IN      WKS     128\fB.\fP32\fB.\fP0\fB.\fP10   UDP     who route timed domain
+               IN      WKS     128\fB.\fP32\fB.\fP0\fB.\fP10   TCP     ( echo telnet
+                                               discard sunrpc sftp
+                                               uucp-path systat daytime
+                                               netstat qotd nntp
+                                               link chargen ftp 
+                                               auth time whois mtp
+                                               pop rje finger smtp
+                                               supdup hostnames 
+                                               domain
+                                               nameserver )
+.TE
+The \fIWell Known Services\fP record, \fIWKS\fP, 
+describes the well known services
+supported by a particular protocol at a specified address.
+The list of services and port numbers come from the list of services 
+specified in \fI/etc/services.\fP
+There should be only one \fIWKS\fP record per protocol per address.
+.)b
+.sh 3 "CNAME - Canonical Name"
+.TS
+l l l l l. 
+\fIaliases     {ttl}   addr-class      CNAME   Canonical name\fP
+ucbmonet               IN      CNAME   monet
+.TE
+\fICanonical Name\fP resource record, \fICNAME\fP, specifies an 
+alias for a canonical name.
+An alias should be the only record associated with the alias name;
+all other resource records should be
+associated with the canonical name and not with the alias.
+Any resource records that include a domain name as their value (e.g. NS or MX)
+should list the canonical name, not the alias.
+.sh 3 "PTR - Domain Name Pointer"
+.TS
+l l l l l. 
+\fIname        {ttl}   addr-class      PTR     real name\fP
+7.0            IN      PTR     monet\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+.TE
+A \fIDomain Name Pointer\fP record, \fIPTR\fP, allows special names 
+to point to some other location in the domain.  
+The above example of a \fIPTR\fP record is used in setting up reverse pointers
+for the special \fIIN-ADDR\fP\fB\|.\|\fP\fIARPA\fP domain. This line is from the example
+\fIhosts.rev\fP file.
+\fIPTR\fP names should be unique to the zone.
+.sh 3 "MB - Mailbox"
+.TS
+l l l l l. 
+\fIname        {ttl}   addr-class      MB      Machine \fP
+miriam         IN      MB      vineyd\fB.\fPDEC\fB.\fPCOM\fB.\fP
+.TE
+\fIMB\fP is the \fIMailbox\fP record.
+This lists the machine where a user wants to receive mail.
+The name field is the users login; the machine field denotes the machine
+to which mail is to be delivered.
+Mail Box names should be unique to the zone.
+(These records are currently for experimental use only.)
+.sh 3 "MR - Mail Rename Name"
+.TS
+l l l l l. 
+\fIname        {ttl}   addr-class      MR      corresponding MB\fP
+Postmistress           IN      MR      miriam 
+.TE
+\fIMail Rename, MR,\fP can be used to list aliases for a user.
+The name field lists the alias for the name listed in the fourth field,
+which should have a corresponding \fIMB\fP record.
+(These records are currently for experimental use only.)
+.sh 3 "MINFO - Mailbox Information"
+.TS
+l l l l l l. 
+\fIname        {ttl}   addr-class      MINFO   requests        maintainer\fP
+BIND           IN      MINFO   BIND-REQUEST    kjd\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+.TE
+\fIMail Information\fP record, \fIMINFO\fP, creates a mail 
+group for a mailing list.
+This resource record is usually associated with a mail group \fIMail Group\fP,
+but may be used with a \fIMail Box\fP record.
+The \fIname\fP specifies the name of the mailbox.
+The \fIrequests\fP field
+is where mail such as requests to be added to a mail group should be sent.
+The \fImaintainer\fP is a mailbox that should receive error messages.
+This is particularly appropriate for mailing lists when
+errors in members names should be reported to a person other than
+the sender.
+(These records are currently for experimental use only.)
+.sh 3 "MG - Mail Group Member"
+.TS
+l l l l l l. 
+\fI{mail group name}   {ttl}   addr-class      MG      member name\fP
+               IN      MG      Bloom
+.TE
+\fIMail Group, MG\fP lists members of a mail group.
+(These records are currently for experimental use only.)
+
+An example for setting up a mailing list is as follows:
+.TS
+l l l l l l. 
+Bind           IN      MINFO   Bind-Request    kjd\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+               IN      MG      Ralph\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+               IN      MG      Zhou\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+               IN      MG      Painter\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+               IN      MG      Riggle\fB\|.\|\fPBerkeley\fB\|.\|\fPEdu\fB\|.\fP
+               IN      MG      Terry\fB\|.\|\fPpa\fB\|.\|\fPXerox\fB\|.\|\fPCom\fB\|.\fP
+.TE
+.sh 3 "MX - Mail Exchanger"
+.TS
+l l l l l l. 
+\fIname        {ttl}   addr-class      MX      preference value        mailer exchanger\fP
+Munnari\fB\|.\|\fPOZ\fB\|.\|\fPAU\fB\|.\fP             IN      MX      0       Seismo\fB\|.\|\fPCSS\fB\|.\|\fPGOV\fB\|.\fP
+*\fB\|.\|\fPIL\fB\|.\fP                IN      MX      0       RELAY\fB\|.\|\fPCS\fB\|.\|\fPNET\fB\|.\fP
+.TE
+\fIMail Exchanger\fP records, \fIMX\fP, are used to specify a
+machine that knows how to deliver
+mail to a machine that is not directly connected to the network.
+In the first example, above, Seismo\fB\|.\|\fPCSS\fB\|.\|\fPGOV\fB\|.\fP is a mail gateway 
+that knows how to 
+deliver mail to Munnari\fB\|.\|\fPOZ\fB\|.\|\fPAU\fB\|.\fP but other machines 
+on the network can not deliver mail directly to Munnari. 
+These two machines may have a private connection or use a different
+transport medium.
+The preference value is the order that a mailer should follow
+when there is more then one way to deliver mail to a single machine.
+See RFC974 for more detailed information.
+.pp
+Wildcard names containing the character ``*'' may be
+used for mail routing with \fIMX\fP records.
+There are likely to be servers on the network
+that simply state that any mail to a domain is to be routed through a relay. 
+Second example, above, all mail to hosts in the domain IL is routed through RELAY.CS.NET.
+This is done by creating a wildcard resource record,
+which states that *.IL has an \fIMX\fP
+of RELAY.CS.NET.  
+.sh 2 "Sample Files"
+.pp
+The following section contains sample files for the name server.
+This covers example boot files for the different types of servers
+and example domain data base files.
diff --git a/usr/othersrc/share/doc/smm/11.named/manage.me b/usr/othersrc/share/doc/smm/11.named/manage.me
new file mode 100644 (file)
index 0000000..0e65947
--- /dev/null
@@ -0,0 +1,243 @@
+.\" Copyright (c) 1986, 1988 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)manage.me   6.9 (Berkeley) 4/22/91
+.\"
+.sh 1 "Domain Management"
+.pp
+This section contains information for starting, 
+controlling and debugging \fInamed\fP.
+.sh 2 /etc/rc.local
+.pp
+The hostname should be set to the full domain style name in \fI/etc/rc.local\fP
+using \fIhostname\|(1)\fP.
+The following entry should be added to \fI/etc/rc.local\fP to start
+up \fInamed\fP at system boot time:
+.(b l 
+\fIif [ -f /etc/named ]; then
+       /etc/named\fP [options] \fI& echo -n ' named'   >/dev/console\fP
+\fIfi\fP
+.)b
+This usually directly follows the lines that start \fIsyslogd\fP.
+\fBDo Not\fP attempt to run \fInamed\fP from \fIinetd\fP.
+This will
+continuously restart the name server and defeat the purpose of having a cache.
+.sh 2 /etc/named.pid
+.pp
+When \fInamed\fP is successfully started up it writes its process id
+into the file \fI/etc/named.pid\fP.  This is useful to programs
+that want to send signals to \fInamed\fP. The name of this file may be changed
+by defining \fIPIDFILE\fP to the new name when compiling \fInamed\fP.
+.sh 2 /etc/hosts
+.pp
+The \fIgethostbyname\|()\fP library call can detect if \fInamed\fP is running.
+If it is determined that \fInamed\fP is not running it will look in
+\fI/etc/hosts\fP to resolve an address.  
+This option was added to allow \fIifconfig\|(8C)\fP to configure the machines
+local interfaces and to enable a system manager to access the network 
+while the system is in single user mode.
+It is advisable to put the local machines interface addresses and a couple of 
+machine names and address in 
+\fI/etc/hosts\fP so the system manager can rcp files from another machine
+when the system is in single user mode.
+The format of \fI/etc/host\fP has not changed. See \fIhosts\|(5)\fP
+for more information.
+Since the process of reading \fI/etc/hosts\fP is slow, 
+it is not advised to use this option when the system is in multi user mode.
+
+.sh 2 Signals
+.pp
+There are several signals that can be sent to the \fInamed\fP process 
+to have it do tasks without restarting the process.
+.sh 3 Reload
+.pp
+SIGHUP -
+Causes \fInamed\fP to read \fInamed.boot\fP and reload the database.
+All previously cached data is lost.
+This is useful when you have made a change to a data file 
+and you want \fInamed\fP\|'s internal database to reflect the change.
+.sh 3 Debugging
+.pp
+When \fInamed\fP is running incorrectly, look first in 
+\fI/usr/adm/messages\fP and check for any messages logged by \fIsyslog\fP.
+Next send it a signal to see what is happening.
+.pp
+SIGINT -
+Dumps the current data base and cache to
+\fI/usr/\|tmp/\|named_dump\|.\|db\fP
+This should give you an indication to whether the data base was loaded
+correctly.
+The name of the dump file may be changed
+by defining \fIDUMPFILE\fP to the new name when compiling \fInamed\fP.
+
+\fINote:\fP the following two signals only work when \fInamed\fP is built with
+\fIDEBUG\fP defined.
+.pp
+SIGUSR1 -
+Turns on debugging. Each following USR1 increments the debug level.
+The output goes to \fI/usr/tmp/named.run\fP
+The name of this debug file may be changed
+by defining \fIDEBUGFILE\fP to the new name before compiling \fInamed\fP.
+.pp
+SIGUSR2 -
+Turns off debugging completely.
+
+For more detailed debugging, define DEBUG when compiling the resolver
+routines into \fI/lib/libc.a\fP.
+.sx 0
+.sp 2
+.ce
+.b ACKNOWLEDGEMENTS
+.pp
+Many thanks to the users at U.C. Berkeley for falling into many of the
+holes involved with integrating BIND into the system so that others
+would be spared the trauma.  I would also like to extend gratitude to
+Jim McGinness and Digital Equipment Corporation for permitting 
+me to spend most of my time on this project.
+.pp
+Ralph Campbell, Doug Kingston, Craig Partridge, Smoot Carl-Mitchell,
+Mike Muuss and everyone else on the DARPA Internet who has contributed 
+to the development of BIND.
+To the members of the original BIND project, Douglas Terry, Mark Painter,
+David Riggle and Songnian Zhou.
+.pp
+Anne Hughes, Jim Bloom and Kirk McKusick and the many others who have
+reviewed this paper giving considerable advice.
+.pp
+This work was sponsored by the Defense Advanced Research Projects Agency
+(DoD), Arpa Order No. 4871 monitored by the Naval Electronics Systems
+Command under contract No. N00039-84-C-0089.
+The views and conclusions contained in this document are those of the
+authors and should not be interpreted as representing official policies,
+either expressed or implied, of the Defense Research Projects Agency,
+of the US Government, or of Digital Equipment Corporation.
+.bp
+.ba 0
+.in 0
+.sp 2
+.ce
+.b REFERENCES
+.sp
+.nr ii 1i
+.ip [Birrell]
+Birrell, A. D.,
+Levin, R.,
+Needham, R. M.,
+and Schroeder, M.D.,
+.q "Grapevine: An Exercise in Distributed Computing."
+In
+.ul
+Comm. A.C.M. 25,
+4:260-274
+April 1982.
+.ip [RFC819]
+Su, Z.
+Postel, J.,
+.q "The Domain Naming Convention for Internet User Applications."
+.ul
+Internet Request For Comment 819
+Network Information Center,
+SRI International,
+Menlo Park, California.
+August 1982.
+.ip [RFC974]
+Partridge, C.,
+.q "Mail Routing and The Domain System."
+.ul
+Internet Request For Comment 974
+Network Information Center,
+SRI International,
+Menlo Park, California.
+February 1986.
+.ip [RFC1032]
+Stahl, M.,
+.q "Domain Administrators Guide"
+.ul
+Internet Request For Comment 1032
+Network Information Center,
+SRI International,
+Menlo Park, California.
+November 1987.
+.ip [RFC1033]
+Lottor, M.,
+.q "Domain Administrators Guide"
+.ul
+Internet Request For Comment 1033
+Network Information Center,
+SRI International,
+Menlo Park, California.
+November 1987.
+.ip [RFC1034]
+Mockapetris, P.,
+.q "Domain Names - Concept and Facilities."
+.ul
+Internet Request For Comment 1034
+Network Information Center,
+SRI International,
+Menlo Park, California.
+November 1987.
+.ip [RFC1035]
+Mockapetris, P.,
+.q "Domain Names - Implementation and Specification."
+.ul
+Internet Request For Comment 1035
+Network Information Center,
+SRI International,
+Menlo Park, California.
+November 1987.
+.ip [RFC1101]
+Mockapetris, P.,
+.q "DNS Encoding of Network Names and Other Types."
+.ul
+Internet Request For Comment 1101
+Network Information Center,
+SRI International,
+Menlo Park, California.
+April 1989.
+.ip [Terry]
+Terry, D. B.,
+Painter, M.,
+Riggle, D. W.,
+and
+Zhou, S.,
+.ul
+The Berkeley Internet Name Domain Server.
+Proceedings USENIX Summer Conference,
+Salt Lake City, Utah.
+June 1984, pages 23-31.
+.ip [Zhou]
+Zhou, S.,
+.ul
+The Design and Implementation of the Berkeley Internet Name Domain (BIND) Servers.
+UCB/CSD 84/177.
+University of California, Berkeley,
+Computer Science Division.
+May 1984.
diff --git a/usr/othersrc/share/doc/smm/11.named/named.boot.secondary b/usr/othersrc/share/doc/smm/11.named/named.boot.secondary
new file mode 100644 (file)
index 0000000..50906fc
--- /dev/null
@@ -0,0 +1,54 @@
+.\" Copyright (c) 1986, 1988 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)named.boot.secondary        6.6 (Berkeley) 4/22/91
+.\"
+.sh 4 "Secondary Master Server"
+.(b L
+.TS
+l.
+;
+; Boot file for Secondary Master Name Server
+;
+.TE
+.TS
+l l l
+l
+l l l.
+; type domain  source file or host
+;
+directory      /usr/local/domain
+secondary      Berkeley\fB.\fPEdu      128\fB.\fP32\fB.\fP0\fB.\fP4 128\fB.\fP32\fB.\fP0\fB.\fP10 ucbhosts.bak
+secondary      32\fB.\fP128\fB.\fPin-addr\fB.\fParpa   128\fB.\fP32\fB.\fP0\fB.\fP4 128\fB.\fP32\fB.\fP0\fB.\fP10 ucbhosts.rev.bak
+primary        0\fB.\fP0\fB.\fP127\fB.\fPin-addr\fB.\fParpa    named\fB.\fPlocal
+cache  \fB.\fP root\fB.\fPcache
+.TE
+.)b
diff --git a/usr/othersrc/share/doc/smm/11.named/setup.me b/usr/othersrc/share/doc/smm/11.named/setup.me
new file mode 100644 (file)
index 0000000..1d80a20
--- /dev/null
@@ -0,0 +1,71 @@
+.\" Copyright (c) 1986, 1988 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)setup.me    6.6 (Berkeley) 4/22/91
+.\"
+.sh 1 "Setting up Your Own Domain"
+.pp
+When setting up a domain that is going to be on a public
+network the site administrator should contact the organization 
+in charge of the network and request the appropriate domain registration form.  
+An organization that belongs to multiple networks (such as \fICSNET\fP,
+\fIDARPA Internet\fP and \fIBITNET\fP) should register with only one network.
+
+The contacts are as follows:
+.sh 2 "DARPA Internet"
+.pp
+Sites that are already on the DARPA Internet and need information on 
+setting up a domain should contact HOSTMASTER@NIC\fB\|.\|\fPDDN\fB\|.\|\fPMIL\fB\|.\fP
+You may also want to be placed on the BIND mailing list,
+which is a mail group for people on the DARPA Internet running BIND.
+The group discusses future design decisions, operational problems,
+and other related topics.
+The address to request being placed on this mailing list is:
+.(b l
+\fIbind-request\|@\|ucbarpa\fP\fB\|.\|\fP\fIBerkeley\fP\fB\|.\|\fP\fIEDU\fP\fB.\fP
+.)b
+.sh 2 CSNET
+.pp
+A \fICSNET\fP member organization that has not registered its domain
+name should contact the \fICSNET\fP Coordination and Information Center
+(\fICIC\fP) for an application and information about setting up a domain.
+.pp
+An organization that already has a registered domain name should
+keep the \fICIC\fP informed about how it would like its mail routed.  In
+general, the \fICSNET\fP relay will prefer to send mail via \fICSNET\fP (as
+opposed to \fIBITNET\fP or the \fIInternet\fP) if possible.  
+For an organization on multiple networks, this may not always be the 
+preferred behavior.  
+The \fICIC\fP can be reached via electronic mail at 
+\fIcic\|@\|sh\fP\fB\|.\|\fP\fIcs\fP\fB\|.\|\fP\fInet\fP, or by phone at (617) 873-2777.
+.sh 2 BITNET
+.pp
+If you are on the BITNET and need to set up a domain, contact INFO@BITNIC.