2002-08-23 09:03:18 +08:00
<sect2 >
<title > Configuration command explanations</title>
2003-02-02 00:51:51 +08:00
<para > <screen > <userinput > groupadd -g 200 named
2002-09-26 11:28:43 +08:00
useradd -m -g named -u 200 -s /bin/false named
cd /home/named
mkdir -p dev etc/namedb/slave var/run
mknod /home/named/dev/null c 1 3
mknod /home/named/dev/random c 1 8
chmod 666 /home/named/dev/{null,random}
mkdir /home/named/etc/namedb/pz
2003-04-06 00:32:17 +08:00
cp /etc/localtime /home/named/etc</userinput> </screen>
2002-08-23 09:03:18 +08:00
Create the unprivileged user and group named, along with device files
that named will need access to inside the chroot jail.</para>
2003-04-06 00:32:17 +08:00
<para > <userinput > cat > /home/named/etc/named.conf < <
"EOF"</userinput> : Create the BIND configuration file, from which named will read the
2003-04-08 05:14:53 +08:00
location of zone files, root name servers and secure DNS keys.</para>
2003-04-06 00:32:17 +08:00
<para > <userinput > cat > /home/named/etc/namedb/pz/127.0.0 < < "EOF"</userinput> : Create a single zone file.</para>
2003-04-08 05:14:53 +08:00
<para > <userinput > cat > /home/named/etc/namedb/root.hints < < "EOF"</userinput> : The root.hints file is a list of root name servers. This file must be
2002-08-23 09:03:18 +08:00
updated periodically with the dig utility. Consult the BIND 9
Administrator Reference Manual for details.</para>
2003-04-06 00:32:17 +08:00
<para > <userinput > cat > /etc/rndc.conf < < "EOF"</userinput> : The rndc.conf file contains information for controlling named
2002-08-23 09:03:18 +08:00
operations with the rndc utility.</para>
2003-04-06 00:32:17 +08:00
<para > <userinput > cat > /etc/resolv.conf < < "EOF"</userinput> : The resolv.conf file will specify the local host(127.0.0.1) as the
2003-04-08 05:14:53 +08:00
name server.</para>
2002-08-23 09:03:18 +08:00
2003-04-06 00:32:17 +08:00
<para > <userinput > cat > /etc/rc.d/init.d/bind < <
"EOF"</userinput> : Create the boot script for BIND 9, used to start and stop the name
2002-08-23 09:03:18 +08:00
server daemon, named.</para>
</sect2>