Building BIND with GeoIP

tested on slackware current (Aug 2020)

Get rid of distro’s BIND and prepare some GeoIP engine

#slackpkg search libuv
#slackpkg search lmdb
#slackpkg search json-c
removepkg bind

slackpkg search libcap
slackpkg search libidn2
#slackpkg search libmaxminddb
ls -lF /var/log/packages/libmaxminddb-*
ldd /usr/bin/mmdblookup

#recursive matters here
git clone --recursive
cd libmaxminddb/
make install
cd ../
ls -lF /usr/local/lib/pkgconfig/libmaxminddb.pc

grab latest stable BIND. Note with 9.16+, that’s --with-maxminddb

tar xJf bind-9.16.6.tar.xz
cd bind-9.16.6/
./configure --sysconfdir=/etc --localstatedir=/var \
    --with-libtool --with-libidn2 \
    --without-python --without-gssapi \
time make > ../bind.log && echo BUILT
make install
cd ../
named -v
named -V
ls -ldhF /var/run/named/
ls -ldhF /var/named/


while building libmaxminddb you get

maxminddb_test_helper.h:14:10: fatal error: libtap/tap.h: No such file or directory
   14 | #include "libtap/tap.h"
      |          ^~~~~~~~~~~~~~

==> you need to grab the repo with --recursive


maxmind / libmaxminddb