Introduction to Unbound
Unbound 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
This package is known to build and work properly using an LFS-7.7
Download (HTTP): http://www.unbound.net/downloads/unbound-1.5.3.tar.gz
Download MD5 sum: 1e95fdcbaaf5dc87432d898006a5eb13
Download size: 4.6 MB
Estimated disk space required: 37 MB (Add 70 MB for HTML
Estimated build time: 0.4 SBU (Add 0.2 SBU for tests)
SWIG-3.0.5 (for Python bindings), Doxygen-126.96.36.199 (for html documentation), and
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/unbound
Installation of Unbound
There should be a dedicated user and group to take control of the
unbound daemon after
it is started. Issue the following commands as the
groupadd -g 88 unbound &&
useradd -c "Unbound DNS resolver" -d /var/lib/unbound -u 88 \
-g unbound -s /bin/false unbound
Install Unbound by running the
./configure --prefix=/usr \
If you have Doxygen-188.8.131.52 package installed and want to
build html documentation, run the following command:
To test the results, issue make
Now, as the
make install &&
mv -v /usr/sbin/unbound-host /usr/bin/
If you built html documentation, install it by running the
following commands as the
install -v -m755 -d /usr/share/doc/unbound-1.5.3 &&
install -v -m644 doc/html/* /usr/share/doc/unbound-1.5.3
switch prevents installation of static versions of the libraries.
--with-libevent: This switch enables
libevent support allowing use of large outgoing port ranges.
--with-pyunbound: This switch enables
building of the Python bindings.
In the default configuration, unbound will bind to localhost
(127.0.0.1 IP address) and allow recursive queries only from
localhost clients. If you want to use unbound for local DNS
resolution, run the following command as the
echo "nameserver 127.0.0.1" > /etc/resolv.conf
If you are using a DHCP client for connecting to a network,
/etc/resolv.conf gets overwritten
with values provided by DHCP server. You can override this, for
example in DHCP-4.3.2, by running the following command as
sed -i '/request /i\supersede domain-name-servers 127.0.0.1;' \
For advanced configuration see
/etc/unbound/unbound.conf file and the
When Unbound is installed, some
packages may fail to build if
/etc/unbound/root.key is not present. It can be
created by running the following command as the
To start the unbound daemon at boot, install
the systemd unit from the blfs-systemd-units-20150210 package by
running the following command as the
unbound-checkconf, unbound-control, unbound-control-setup, and
is a DNS resolver daemon.
performs setup or update of the root trust anchor for
checks unbound configuration
file for syntax and other errors.
performs remote administration on the unbound DNS resolver.
generates self-signed certificate and private keys for
the server and client.
is a DNS lookup utility similar to host from BIND Utilities-9.10.2-P1.
provides the Unbound API
functions to programs.
Last updated on 2015-07-31 21:26:22 -0700