mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
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:
parent
17ced16d16
commit
fe3b285555
@ -22,22 +22,22 @@ location of zone files, root nameservers and secure DNS keys.</para>
|
||||
cat > /home/named/etc/namedb/pz/127.0.0 << "EOF" :</userinput>
|
||||
Create a single zone file.</para>
|
||||
<para><userinput>
|
||||
cat > /home/named/etc/namedb/root.hints << "EOF" :</userinput>
|
||||
cat > /home/named/etc/namedb/root.hints << "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 > /etc/rndc.conf << "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 > /etc/resolv.conf << "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 > /etc/rc.d/init.d/bind << "EOF" :</userinput>
|
||||
Create the boot script for BIND 9, used to start and stop the name
|
||||
server daemon, named.</para>
|
||||
|
||||
|
@ -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 > /home/named/etc/named.conf << "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 > /home/named/etc/namedb/pz/127.0.0 << "EOF"
|
||||
cat > /home/named/etc/namedb/pz/127.0.0 << "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 > /home/named/etc/namedb/root.hints << "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 > /etc/rndc.conf << "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 > /etc/resolv.conf << "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 &&
|
||||
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 &&
|
||||
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind
|
||||
</userinput></screen></para>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user