/usr/share/doc/HOWTO/ja-html/Chroot-BIND-HOWTO-4.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Chroot-BIND HOWTO: BIND $B$r%$%s%9%H!<%k$9$k(B</TITLE>
<LINK HREF="Chroot-BIND-HOWTO-5.html" REL=next>
<LINK HREF="Chroot-BIND-HOWTO-3.html" REL=previous>
<LINK HREF="Chroot-BIND-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Chroot-BIND-HOWTO-5.html">$B<!$N%Z!<%8(B</A>
<A HREF="Chroot-BIND-HOWTO-3.html">$BA0$N%Z!<%8(B</A>
<A HREF="Chroot-BIND-HOWTO.html#toc4">$BL\<!$X(B</A>
<HR>
<H2><A NAME="installing"></A> <A NAME="s4">4. BIND $B$r%$%s%9%H!<%k$9$k(B</A></H2>
<P>$B$b$7$9$G$K(B ($BNc$($P(B RPM $B$J$I$+$i(B)
$B%$%s%9%H!<%k$5$l$F$$$k(B BIND $B$,$"$k>l9g$O!"(B
$B?7$7$$$N$r%$%s%9%H!<%k$9$kA0$K$=$l$r:o=|$9$kI,MW$,$"$k$H;W$$$^$9!#(B
Red Hat $B%7%9%F%`$G$O(B
<CODE>bind</CODE> $B$H(B <CODE>bind-util</CODE> $B$N%Q%C%1!<%8!"(B
$B$=$7$F(B <CODE>bind-devel</CODE> $B$H(B <CODE>caching-nameserver</CODE>
$B$J$I$b!"B8:_$7$F$$$?$i:o=|$9$kI,MW$,$"$k$G$7$g$&!#(B
<P>$B$b$7(B init $B%9%/%j%W%H(B ($B$9$J$o$A(B <CODE>/etc/rc.d/init.d/named</CODE>)
$B$,$"$C$?>l9g$O!"%Q%C%1!<%8$N:o=|$NA0$K!"(B
$B$3$N%U%!%$%k$r%3%T!<$7$FJ]B8$7$F$*$/$[$&$,$$$$$G$7$g$&!#(B
$B$-$C$H$"$H$GLr$KN)$A$^$9!#(B
<P>BIND 8 $B$N$h$&$J!"8E$$%P!<%8%g%s$N(B BIND $B$+$i%"%C%W%0%l!<%I$9$k>l9g$O!"(B
BIND $B$N%=!<%9%Q%C%1!<%8$N(B <CODE>doc/misc/migration</CODE> $B$K$"$k!"(B
$B0\9T$N$?$a$NJ8=q$rFI$s$G$*$/$[$&$,$$$$$G$7$g$&!#(B
$B0\9T$K4X$9$kFbMF$O!"$3$NJ8=q$G$O07$$$^$;$s!#(B
$BC1$K8=:_F0:n$7$F$$$k(B BIND 9 $B$N%$%s%9%H!<%k$rCV$-49$($h$&$H$7$F$$$k!"(B
$B$H$$$&$N$,K\J8=q$G$NA[DjBP>]$G$9!#(B
<P>
<H2><A NAME="ss4.1">4.1 $B%P%$%J%j$r%$%s%9%H!<%k$9$k(B</A>
</H2>
<P>$B$3$l$O4JC1$G$9(B :-)
<CODE>make install</CODE> $B$r<B9T$7$F!"$*$^$+$;$9$k$@$1$G$9!#(B
$B$$$d!"K\Ev$K$3$l$@$1$J$s$G$9$h(B!
<P>
<H2><A NAME="ss4.2">4.2 init $B%9%/%j%W%H$rJT=8$9$k!#(B</A>
</H2>
<P>$B%G%#%9%H%j%S%e!<%7%g%s$K4^$^$l$F$$$k(B init $B%9%/%j%W%H$,$"$l$P!"(B
$B?7$7$$%P%$%J%j$rE,@Z$J%9%$%C%A$G5/F0$9$k$h$&$K!"(B
$B$=$$$D$rJQ99$9$k$N$,:G$b4JC1$G$7$g$&!#(B
$B%9%$%C%A$O(B... <I>($B$3$3$G%I%i%`%m!<%k(B...)</I>
<UL>
<LI><CODE>-u named</CODE>, $B$3$l$O(B BIND $B$r%f!<%6(B <CODE>root</CODE> $B$G$O$J$/(B
<CODE>named</CODE> $B$G<B9T$7$^$9!#(B</LI>
<LI><CODE>-t /chroot/named</CODE>, $B$3$l$K$h$j(B BIND $B$O<+J,<+?H$r(B
($B@h$KMQ0U$7$?(B) jail $B$K(B chroot $B$7$^$9!#(B</LI>
<LI><CODE>-c /etc/named.conf</CODE>, $B$3$l$O(B BIND $B$K!"(B
jail $B$NFbIt$K$*$1$k@_Dj%U%!%$%k$N$"$j$+$r65$($^$9!#(B</LI>
</UL>
<P>$B0J2<$N(B init $B%9%/%j%W%H$O!"Cx<T$,<+J,$N(B
Red Hat 6.0 $B%7%9%F%`$G;H$C$F$$$k$b$N$G$9!#(B
$B$*$o$+$j$N$H$*$j!"$[$H$s$I$O(B Red Hat $B$N$b$N$HJQ$o$j$"$j$^$;$s!#(B
$B$o$?$7$O(B <CODE>rndc</CODE> $B%3%^%s%I$O$^$@;n$7$F$$$^$;$s$,!"(B
$B$3$l$,F0$+$J$$M}M3$O$J$$$O$:$G$9!#(B
<HR>
<PRE>
#!/bin/sh
#
# named This shell script takes care of starting and stopping
# named (BIND DNS server).
#
# chkconfig: 345 55 45
# description: named (BIND) is a Domain Name Server (DNS) \
# that is used to resolve host names to IP addresses.
# probe: true
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/local/sbin/named ] || exit 0
[ -f /chroot/named/etc/named.conf ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting named: "
daemon /usr/local/sbin/named -u named -t /chroot/named -c /etc/named.conf
echo
touch /var/lock/subsys/named
;;
stop)
# Stop daemons.
echo -n "Shutting down named: "
killproc named
rm -f /var/lock/subsys/named
echo
;;
status)
status named
exit $?
;;
restart)
$0 stop
$0 start
exit $?
;;
reload)
/usr/local/sbin/rndc reload
exit $?
;;
probe)
# named knows how to reload intelligently; we don't want linuxconf
# to offer to restart every time
/usr/local/sbin/rndc reload >/dev/null 2>&1 || echo start
exit 0
;;
*)
echo "Usage: named {start|stop|status|restart|reload}"
exit 1
esac
exit 0
</PRE>
<HR>
<P>syslogd $B$G$N>l9g$HF1$8$/!"8=:_$N(B Red Hat 7.2 $B$G$O!"(B
$B$3$N2aDx$O$5$i$K4JC1$K$J$C$F$$$^$9!#(B
<CODE>/etc/sysconfig/named</CODE>
$B$H$$$&%U%!%$%k$,$"$j!"(B
$B$3$3$G(B named $B$KM?$($kDI2C%Q%i%a!<%?$rDj5A$G$-$^$9!#(B
$B$?$@$7(B Red Hat 7.2 $B$G$N%G%U%)%k%H$N(B
<CODE>/etc/rc.d/init.d/named</CODE> $B$G$O!"(B
$B5/F0A0$K(B <CODE>/etc/named.conf</CODE> $B$,$"$k$+$r%A%'%C%/$7$^$9!#(B
$B$3$N%Q%9$OJQ99$7$J$1$l$P$J$j$^$;$s!#(B
<P>Caldera OpenLinux $B%7%9%F%`$G$O!"(B
$B@hF,IU6a$GDj5A$5$l$F$$$kJQ?t$r=$@5$7!"0J2<$N$h$&$K$9$l$P(B OK $B$G$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
NAME=named
DAEMON=/usr/local/sbin/$NAME
OPTIONS="-t /chroot/named -u named -c /etc/named.conf"
</PRE>
</CODE></BLOCKQUOTE>
<P>$B$=$7$F(B FreeBSD 4.3 $B$G$O!"(B<CODE>rc.conf</CODE> $B%U%!%$%k$rJT=8$7$F!"(B
$B<!$N9T$rDI2C$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
named_enable="YES"
named_program="chroot/named/bin/named"
named_flags="-u named -t /chroot/named -c /etc/namedb/named.conf"
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss4.3">4.3 $B@_Dj$rJQ99$9$k(B</A>
</H2>
<P><CODE>named.conf</CODE> $B$K$b$$$/$D$+DI2C!&=$@5$r9T$$!"(B
$B$$$m$$$m$J%G%#%l%/%H%j$,@5$7$/F0:n$9$k$h$&$K$9$kI,MW$,$"$j$^$9!#(B
$BFC$K!"0J2<$r(B <CODE>option</CODE> $B%;%/%7%g%s$KDI2C(B ($B$"$k$$$O$9$G$K$"$l$P=$@5(B)
$B$7$J$1$l$P$J$j$^$;$s!#(B
<BLOCKQUOTE><CODE>
<PRE>
directory "/etc/namedb";
pid-file "/var/run/named.pid";
statistics-file "/var/run/named.stats";
</PRE>
</CODE></BLOCKQUOTE>
$B$3$l$i$N%U%!%$%k$O(B <CODE>named</CODE> $B%G!<%b%s$,FI$`$3$H$K$J$k$N$G!"(B
$B$b$A$m$s%Q%9$O$9$Y$F(B chroot jail $BFbIt$G$NAjBP0LCV$K$J$j$^$9!#(B
$B<9I.$N;~E@$G$O!"(BBIND 9 $B$OA0$N%P!<%8%g%s$G%5%]!<%H$5$l$F$$$?(B
$BE}7W>pJs$d%@%s%W%U%!%$%k$NB?$/$rL$$@%5%]!<%H$7$F$$$^$;$s!#(B
$B$*$=$i$/:#8e$O%5%]!<%H$5$l$F$$$/$H;W$$$^$9!#(B
$BFI<T$N$*;H$$$N$b$N$,$3$N$h$&$J%P!<%8%g%s$G$"$k>l9g$O!"(B
BIND $B$,$=$l$i$r(B <CODE>/var/run</CODE> $B%G%#%l%/%H%j$K=q$1$k$h$&$K!"(B
$B$$$/$D$+%(%s%H%j$rF1$8$h$&$KDI2C$9$kI,MW$,$"$k$G$7$g$&!#(B
<P>
<HR>
<A HREF="Chroot-BIND-HOWTO-5.html">$B<!$N%Z!<%8(B</A>
<A HREF="Chroot-BIND-HOWTO-3.html">$BA0$N%Z!<%8(B</A>
<A HREF="Chroot-BIND-HOWTO.html#toc4">$BL\<!$X(B</A>
</BODY>
</HTML>
|