r6100 - in trunk/BOOK: introduction/welcome server/major

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Wed May 17 09:11:49 PDT 2006


Author: bdubbs
Date: 2006-05-17 10:11:47 -0600 (Wed, 17 May 2006)
New Revision: 6100

Modified:
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/server/major/bind.xml
Log:
Changed home directory of named to /srv/named

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2006-05-17 15:56:07 UTC (rev 6099)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2006-05-17 16:11:47 UTC (rev 6100)
@@ -45,6 +45,9 @@
       <para>May 17th, 2006</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Changed home directory of named to /srv/named.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Added "About Devices" page.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/server/major/bind.xml
===================================================================
--- trunk/BOOK/server/major/bind.xml	2006-05-17 15:56:07 UTC (rev 6099)
+++ trunk/BOOK/server/major/bind.xml	2006-05-17 16:11:47 UTC (rev 6100)
@@ -220,18 +220,19 @@
       class="username">named</systemitem>:</para>
 
 <screen role="root"><userinput>groupadd -g 20 named &&
-useradd -m -c "BIND Owner" -g named -s /bin/false -u 20 named</userinput></screen>
+useradd -c "BIND Owner" -g named -s /bin/false -u 20 named
+install -d -m770 -o named -g named /srv/named</userinput></screen>
 
       <para>Set up some files, directories and devices needed by
       <application>BIND</application>:</para>
 
-<screen role="root"><userinput>cd /home/named &&
+<screen role="root"><userinput>cd /srv/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 &&
-cp /etc/localtime /home/named/etc</userinput></screen>
+mknod /srv/named/dev/null c 1 3 &&
+mknod /srv/named/dev/random c 1 8 &&
+chmod 666 /srv/named/dev/{null,random} &&
+mkdir /srv/named/etc/namedb/pz &&
+cp /etc/localtime /srv/named/etc</userinput></screen>
 
       <para>Then, generate a key for use in the <filename>named.conf</filename>
       and <filename>rdnc.conf</filename> files using the
@@ -243,7 +244,7 @@
       <command>named</command> will read the location of zone files, root
       name servers and secure DNS keys:</para>
 
-<screen role="root"><userinput>cat > /home/named/etc/named.conf << "EOF"
+<screen role="root"><userinput>cat > /srv/named/etc/named.conf << "EOF"
 <literal> options {
      directory "/etc/namedb";
     pid-file "/var/run/named.pid";
@@ -326,7 +327,7 @@
 
       <para>Create a zone file with the following contents:</para>
 
-<screen role="root"><userinput>cat > /home/named/etc/namedb/pz/127.0.0 << "EOF"
+<screen role="root"><userinput>cat > /srv/named/etc/namedb/pz/127.0.0 << "EOF"
 <literal>$TTL 3D
 @      IN      SOA     ns.local.domain. hostmaster.local.domain. (
                         1       ; Serial
@@ -346,7 +347,7 @@
         this file.</para>
       </note>
 
-<screen role="root"><userinput>cat > /home/named/etc/namedb/root.hints << "EOF"
+<screen role="root"><userinput>cat > /srv/named/etc/namedb/root.hints << "EOF"
 <literal>.                       6D  IN      NS      A.ROOT-SERVERS.NET.
 .                       6D  IN      NS      B.ROOT-SERVERS.NET.
 .                       6D  IN      NS      C.ROOT-SERVERS.NET.
@@ -399,7 +400,7 @@
       <para>Set permissions on the <command>chroot</command> jail with the
       following command:</para>
 
-<screen role="root"><userinput>chown -R named.named /home/named</userinput></screen>
+<screen role="root"><userinput>chown -R named.named /srv/named</userinput></screen>
 
     </sect3>
 
@@ -461,7 +462,7 @@
         rndc-confgen</seg>
         <seg>libbind9.{so,a}, libdns.{so,a}, libisc.{so,a}, libisccc.{so,a},
         libisccfg.{so,a}, and liblwres.{so,a}</seg>
-        <seg>/home/named, /usr/include/bind9, /usr/include/dns, /usr/include/dst,
+        <seg>/srv/named, /usr/include/bind9, /usr/include/dns, /usr/include/dst,
         /usr/include/isc, /usr/include/isccc, /usr/include/isccfg,
         /usr/include/lwres, and /usr/share/doc/bind-&bind-version;</seg>
       </seglistitem>




More information about the blfs-book mailing list