finished testing the diff file yesterday.
Downloaded bind-9.4.3-P3.tar.gz and made sure the codes work against it and the generated the patch by comparing the original files with the modified ones.
The diff included modifications to enable the dlz driver so that the vanilla codes can be changed without much intervention.
To replicate the results, the instructions are as follows:
- download bind-9.4.3-P3.tar.gz
- download mysql-bind.tar.gz
- copy bind-9.4.3-P3.tar.gz to <Base Directory>
- copy mysql-bind.tar.gz to <Base Directory>
- cd <Base Directory>
- tar -zxvf bind-9.4.3-P3.tar.gz
- tar -zxvf mysql-bind.tar.gz
- patch -p0 < ../allpatch.diff
- cd bind-9.4.3-P3/bin/named/
- ln -s ../../../mysql-bind/mysqldb.c mysqldb.c
- cd include/named/
- ln -s ../../../../../mysql-bind/mysqldb.h mysqldb.h
- cd <Base Directory>/bind-9.4.3-P3
- ./configure –disable-openssl-version-check CFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib -lGeoIP"
- make
- sudo make install
The software requirements before the software to compile is that the geoIP API must be installed.
The files:
- THE patch: