]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind/doc/bog/manage.me
This commit was generated by cvs2svn to compensate for changes in r53140,
[FreeBSD/FreeBSD.git] / contrib / bind / doc / bog / manage.me
1 .\" ++Copyright++ 1986, 1988, 1995
2 .\" -
3 .\" Copyright (c) 1986, 1988, 1995
4 .\"    The Regents of the University of California.  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 the University of
17 .\"     California, Berkeley and its contributors.
18 .\" 4. Neither the name of the University nor the names of its contributors
19 .\"    may be used to endorse or promote products derived from this software
20 .\"    without specific prior written permission.
21 .\" 
22 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" SUCH DAMAGE.
33 .\" -
34 .\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
35 .\" 
36 .\" Permission to use, copy, modify, and distribute this software for any
37 .\" purpose with or without fee is hereby granted, provided that the above
38 .\" copyright notice and this permission notice appear in all copies, and that
39 .\" the name of Digital Equipment Corporation not be used in advertising or
40 .\" publicity pertaining to distribution of the document or software without
41 .\" specific, written prior permission.
42 .\" 
43 .\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
44 .\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
45 .\" OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
46 .\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
47 .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
48 .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
49 .\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
50 .\" SOFTWARE.
51 .\" -
52 .\" --Copyright--
53 .\"
54 .\"     @(#)manage.me   6.6 (Berkeley) 9/19/89
55 .\"     $Id: manage.me,v 8.4 1995/12/22 10:20:24 vixie Exp $
56 .\"
57 .sh 1 "Domain Management"
58 .pp
59 This section contains information for starting, controlling and debugging
60 \fInamed\fP.
61 .sh 2 /etc/rc.local
62 .pp
63 The hostname should be set to the full domain style name in
64 \fI/etc/rc.local\fP using \fIhostname\|(1)\fP.  The following entry should
65 be added to \fI/etc/rc.local\fP to start up \fInamed\fP at system boot time:
66 .(b l 
67 \fIif [ -f /usr/sbin/named ]; then
68     /usr/sbin/named\fP [options] \fI& echo -n ' named'  >/dev/console\fP
69 \fIfi\fP
70 .)b
71 This usually directly follows the lines that start \fIsyslogd\fP.
72 \fBDo Not\fP attempt to run \fInamed\fP from \fIinetd\fP.
73 This will
74 continuously restart the name server and defeat the purpose of the cache.
75 .sh 2 /var/run/named.pid
76 .pp
77 When \fInamed\fP is successfully started up it writes its process id into
78 the file \fI/var/run/named.pid\fP.  This is useful to programs that want to
79 send signals to \fInamed\fP. The name of this file may be changed by defining
80 \fIPIDFILE\fP to the new name when compiling \fInamed\fP.
81 .sh 2 /etc/hosts
82 .pp
83 The \fIgethostbyname\|()\fP library call can detect if \fInamed\fP is running.
84 If it is determined that \fInamed\fP is not running it will look in
85 \fI/etc/hosts\fP to resolve an address.  
86 This option was added to allow \fIifconfig\|(8C)\fP to configure the machines
87 local interfaces and to enable a system manager to access the network 
88 while the system is in single user mode.
89 It is advisable to put the local machines interface addresses and a couple of 
90 machine names and address in 
91 \fI/etc/hosts\fP so the system manager can rcp files from another machine
92 when the system is in single user mode.
93 The format of \fI/etc/hosts\fP has not changed. See \fIhosts\|(5)\fP
94 for more information.
95 Since the process of reading \fI/etc/hosts\fP is slow, 
96 it is not advisable to use this option when the system is in multi user mode.
97
98 .sh 2 Signals
99 .pp
100 There are several signals that can be sent to the \fInamed\fP process 
101 to have it do tasks without restarting the process.
102 .sh 3 Reload
103 .pp
104 SIGHUP -
105 Causes \fInamed\fP to read \fInamed.boot\fP and reload the database.
106 This is useful when you have made a change to a ``primary'' data file 
107 and you want \fInamed\fP\|'s internal database to reflect the change.
108 If you build \s-1BIND\s+1 with the \s-1FORCED_RELOAD\s+1 option, then
109 \s-1SIGHUP\s+1 also has the effect of scheduling all ``secondary'' zones
110 for serial-number checks, which could lead to zone transfers ahead of
111 the usual schedule.  Normally serial-number compares are done only at
112 the intervals specified in the zone's \s-1SOA\s+1 record.
113 .sh 3 Debugging
114 .pp
115 When \fInamed\fP is running incorrectly, look first in 
116 \fI/var/log/messages\fP and check for any messages logged by \fIsyslog\fP.
117 Next send it a signal to see what is happening.  Unless you run it with the
118 ``-d'' option, \fInamed\fP has very little to say on its standard output or
119 standard error.  Everything \fInamed\fP has to say, it says to \fIsyslog\fP.
120 .pp
121 SIGINT -
122 Dumps the current data base and cache to
123 \fI/var/tmp/named_dump.db\fP
124 This should give you an indication to whether the data base was loaded
125 correctly.
126 The name of the dump file may be changed
127 by defining \fIDUMPFILE\fP to the new name when compiling \fInamed\fP.
128
129 \fINote:\fP the following two signals only work when \fInamed\fP is built with
130 \fIDEBUG\fP defined.
131 .pp
132 SIGUSR1 -
133 Turns on debugging. Each following SIGUSR1 increments the debug level.
134 The output goes to \fI/var/tmp/named.run\fP
135 The name of this debug file may be changed
136 by defining \fIDEBUGFILE\fP to the new name before compiling \fInamed\fP.
137 .pp
138 SIGUSR2 -
139 Turns off debugging completely.
140
141 For more detailed debugging, define DEBUG when compiling the resolver
142 routines into \fI/lib/libc.a\fP.
143 .pp
144 SIGWINCH -
145 Toggles tracing of all incoming queries if \fInamed\fP has been
146 compiled with \fIQRYLOG\fP defined.  The trace is sent to syslog, and
147 is huge, but it is very useful for tracking down problems.
148
149 To run with tracing of all queries specify the \fI-q\fP flag on the
150 command line.  If you routinely log queries you will probably want to
151 analyze the results using the dnsstats stats script in the
152 contrib directory.  
153 .pp
154 SIGIOT -
155 Dumps statistics data into \fI/var/tmp/named.stats\fP if the server
156 is built with \fISTATS\fP defined.  Statistics are appended to the file.