Author: igor
Date: Sun Jul 21 16:16:47 2013
New Revision: 11462
Log:
Added Unbound-1.4.20
Added:
trunk/BOOK/server/other/unbound.xml (contents, props changed)
trunk/bootscripts/blfs/init.d/unbound (contents, props changed)
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/networking/netlibs/ldns.xml
trunk/BOOK/postlfs/config/users.xml
trunk/BOOK/postlfs/security/gnutls.xml
trunk/BOOK/server/other/other.xml
trunk/bootscripts/Makefile
Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent Sun Jul 21 12:06:50 2013 (r11461)
+++ trunk/BOOK/general.ent Sun Jul 21 16:16:47 2013 (r11462)
@@ -513,8 +513,9 @@
<!-- Chapter 23 -->
<!ENTITY openldap-version "2.4.35">
-<!ENTITY virtuoso-version "6.1.6">
<!ENTITY soprano-version "2.9.2">
+<!ENTITY unbound-version "1.4.20">
+<!ENTITY virtuoso-version "6.1.6">
<!ENTITY xinetd-version "2.3.15">
<!-- Part VI -->
Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 21 12:06:50
2013 (r11461)
+++ trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 21 16:16:47
2013 (r11462)
@@ -47,6 +47,9 @@
<para>July 21st, 2013</para>
<itemizedlist>
<listitem>
+ <para>[igor] - Added Unbound-1.4.20.</para>
+ </listitem>
+ <listitem>
<para>[igor] - Added ldns-1.6.16.</para>
</listitem>
<listitem>
Modified: trunk/BOOK/networking/netlibs/ldns.xml
==============================================================================
--- trunk/BOOK/networking/netlibs/ldns.xml Sun Jul 21 12:06:50 2013
(r11461)
+++ trunk/BOOK/networking/netlibs/ldns.xml Sun Jul 21 16:16:47 2013
(r11462)
@@ -115,7 +115,7 @@
<screen><userinput>make doc</userinput></screen>
<para>
- This package does not come with a test suite.
+ This package does not come with a working test suite.
</para>
<para>
Modified: trunk/BOOK/postlfs/config/users.xml
==============================================================================
--- trunk/BOOK/postlfs/config/users.xml Sun Jul 21 12:06:50 2013 (r11461)
+++ trunk/BOOK/postlfs/config/users.xml Sun Jul 21 16:16:47 2013 (r11462)
@@ -112,6 +112,7 @@
<row><entry>avahi-autoipd</entry><entry>85</entry><entry>85</entry></row>
<row><entry>netdev </entry><entry> </entry><entry>86</entry></row>
<row><entry>ntp </entry><entry>87</entry><entry>87</entry></row>
+ <row><entry>unbound </entry><entry>88</entry><entry>88</entry></row>
<row><entry>anonymous</entry><entry>98</entry><entry> </entry></row>
<row><entry>nobody </entry><entry>99</entry><entry> </entry></row>
<row><entry>nogroup </entry><entry> </entry><entry>99</entry></row>
Modified: trunk/BOOK/postlfs/security/gnutls.xml
==============================================================================
--- trunk/BOOK/postlfs/security/gnutls.xml Sun Jul 21 12:06:50 2013
(r11461)
+++ trunk/BOOK/postlfs/security/gnutls.xml Sun Jul 21 16:16:47 2013
(r11462)
@@ -108,16 +108,15 @@
<xref linkend="guile"/>,
<xref linkend="libidn"/>,
<xref linkend="p11-kit"/>,
- <ulink url="http://unbound.net/">Unbound</ulink> (to build the DANE
library and requires
- <ulink url="http://www.nlnetlabs.nl/projects/ldns/">ldns</ulink>), and
+ <xref linkend="unbound"/> (to build the DANE library), and
<ulink url="http://valgrind.org/">Valgrind</ulink> (used during the test
suite)
</para>
- <para>
+ <note><para>
Note that if you do not install <xref linkend="libtasn1"/>, an older
version shipped in the <application>GnuTLS</application> tarball will be
used instead.
- </para>
+ </para></note>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/gnutls"/>
Modified: trunk/BOOK/server/other/other.xml
==============================================================================
--- trunk/BOOK/server/other/other.xml Sun Jul 21 12:06:50 2013 (r11461)
+++ trunk/BOOK/server/other/other.xml Sun Jul 21 16:16:47 2013 (r11462)
@@ -23,8 +23,9 @@
that you can analyze the risks.</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="openldap.xml"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="virtuoso.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="soprano.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="unbound.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="virtuoso.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xinetd.xml"/>
</chapter>
Added: trunk/BOOK/server/other/unbound.xml
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/BOOK/server/other/unbound.xml Sun Jul 21 16:16:47 2013 (r11462)
@@ -0,0 +1,349 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../../general.ent">
+ %general-entities;
+
+ <!ENTITY unbound-download-http
"http://www.unbound.net/downloads/unbound-&unbound-version;.tar.gz">
+ <!ENTITY unbound-download-ftp " ">
+ <!ENTITY unbound-md5sum "1f2d0b490fd7928a708a326beda21948">
+ <!ENTITY unbound-size "3.5 MB">
+ <!ENTITY unbound-buildsize "41 MB">
+ <!ENTITY unbound-time "0.6 SBU">
+]>
+
+<sect1 id="unbound" xreflabel="Unbound-&unbound-version;">
+ <?dbhtml filename="unbound.html"?>
+
+ <sect1info>
+ <othername>$LastChangedBy: igor $</othername>
+ <date>$Date: 2013-07-21 21:06:50 +0200 (Sun, 21 Jul 2013) $</date>
+ </sect1info>
+
+ <title>Unbound-&unbound-version;</title>
+
+ <indexterm zone="unbound">
+ <primary sortas="a-Unbound">Unbound</primary>
+ </indexterm>
+
+ <sect2 role="package">
+ <title>Introduction to Unbound</title>
+
+ <para>
+ <application>Unbound</application> is a validating, recursive, and
caching
+ DNS resolver. It is designed as a set of modular components that
+ incorporate modern features, such as enhanced security (DNSSEC)
+ validation, Internet Protocol Version 6 (IPv6), and a client resolver
+ library API as an integral part of the architecture.
+ </para>
+
+ &lfs73_checked;
+
+ <bridgehead renderas="sect3">Package Information</bridgehead>
+ <itemizedlist spacing="compact">
+ <listitem>
+ <para>
+ Download (HTTP): <ulink url="&unbound-download-http;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download (FTP): <ulink url="&unbound-download-ftp;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download MD5 sum: &unbound-md5sum;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download size: &unbound-size;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated disk space required: &unbound-buildsize;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated build time: &unbound-time;
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <bridgehead renderas="sect3">Unbound Dependencies</bridgehead>
+
+ <bridgehead renderas="sect4">Required</bridgehead>
+ <para role="required">
+ <xref linkend="expat"/>,
+ <xref linkend="ldns"/> and
+ <xref linkend="openssl"/>
+ </para>
+
+ <bridgehead renderas="sect4">Optional</bridgehead>
+ <para role="optional">
+ <xref linkend="libevent"/>,
+ <xref linkend="python2"/> and
+ <ulink url="http://www.swig.org/">SWIG</ulink> (for Python bindings), and
+ <xref linkend="doxygen"/> (for html documentation)
+ </para>
+
+ <para condition="html" role="usernotes">User Notes:
+ <ulink url="&blfs-wiki;/unbound"/>
+ </para>
+ </sect2>
+
+ <sect2 role="installation">
+ <title>Installation of Unbound</title>
+
+ <para>
+ There should be a dedicated user and group to take control of the
+ <command>unbound</command> daemon after it is started. Issue the
following
+ commands as the <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen role="root"><userinput>groupadd -g 88 unbound &&
+useradd -c "Unbound DNS resolver" -d /var/lib/unbound -u 88 \
+ -g unbound -s /bin/false unbound</userinput></screen>
+
+ <para>
+ Install <application>Unbound</application> by running the following
+ commands:
+ </para>
+
+<screen><userinput>./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-pidfile=/run/unbound.pid \
+ --disable-static &&
+make</userinput></screen>
+
+ <para>
+ If you have <xref linkend="doxygen"/> package installed and want to
build
+ html documentation, run the following command:
+ </para>
+
+<screen><userinput>make doc</userinput></screen>
+
+ <para>To test the results, issue <command>make check</command>.</para>
+
+ <para>
+ Now, as the <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen role="root"><userinput>make install &&
+mv -v /usr/sbin/unbound-host /usr/bin</userinput></screen>
+
+ <para>
+ If you built html documentation, install it by running the following
+ commands as the <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen role="root"><userinput>install -v -m755 -d
/usr/share/doc/unbound-&unbound-version; &&
+install -v -m644 doc/html/*
/usr/share/doc/unbound-&unbound-version;</userinput></screen>
+
+ </sect2>
+
+ <sect2 role="commands">
+ <title>Command Explanations</title>
+
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+ href="../../xincludes/static-libraries.xml"/>
+
+ <para>
+ <option>--with-libevent</option>: This option enables libevent support
+ allowing use of large outgoing port ranges.
+ </para>
+
+ <para>
+ <option>--with-pyunbound</option>: This option enables building of the
Python
+ bindings.
+ </para>
+
+ </sect2>
+
+ <sect2 role="configuration">
+ <title>Configuring Unbound</title>
+
+ <sect3 id="unbound-config">
+ <title>Config Files</title>
+
+ <para><filename>/etc/unbound/unbound.conf</filename></para>
+
+ <indexterm zone="unbound unbound-config">
+ <primary
sortas="e-etc-unbound-unbound.conf">/etc/unbound/unbound.conf</primary>
+ </indexterm>
+
+ </sect3>
+
+ <sect3>
+ <title>Configuration Information</title>
+
+ <para>
+ In the default configuration, <command>unbound</command> will bind to
+ localhost (127.0.0.1 IP address) and allow recursive queries only from
+ localhost clients. If you want to use <command>unbound</command> for
+ local DNS resolution, run the following command as the
+ <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen role="root"><userinput>echo "nameserver 127.0.0.1" >
/etc/resolv.conf</userinput></screen>
+
+ <para>
+ If you are using a DHCP client for connecting to a network,
+ <filename>/etc/resolv.conf</filename> gets overwritten with values
+ provided by DHCP server. You can override this, for example in
+ <xref linkend="dhcp"/>, by running the following command:
+ </para>
+
+<screen role="root"><userinput>sed -i '/request /i\supersede
domain-name-servers 127.0.0.1;' \
+ /etc/dhcp/dhclient.conf</userinput></screen>
+
+ <para>
+ For advanced configuration see
<filename>/etc/unbound/unbound.conf</filename>
+ file and the documentation.
+ </para>
+
+ </sect3>
+
+ <sect3 id="unbound-init">
+ <title>Boot Script</title>
+
+ <para>If you want the <application>Unbound</application> server to
+ start automatically when the system is booted, install the
+ <filename>/etc/rc.d/init.d/unbound</filename> init script included
+ in the <xref linkend="bootscripts"/> package.</para>
+
+ <indexterm zone="unbound unbound-init">
+ <primary sortas="f-unbound">unbound</primary>
+ </indexterm>
+
+<screen role="root"><userinput>make install-unbound</userinput></screen>
+
+ </sect3>
+
+ </sect2>
+
+ <sect2 role="content">
+ <title>Contents</title>
+
+ <segmentedlist>
+ <segtitle>Installed Programs</segtitle>
+ <segtitle>Installed Library</segtitle>
+ <segtitle>Installed Directories</segtitle>
+
+ <seglistitem>
+ <seg>
+ unbound, unbound-anchor, unbound-checkconf, unbound-control,
+ unbound-control-setup and unbound-host
+ </seg>
+ <seg>
+ libunbound.so
+ </seg>
+ <seg>
+ /etc/unbound and /usr/share/doc/unbound-&unbound-version;
+ </seg>
+ </seglistitem>
+ </segmentedlist>
+
+ <variablelist>
+ <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+ <?dbfo list-presentation="list"?>
+ <?dbhtml list-presentation="table"?>
+
+ <varlistentry id="unbound-prog">
+ <term><command>unbound</command></term>
+ <listitem>
+ <para>
+ is a DNS resolver daemon.
+ </para>
+ <indexterm zone="unbound unbound-prog">
+ <primary sortas="b-unbound">unbound</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="unbound-anchor">
+ <term><command>unbound-anchor</command></term>
+ <listitem>
+ <para>
+ performs setup or update of the root trust anchor for DNSSEC
+ validation.
+ </para>
+ <indexterm zone="unbound unbound-anchor">
+ <primary sortas="b-unbound-anchor">unbound-anchor</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="unbound-checkconf">
+ <term><command>unbound-checkconf</command></term>
+ <listitem>
+ <para>
+ checks <command>unbound</command> configuration file for syntax
+ and other errors.
+ </para>
+ <indexterm zone="unbound unbound-checkconf">
+ <primary sortas="b-unbound-checkconf">unbound-checkconf</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="unbound-control">
+ <term><command>unbound-control</command></term>
+ <listitem>
+ <para>
+ performs remote administration on the <command>unbound</command>
DNS
+ resolver.
+ </para>
+ <indexterm zone="unbound unbound-control">
+ <primary sortas="b-unbound-control">unbound-control</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="unbound-control-setup">
+ <term><command>unbound-control-setup</command></term>
+ <listitem>
+ <para>
+ generates self-signed certificate and private keys for the server
+ and client.
+ </para>
+ <indexterm zone="unbound unbound-control-setup">
+ <primary
sortas="b-unbound-control-setup">unbound-control-setup</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="unbound-host">
+ <term><command>unbound-host</command></term>
+ <listitem>
+ <para>
+ is a DNS lookup utility similar to <command>host</command> from
+ <xref linkend="bind-utils"/>.
+ </para>
+ <indexterm zone="unbound unbound-host">
+ <primary sortas="b-unbound-host">unbound-host</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry id="libunbound">
+ <term><filename class="libraryfile">libunbound.so</filename></term>
+ <listitem>
+ <para>
+ provides the <application>Unbound</application> API functions to
+ programs.
+ </para>
+ <indexterm zone="unbound libunbound">
+ <primary sortas="c-libunbound">libunbound.so</primary>
+ </indexterm>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
+ </sect2>
+
+</sect1>
Modified: trunk/bootscripts/Makefile
==============================================================================
--- trunk/bootscripts/Makefile Sun Jul 21 12:06:50 2013 (r11461)
+++ trunk/bootscripts/Makefile Sun Jul 21 16:16:47 2013 (r11462)
@@ -462,6 +462,16 @@
install -m ${MODE} blfs/init.d/sysstat ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/sysstat ${EXTDIR}/rc.d/rcS.d/S85sysstat
+install-unbound: create-dirs
+ install -m ${MODE} blfs/init.d/unbound ${EXTDIR}/rc.d/init.d/
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc0.d/K79unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc1.d/K79unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc2.d/K79unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc3.d/S21unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc4.d/S21unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc5.d/S21unbound
+ ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc6.d/K79unbound
+
install-virtuoso: create-dirs
install -m ${MODE} blfs/init.d/virtuoso ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc0.d/K40virtuoso
@@ -856,6 +866,16 @@
rm -f ${EXTDIR}/rc.d/init.d/sysstat
rm -f ${EXTDIR}/rc.d/rcS.d/S85sysstat
+uninstall-unbound:
+ rm -f ${EXTDIR}/rc.d/init.d/unbound
+ rm -f ${EXTDIR}/rc.d/rc0.d/K79unbound
+ rm -f ${EXTDIR}/rc.d/rc1.d/K79unbound
+ rm -f ${EXTDIR}/rc.d/rc2.d/K79unbound
+ rm -f ${EXTDIR}/rc.d/rc3.d/S21unbound
+ rm -f ${EXTDIR}/rc.d/rc4.d/S21unbound
+ rm -f ${EXTDIR}/rc.d/rc5.d/S21unbound
+ rm -f ${EXTDIR}/rc.d/rc6.d/K79unbound
+
uninstall-virtuoso:
rm -f ${EXTDIR}/rc.d/init.d/virtuoso
rm -f ${EXTDIR}/rc.d/rc0.d/K40virtuoso
@@ -939,6 +959,7 @@
install-svn \
install-sysstat \
install-vsftpd \
+ install-unbound \
install-virtuoso \
install-winbindd \
install-xinetd \
@@ -979,6 +1000,7 @@
uninstall-stunnel \
uninstall-svn \
uninstall-sysstat \
+ uninstall-unbound \
uninstall-virtuoso \
uninstall-vsftpd \
uninstall-winbindd \
Added: trunk/bootscripts/blfs/init.d/unbound
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/bootscripts/blfs/init.d/unbound Sun Jul 21 16:16:47 2013
(r11462)
@@ -0,0 +1,59 @@
+#!/bin/sh
+########################################################################
+# Begin unbound
+#
+# Description : Unbound DNS resolver boot script
+#
+# Author : Igor Živković <[email protected]>
+#
+# Version : BLFS SVN
+#
+########################################################################
+
+
+### BEGIN INIT INFO
+# Provides: unbound
+# Required-Start: $network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Starts Unbound DNS resolver
+# X-LFS-Provided-By: BLFS
+### END INIT INFO
+
+. /lib/lsb/init-functions
+
+#$LastChangedBy$
+#$Date$
+
+case "$1" in
+ start)
+ log_info_msg "Starting Unbound DNS resolver..."
+ unbound-anchor
+ start_daemon /usr/sbin/unbound
+ evaluate_retval
+ ;;
+
+ stop)
+ log_info_msg "Stopping Unbound DNS resolver..."
+ killproc -p "/run/unbound.pid" /usr/sbin/unbound
+ evaluate_retval
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /usr/sbin/unbound
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End unbound
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page