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.6 systemd platform.

Package Information

ldns Dependencies



Certificate Authority Certificates and libpcap-1.6.2 (for example programs), Python-2.7.8 and SWIG-3.0.2 (for Python bindings), and Doxygen-1.8.8 (for html documentation)

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

Installation of ldns

Install ldns by running the following commands:

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

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

make doc

This package does not have a working test suite.

Now, as the root user:

make install

If you have built the 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

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

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

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

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


Installed Programs: drill and ldns-config
Installed Libraries: 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.0-P2 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 2014-08-23 12:03:12 -0700