Introduction to ldns

ldns is a fast DNS library with the goal to simplify DNS programming and to allow developers to easily create software conforming to current RFCs and Internet drafts. This packages also includes the drill tool.

This package is known to build and work properly using an LFS-7.8 platform.

Package Information

ldns Dependencies



Certificate Authority Certificates and libpcap-1.7.4 (for example programs), Python-2.7.10 and SWIG-3.0.7 (for Python bindings), and Doxygen-1.8.10 (for html documentation)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ldns

Installation of ldns

Install ldns by running the following commands:

sed -i 's/defined(@$also)/@$also/' doc/doxyparse.pl &&

./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --disable-static  \
            --with-drill      &&

If you have Doxygen-1.8.10 installed and want to build html documentation, run the following command:

make doc

This package does not come with a working test suite.

Now, as the root user:

make install

If you built html documentation, install it by running the following commands as the root user:

install -v -m755 -d /usr/share/doc/ldns-1.6.17 &&
install -v -m644 doc/html/* /usr/share/doc/ldns-1.6.17

Command Explanations

sed ... doc/doxyparse.pl: This command fixes an error introduced with perl-5.22.

--disable-static: This switch prevents installation of static versions of the libraries.

--with-drill: This option enables building of the drill tool.

--with-examples: This option enables building of the example programs.

--with-pyldns: This option enables building of the Python bindings.


Installed Programs: drill and ldns-config
Installed Library: libldns.so and /usr/lib/python2.7/site-packages/_ldns.so
Installed Directories: /usr/include/ldns and /usr/share/doc/ldns-1.6.17

Short Descriptions


is a tool like dig from BIND Utilities-9.10.3 designed to get all sorts of information out of the DNS.


shows compiler and linker flags for ldns usage.


provides the ldns API functions to programs.

Last updated on 2015-11-13 08:24:57 -0600