xml cleanups, more <<'s and &&'s.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@431 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Billy O 'Connor 2002-12-02 23:00:41 +00:00
parent 17ced16d16
commit fe3b285555
2 changed files with 16 additions and 16 deletions

View File

@ -22,22 +22,22 @@ location of zone files, root nameservers and secure DNS keys.</para>
cat &gt; /home/named/etc/namedb/pz/127.0.0 &lt;&lt; "EOF" :</userinput>
Create a single zone file.</para>
<para><userinput>
cat > /home/named/etc/namedb/root.hints << "EOF" :</userinput>
cat &gt; /home/named/etc/namedb/root.hints &lt;&lt; "EOF" :</userinput>
The root.hints file is a list of root nameservers. This file must be
updated periodically with the dig utility. Consult the BIND 9
Administrator Reference Manual for details.</para>
<para><userinput>
cat > /etc/rndc.conf << "EOF" :</userinput>
cat &gt; /etc/rndc.conf &lt;&lt; "EOF" :</userinput>
The rncd.conf file contains information for controlling named
operations with the rndc utility.</para>
<para><userinput>
cat > /etc/resolv.conf << "EOF" :</userinput>
cat &gt; /etc/resolv.conf &lt;&lt; "EOF" :</userinput>
The resolv.conf file will specify the local host(127.0.0.1) as the
nameserver.</para>
<para><userinput>
cat > /etc/rc.d/init.d/bind << "EOF" :</userinput>
cat &gt; /etc/rc.d/init.d/bind &lt;&lt; "EOF" :</userinput>
Create the boot script for BIND 9, used to start and stop the name
server daemon, named.</para>

View File

@ -25,7 +25,7 @@ cp /etc/localtime /home/named/etc
<para>Create the named.conf file with the following commands:</para>
<para><screen><userinput>
cat > /home/named/etc/named.conf << "EOF"
cat &gt; /home/named/etc/named.conf &lt;&lt; "EOF"
options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
@ -51,7 +51,7 @@ EOF
</userinput></screen></para>
<para>Create a zone file with the following contents: </para>
<para><screen><userinput>
cat &gt; /home/named/etc/namedb/pz/127.0.0 &lt;&lt "EOF"
cat &gt; /home/named/etc/namedb/pz/127.0.0 &lt;&lt; "EOF"
$TTL 3D
@ IN SOA ns.local.domain. hostmaster.local.domain. (
1 ; Serial
@ -68,7 +68,7 @@ EOF
<note><para>Caution must be used to insure no leading spaces in this
file.</para></note>
<para><screen><userinput>
cat > /home/named/etc/namedb/root.hints << "EOF"
cat &gt; /home/named/etc/namedb/root.hints &lt;&lt; "EOF"
. 6D IN NS A.ROOT-SERVERS.NET.
. 6D IN NS B.ROOT-SERVERS.NET.
. 6D IN NS C.ROOT-SERVERS.NET.
@ -100,7 +100,7 @@ EOF
<para>Create the rndc.conf with the following commands:</para>
<para><screen><userinput>
cat > /etc/rndc.conf << "EOF"
cat &gt; /etc/rndc.conf &lt;&lt; "EOF"
key rndc_key {
algorithm "hmac-md5";
secret
@ -120,7 +120,7 @@ name.</para></note>
<para><screen><userinput>
cp /etc/resolv.conf /etc/resolv.conf.bak
cat > /etc/resolv.conf << "EOF"
cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
search yourdomain.com
nameserver 127.0.0.1
EOF
@ -175,13 +175,13 @@ EOF
<para>Add the run level symlinks:</para>
<para><screen><userinput>
chmod 754 /etc/rc.d/init.d/bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind &&
chmod 754 /etc/rc.d/init.d/bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind &amp;&amp;
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind
</userinput></screen></para>