mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
reorder sections; make all installation instructons including quickstart a child of the installation chapter. Put requirements and supported OS versions first in the installation section. More work to be done
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1528 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
<!ENTITY mdash "—" >
|
<!ENTITY mdash "—" >
|
||||||
]>
|
]>
|
||||||
<book>
|
<book>
|
||||||
|
<?xml-stylesheet href="userguide.css" type="text/css"?>
|
||||||
|
|
||||||
<bookinfo>
|
<bookinfo>
|
||||||
<title>BIND 10 User Guide</title>
|
<title>BIND 10 User Guide</title>
|
||||||
<subtitle>Administrator Reference for BIND 10</subtitle>
|
<subtitle>Administrator Reference for BIND 10</subtitle>
|
||||||
@@ -105,25 +107,29 @@
|
|||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<para>
|
<section id="managing_once_running">
|
||||||
Once BIND 10 is running, two commands are used to interact directly with
|
<title>Managing BIND 10</title>
|
||||||
the system:
|
|
||||||
<itemizedlist>
|
<para>
|
||||||
<listitem>
|
Once BIND 10 is running, two commands are used to interact directly with
|
||||||
<simpara>
|
the system:
|
||||||
<command>bindctl</command> —
|
<itemizedlist>
|
||||||
interactive administration interface
|
<listitem>
|
||||||
</simpara>
|
<simpara>
|
||||||
</listitem>
|
<command>bindctl</command> —
|
||||||
<listitem>
|
interactive administration interface
|
||||||
<simpara>
|
</simpara>
|
||||||
<command>b10-loadzone</command> —
|
</listitem>
|
||||||
tool to load standard master zone files
|
<listitem>
|
||||||
</simpara>
|
<simpara>
|
||||||
</listitem>
|
<command>b10-loadzone</command> —
|
||||||
<!-- TODO usermgr -->
|
tool to load standard master zone files
|
||||||
</itemizedlist>
|
</simpara>
|
||||||
</para>
|
</listitem>
|
||||||
|
<!-- TODO usermgr -->
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The tools and modules are covered in full detail in this users guide.
|
The tools and modules are covered in full detail in this users guide.
|
||||||
@@ -163,166 +169,17 @@ var/
|
|||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter id="quickstart">
|
<chapter id="installation">
|
||||||
<title>Quick start</title>
|
<title>Installation</title>
|
||||||
<para>
|
|
||||||
This quickly covers the standard steps for installing
|
|
||||||
and deploying BIND 10 as an authoritative nameserver using
|
|
||||||
its defaults. For troubleshooting, full customizations and further
|
|
||||||
details, see the respective chapters in the BIND 10 user guide.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<itemizedlist>
|
<section>
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<simpara>Install required dependencies: Python 3.1, SQLite3
|
|
||||||
library, and Boost development headers.</simpara>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<simpara>Download the BIND 10 source tarball. <!-- TODO: from -->
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Extract the tar file:
|
|
||||||
<screen>$ <userinput>gzcat bind10-<replaceable>VERSION</replaceable>.tar.gz | tar -xvf -</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Go into the source and run configure:
|
|
||||||
<screen>$ <userinput>cd bind10-<replaceable>VERSION</replaceable></userinput>
|
|
||||||
$ <userinput>./configure</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Build it:
|
|
||||||
<screen>$ <userinput>make</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Install it (to default /usr/local):
|
|
||||||
<screen>$ <userinput>make install</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Start the server:
|
|
||||||
<screen>$ <userinput>/usr/local/sbin/bind10</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
|
|
||||||
<note><simpara>The Y1 prototype of the b10-auth server listens on
|
|
||||||
0.0.0.0 (all interfaces) port 5300. (This is not the standard
|
|
||||||
domain service port.)</simpara></note>
|
|
||||||
|
|
||||||
<para>Test it; for example:
|
|
||||||
<screen>$ <userinput>dig @127.0.0.1 -p 5300 -c CH -t TXT authors.bind</userinput></screen>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Load desired zone file(s), for example:
|
|
||||||
<screen>$ <userinput>b10-loadzone <replaceable>your.zone.example.org</replaceable></userinput></screen>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<simpara>Test the new zone.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
|
|
||||||
</itemizedlist>
|
|
||||||
|
|
||||||
</chapter>
|
|
||||||
|
|
||||||
<chapter id="install">
|
|
||||||
<title>Installation from source</title>
|
|
||||||
<para>
|
|
||||||
BIND 10 is open source software written in C++ and Python.
|
|
||||||
It is freely available in source code form from ISC via
|
|
||||||
the Subversion code revision control system or as a downloadable
|
|
||||||
tar file. It may also be available in pre-compiled ready-to-use
|
|
||||||
packages from operating system vendors.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Download Tar File</title>
|
|
||||||
<para>The BIND 10 development snapshots and releases
|
|
||||||
are available as tarball downloads.
|
|
||||||
</para>
|
|
||||||
<!-- TODO -->
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Retrieve from Subversion</title>
|
|
||||||
<para>
|
|
||||||
The latest development code, including temporary experiments
|
|
||||||
and un-reviewed code, is available via the BIND 10 code revision
|
|
||||||
control system. This is powered by Subversion and all the BIND 10
|
|
||||||
development is public.
|
|
||||||
The leading development is done in the <quote>trunk</quote>
|
|
||||||
and the first year prototype containing reviewed code is in
|
|
||||||
<filename>branches/Y1</filename>.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
The code can be checked out from <filename>svn://bind10.isc.org/svn/bind10</filename>; for example to check out the trunk:
|
|
||||||
|
|
||||||
<screen>$ <userinput>svn co svn://bind10.isc.org/svn/bind10/trunk</userinput></screen>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
You do not need to retrieve the source code from subversion
|
|
||||||
unless you are testing latest code which is not provided in the
|
|
||||||
source tarball or you are a developer.
|
|
||||||
Most users will just use the source tar file.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<sect2>
|
|
||||||
<title>Generate configuration files</title>
|
|
||||||
<para>
|
|
||||||
When checking out the code from
|
|
||||||
the code version control system, it doesn't include the
|
|
||||||
generated configure script, Makefile.in files, nor the
|
|
||||||
related configure files.
|
|
||||||
They can be created by running <command>autoreconf</command>
|
|
||||||
with the <option>--install</option> switch.
|
|
||||||
This will run <command>autoconf</command>, <command>aclocal</command>,
|
|
||||||
<command>libtoolize</command>, <command>autoheader</command>,
|
|
||||||
<command>automake</command>, and related commands —
|
|
||||||
and provide needed build files.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
This requires <command>autoconf</command> version 2.59 or newer
|
|
||||||
and <command>automake</command> version 1.10 or better.
|
|
||||||
(For working Python 3.1 tests, <command>automake</command>
|
|
||||||
version 1.11 or better is needed or use the
|
|
||||||
<option>--with-pythonpath</option> configure option described
|
|
||||||
below).
|
|
||||||
|
|
||||||
</para>
|
|
||||||
<note><para>
|
|
||||||
Some operating systems do not provide these in their
|
|
||||||
default installation nor standard packages collections.
|
|
||||||
You may need to install them separately.
|
|
||||||
</para></note>
|
|
||||||
</sect2>
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Required Software</title>
|
<title>Required Software</title>
|
||||||
<para>
|
<para>
|
||||||
BIND 10 requires Python 3.1.
|
BIND 10 requires Python 3.1.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Building from the source tarball requires the Boost
|
Building from source code requires the Boost
|
||||||
build-time headers. At least Boost version 1.34 is required.
|
build-time headers. At least Boost version 1.34 is required.
|
||||||
<!-- TODO: we don't check for this version -->
|
<!-- TODO: we don't check for this version -->
|
||||||
<!-- NOTE: jreed has tested with 1.34, 1.38, and 1.41. -->
|
<!-- NOTE: jreed has tested with 1.34, 1.38, and 1.41. -->
|
||||||
@@ -364,9 +221,9 @@ $ <userinput>./configure</userinput></screen>
|
|||||||
4.2.1, 4.3.2, and 4.4.1.
|
4.2.1, 4.3.2, and 4.4.1.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<sect1>
|
<section>
|
||||||
<title>Supported Platforms</title>
|
<title>Supported Platforms</title>
|
||||||
<para>
|
<para>
|
||||||
BIND 10 builds have been tested on Debian GNU/Linux 5,
|
BIND 10 builds have been tested on Debian GNU/Linux 5,
|
||||||
@@ -379,168 +236,324 @@ $ <userinput>./configure</userinput></screen>
|
|||||||
It is planned for BIND 10 to build, install and run on
|
It is planned for BIND 10 to build, install and run on
|
||||||
Windows and standard Unix-type platforms.
|
Windows and standard Unix-type platforms.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<sect1>
|
<section id="quickstart">
|
||||||
<title>Configure before the build</title>
|
<title>Quick start</title>
|
||||||
<para>
|
<para>
|
||||||
BIND 10 uses the GNU Build System to discover build environment
|
This quickly covers the standard steps for installing
|
||||||
details.
|
and deploying BIND 10 as an authoritative nameserver using
|
||||||
To generate the makefiles using the defaults, simply run:
|
its defaults. For troubleshooting, full customizations and further
|
||||||
<screen>$ <userinput>./configure</userinput></screen>
|
details, see the respective chapters in the BIND 10 user guide.
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
Run <command>./configure</command> with the <option>--help</option>
|
|
||||||
switch to view the different options. The commonly-used options are:
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>--with-boostlib</term>
|
|
||||||
<listitem>
|
|
||||||
<simpara>Define the path to find the Boost system library.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>--without-boostlib</term> or
|
|
||||||
<term>--with-boostlib=no</term>
|
|
||||||
<listitem>
|
|
||||||
<simpara>Disable the Boost ASIO support.</simpara>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>--with-pythonpath</term>
|
|
||||||
<listitem>
|
|
||||||
<simpara>Define the path to Python 3.1 if it is not in the
|
|
||||||
standard execution path.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>--with-boost-include</term>
|
|
||||||
<listitem>
|
|
||||||
<simpara>Define the path to find the Boost headers.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>--prefix</term>
|
|
||||||
<listitem>
|
|
||||||
<simpara>Define the the installation location (the
|
|
||||||
default is <filename>/usr/local/</filename>).
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
</variablelist>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
<!-- TODO: gtest, lcov -->
|
|
||||||
|
|
||||||
<para>
|
|
||||||
For example, the following configures it to build
|
|
||||||
with BOOST ASIO support, find the Boost headers, find the
|
|
||||||
Python interpreter, and sets the installation location:
|
|
||||||
|
|
||||||
<screen>$ <userinput>./configure --with-boostlib=/usr/pkg/lib \
|
|
||||||
--with-boost-include=/usr/pkg/include \
|
|
||||||
--with-pythonpath=/usr/pkg/bin/python3.1 \
|
|
||||||
--prefix=/opt/bind10</userinput></screen>
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<note>
|
||||||
If the configure fails, it may be due to missing or old
|
<simpara>
|
||||||
dependencies.
|
The Y1 prototype of the b10-auth server listens on
|
||||||
</para>
|
0.0.0.0 (all interfaces) port 5300. (This is not the standard
|
||||||
|
domain service port.)
|
||||||
|
</simpara>
|
||||||
|
</note>
|
||||||
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Build</title>
|
|
||||||
<para>
|
|
||||||
After the configure step is complete, to build the executables
|
|
||||||
from the C++ code and prepare the Python scripts, run:
|
|
||||||
|
|
||||||
<screen>$ <userinput>make</userinput></screen>
|
|
||||||
</para>
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Install</title>
|
|
||||||
<para>
|
|
||||||
To install the BIND 10 executables, support files,
|
|
||||||
and documentation, run:
|
|
||||||
<screen>$ <userinput>make install</userinput></screen>
|
|
||||||
</para>
|
|
||||||
<note><para>The install step may require superuser
|
|
||||||
privileges.</para></note>
|
|
||||||
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<!-- TODO: tests -->
|
|
||||||
|
|
||||||
<sect1>
|
|
||||||
<title>Install Hierarchy</title>
|
|
||||||
<para>
|
|
||||||
The following is the layout of the complete BIND 10 installation:
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
|
||||||
<simpara><filename>bin/</filename> — general tools and
|
<listitem>
|
||||||
diagnostic clients.</simpara>
|
<simpara>Install required dependencies: Python 3.1, SQLite3
|
||||||
</listitem>
|
library, and Boost development headers.</simpara>
|
||||||
<listitem>
|
</listitem>
|
||||||
<simpara><filename>etc/bind10/</filename> — configuration files.
|
|
||||||
</simpara>
|
|
||||||
<!-- TODO: create the etc/bind10/ directory? -->
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>lib/</filename> — libraries and
|
|
||||||
python modules.</simpara>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>libexec/bind10/</filename> — executables that
|
|
||||||
a user wouldn't normally run directly. Nor would they be used
|
|
||||||
independently. These are the BIND 10 modules which are daemons
|
|
||||||
started by the <command>bind10</command> tool.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>sbin/</filename> — commands used by
|
|
||||||
the system administrator.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>share/bind10/</filename> — configuration
|
|
||||||
specifications.
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>share/man/</filename> — manual pages (online
|
|
||||||
documentation).
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
<listitem>
|
|
||||||
<simpara><filename>var/bind10/</filename> — data source and
|
|
||||||
configuration databases.
|
|
||||||
<!-- TODO: move the sqlite3 database there -->
|
|
||||||
</simpara>
|
|
||||||
</listitem>
|
|
||||||
</itemizedlist>
|
|
||||||
</para>
|
|
||||||
</sect1>
|
|
||||||
|
|
||||||
<!--
|
<listitem>
|
||||||
<sect1 id="install.troubleshooting">
|
<simpara>Download the BIND 10 source tarball. <!-- TODO: from -->
|
||||||
<title>Troubleshooting</title>
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Extract the tar file:
|
||||||
|
<screen>$ <userinput>gzcat bind10-<replaceable>VERSION</replaceable>.tar.gz | tar -xvf -</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Go into the source and run configure:
|
||||||
|
<screen>$ <userinput>cd bind10-<replaceable>VERSION</replaceable></userinput>
|
||||||
|
$ <userinput>./configure</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Build it:
|
||||||
|
<screen>$ <userinput>make</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Install it (to default /usr/local):
|
||||||
|
<screen>$ <userinput>make install</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Start the server:
|
||||||
|
<screen>$ <userinput>/usr/local/sbin/bind10</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
|
||||||
|
<para>Test it; for example:
|
||||||
|
<screen>$ <userinput>dig @127.0.0.1 -p 5300 -c CH -t TXT authors.bind</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Load desired zone file(s), for example:
|
||||||
|
<screen>$ <userinput>b10-loadzone <replaceable>your.zone.example.org</replaceable></userinput></screen>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<simpara>Test the new zone.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="install">
|
||||||
|
<title>Installation from source</title>
|
||||||
<para>
|
<para>
|
||||||
|
BIND 10 is open source software written in C++ and Python.
|
||||||
|
It is freely available in source code form from ISC via
|
||||||
|
the Subversion code revision control system or as a downloadable
|
||||||
|
tar file. It may also be available in pre-compiled ready-to-use
|
||||||
|
packages from operating system vendors.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
|
||||||
-->
|
<section>
|
||||||
|
<title>Download Tar File</title>
|
||||||
|
<para>The BIND 10 development snapshots and releases
|
||||||
|
are available as tarball downloads.
|
||||||
|
</para>
|
||||||
|
<!-- TODO -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Retrieve from Subversion</title>
|
||||||
|
<para>
|
||||||
|
The latest development code, including temporary experiments
|
||||||
|
and un-reviewed code, is available via the BIND 10 code revision
|
||||||
|
control system. This is powered by Subversion and all the BIND 10
|
||||||
|
development is public.
|
||||||
|
The leading development is done in the <quote>trunk</quote>
|
||||||
|
and the first year prototype containing reviewed code is in
|
||||||
|
<filename>branches/Y1</filename>.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
The code can be checked out from <filename>svn://bind10.isc.org/svn/bind10</filename>; for example to check out the trunk:
|
||||||
|
|
||||||
|
<screen>$ <userinput>svn co svn://bind10.isc.org/svn/bind10/trunk</userinput></screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
You do not need to retrieve the source code from subversion
|
||||||
|
unless you are testing latest code which is not provided in the
|
||||||
|
source tarball or you are a developer.
|
||||||
|
Most users will just use the source tar file.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Generate configuration files</title>
|
||||||
|
<para>
|
||||||
|
When checking out the code from
|
||||||
|
the code version control system, it doesn't include the
|
||||||
|
generated configure script, Makefile.in files, nor the
|
||||||
|
related configure files.
|
||||||
|
They can be created by running <command>autoreconf</command>
|
||||||
|
with the <option>--install</option> switch.
|
||||||
|
This will run <command>autoconf</command>, <command>aclocal</command>,
|
||||||
|
<command>libtoolize</command>, <command>autoheader</command>,
|
||||||
|
<command>automake</command>, and related commands —
|
||||||
|
and provide needed build files.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This requires <command>autoconf</command> version 2.59 or newer
|
||||||
|
and <command>automake</command> version 1.10 or better.
|
||||||
|
(For working Python 3.1 tests, <command>automake</command>
|
||||||
|
version 1.11 or better is needed or use the
|
||||||
|
<option>--with-pythonpath</option> configure option described
|
||||||
|
below).
|
||||||
|
</para>
|
||||||
|
<note><para>
|
||||||
|
Some operating systems do not provide these in their
|
||||||
|
default installation nor standard packages collections.
|
||||||
|
You may need to install them separately.
|
||||||
|
</para></note>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Configure before the build</title>
|
||||||
|
<para>
|
||||||
|
BIND 10 uses the GNU Build System to discover build environment
|
||||||
|
details.
|
||||||
|
To generate the makefiles using the defaults, simply run:
|
||||||
|
<screen>$ <userinput>./configure</userinput></screen>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Run <command>./configure</command> with the <option>--help</option>
|
||||||
|
switch to view the different options. The commonly-used options are:
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--with-boostlib</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Define the path to find the Boost system library.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--without-boostlib</term> or
|
||||||
|
<term>--with-boostlib=no</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Disable the Boost ASIO support.</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--with-pythonpath</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Define the path to Python 3.1 if it is not in the
|
||||||
|
standard execution path.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--with-boost-include</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Define the path to find the Boost headers.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--prefix</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Define the the installation location (the
|
||||||
|
default is <filename>/usr/local/</filename>).
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
<!-- TODO: gtest, lcov -->
|
||||||
|
|
||||||
|
<para>
|
||||||
|
For example, the following configures it to build
|
||||||
|
with BOOST ASIO support, find the Boost headers, find the
|
||||||
|
Python interpreter, and sets the installation location:
|
||||||
|
|
||||||
|
<screen>$ <userinput>./configure --with-boostlib=/usr/pkg/lib \
|
||||||
|
--with-boost-include=/usr/pkg/include \
|
||||||
|
--with-pythonpath=/usr/pkg/bin/python3.1 \
|
||||||
|
--prefix=/opt/bind10</userinput></screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If the configure fails, it may be due to missing or old
|
||||||
|
dependencies.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Build</title>
|
||||||
|
<para>
|
||||||
|
After the configure step is complete, to build the executables
|
||||||
|
from the C++ code and prepare the Python scripts, run:
|
||||||
|
|
||||||
|
<screen>$ <userinput>make</userinput></screen>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Install</title>
|
||||||
|
<para>
|
||||||
|
To install the BIND 10 executables, support files,
|
||||||
|
and documentation, run:
|
||||||
|
<screen>$ <userinput>make install</userinput></screen>
|
||||||
|
</para>
|
||||||
|
<note><para>The install step may require superuser
|
||||||
|
privileges.</para></note>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- TODO: tests -->
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>Install Hierarchy</title>
|
||||||
|
<para>
|
||||||
|
The following is the layout of the complete BIND 10 installation:
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>bin/</filename> — general tools and
|
||||||
|
diagnostic clients.</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>etc/bind10/</filename> — configuration files.
|
||||||
|
</simpara>
|
||||||
|
<!-- TODO: create the etc/bind10/ directory? -->
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>lib/</filename> — libraries and
|
||||||
|
python modules.</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>libexec/bind10/</filename> — executables that
|
||||||
|
a user wouldn't normally run directly. Nor would they be used
|
||||||
|
independently. These are the BIND 10 modules which are daemons
|
||||||
|
started by the <command>bind10</command> tool.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>sbin/</filename> — commands used by
|
||||||
|
the system administrator.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>share/bind10/</filename> — configuration
|
||||||
|
specifications.
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>share/man/</filename> — manual pages (online
|
||||||
|
documentation).
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<simpara><filename>var/bind10/</filename> — data source and
|
||||||
|
configuration databases.
|
||||||
|
<!-- TODO: move the sqlite3 database there -->
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<section id="install.troubleshooting">
|
||||||
|
<title>Troubleshooting</title>
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
-->
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
@@ -577,7 +590,7 @@ $ <userinput>./configure</userinput></screen>
|
|||||||
(These are covered in upcoming chapters.)
|
(These are covered in upcoming chapters.)
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect1 id="start">
|
<section id="start">
|
||||||
<title>Starting BIND 10</title>
|
<title>Starting BIND 10</title>
|
||||||
<para>
|
<para>
|
||||||
To start the BIND 10 service, simply run <command>bind10</command>.
|
To start the BIND 10 service, simply run <command>bind10</command>.
|
||||||
@@ -585,7 +598,7 @@ $ <userinput>./configure</userinput></screen>
|
|||||||
get additional debugging or diagnostic output.
|
get additional debugging or diagnostic output.
|
||||||
</para>
|
</para>
|
||||||
<!-- TODO: note it doesn't go into background -->
|
<!-- TODO: note it doesn't go into background -->
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
@@ -840,7 +853,7 @@ or accounts database -->
|
|||||||
redefined by using the <option>--idle-timeout</option> command line argument.
|
redefined by using the <option>--idle-timeout</option> command line argument.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect1 id="cmdctl.spec">
|
<section id="cmdctl.spec">
|
||||||
<title>Configuration specification for b10-cmdctl</title>
|
<title>Configuration specification for b10-cmdctl</title>
|
||||||
<para>
|
<para>
|
||||||
The configuration items for <command>b10-cmdctl</command> are:
|
The configuration items for <command>b10-cmdctl</command> are:
|
||||||
@@ -856,7 +869,7 @@ print_settings
|
|||||||
shutdown
|
shutdown
|
||||||
</para>
|
</para>
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
TODO
|
TODO
|
||||||
@@ -919,7 +932,7 @@ TODO
|
|||||||
port 5300.
|
port 5300.
|
||||||
</simpara></note>
|
</simpara></note>
|
||||||
|
|
||||||
<sect1>
|
<section>
|
||||||
<title>Server Configurations</title>
|
<title>Server Configurations</title>
|
||||||
|
|
||||||
<!-- TODO: offers command line options but not used
|
<!-- TODO: offers command line options but not used
|
||||||
@@ -970,9 +983,9 @@ This may be a temporary setting until then.
|
|||||||
|
|
||||||
<!-- TODO: examples of setting or running above? -->
|
<!-- TODO: examples of setting or running above? -->
|
||||||
|
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<sect1>
|
<section>
|
||||||
<title>Data Source Backends</title>
|
<title>Data Source Backends</title>
|
||||||
|
|
||||||
<note><para>
|
<note><para>
|
||||||
@@ -994,9 +1007,9 @@ This may be a temporary setting until then.
|
|||||||
<quote>database_file</quote> configuration.
|
<quote>database_file</quote> configuration.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<sect1>
|
<section>
|
||||||
<title>Loading Master Zones Files</title>
|
<title>Loading Master Zones Files</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@@ -1064,15 +1077,15 @@ This may be a temporary setting until then.
|
|||||||
|
|
||||||
<!--TODO: permissions for xfrin or loadzone to create the file -->
|
<!--TODO: permissions for xfrin or loadzone to create the file -->
|
||||||
|
|
||||||
</sect1>
|
</section>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
TODO
|
TODO
|
||||||
<sect1>
|
<section>
|
||||||
<title>Troubleshooting</title>
|
<title>Troubleshooting</title>
|
||||||
<para>
|
<para>
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</section>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
Reference in New Issue
Block a user