On Sep 1, 2010, at 11:26 AM, Josh Miller wrote:
On 08/31/2010 12:10 PM, Scott Haneda wrote:
If anyone can point me to a simple tutorial, or explain how they managed to
get this up and running on RHEL with a current version of BIND, I would
appreciate any and all information that can be shared. I will do my best to
follow up with what I learn once this is all done so others can hopefully
have an easier time.
Hi Scott,
I have just made a quick write-up of my use of Bind-DLZ on Centos 5.X. I
would welcome any comments.
http://itsecureadmin.com/2010/09/bind-dlz-with-mysql/
Thanks! I don't think I will have much issue with the configuration, this is a
second install as a slave to a master that resides elsewhere. Probably the
hardest part will be getting Mysql to replicate across a non local lan, but it
should be not that terrible to get working.
My issue seems to be the actual install.
I am using this rpm:
http://people.redhat.com/atkac/bind/bind-9.7.1-2.P2.fc13.src.rpm
When I run rpm -i on that it warns me about mysql-devel and posgresql-devel, so
I installed mysql-devel and commented out the need for the postgresql-devel
from the spec file.
Next up I run:
rpmbuild -bb /usr/src/redhat/SPECS/bind.spec
That command does not complete, and is also installing a chrooted BIND, which I
don't want:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.84489
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf bind-9.7.1-P2
+ /bin/gzip -dc /usr/src/redhat/SOURCES/bind-9.7.1-P2.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd bind-9.7.1-P2
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #5 (bind-nonexec.patch):'
Patch #5 (bind-nonexec.patch):
+ patch -p1 -b --suffix .nonexec -s
+ echo 'Patch #10 (bind-9.5-PIE.patch):'
Patch #10 (bind-9.5-PIE.patch):
+ patch -p1 -b --suffix .PIE -s
+ echo 'Patch #16 (bind-9.3.2-redhat_doc.patch):'
Patch #16 (bind-9.3.2-redhat_doc.patch):
+ patch -p1 -b --suffix .redhat_doc -s
+ echo 'Patch #104 (bind-96-dyndb.patch):'
Patch #104 (bind-96-dyndb.patch):
+ patch -p1 -b --suffix .dyndb -s
+ echo 'Patch #111 (bind97-compat-default-keysdir.patch):'
Patch #111 (bind97-compat-default-keysdir.patch):
+ patch -p1 -b --suffix .compat-default-keysdir -s
+ echo 'Patch #101 (bind-96-old-api.patch):'
Patch #101 (bind-96-old-api.patch):
+ patch -p1 -b --suffix .old-api -s
+ mkdir bin/named-sdb
+ cp -r bin/named/Makefile.in bin/named/Makefile.in.PIE bin/named/bind.keys.h
bin/named/bind9.xsl bin/named/bind9.xsl.h bin/named/bindkeys.pl
bin/named/builtin.c bin/named/client.c bin/named/config.c bin/named/control.c
bin/named/controlconf.c bin/named/convertxsl.pl bin/named/include
bin/named/interfacemgr.c bin/named/listenlist.c bin/named/log.c
bin/named/logconf.c bin/named/lwaddr.c bin/named/lwdclient.c
bin/named/lwderror.c bin/named/lwdgabn.c bin/named/lwdgnba.c
bin/named/lwdgrbn.c bin/named/lwdnoop.c bin/named/lwresd.8 bin/named/lwresd.c
bin/named/lwresd.docbook bin/named/lwresd.html bin/named/lwsearch.c
bin/named/main.c bin/named/main.c.dyndb bin/named/named.8
bin/named/named.8.redhat_doc bin/named/named.conf.5
bin/named/named.conf.docbook bin/named/named.conf.html bin/named/named.docbook
bin/named/named.html bin/named/notify.c bin/named/query.c bin/named/server.c
bin/named/server.c.compat-default-keysdir bin/named/server.c.dyndb
bin/named/sortlist.c bin/named/statscha
nnel.c bin/named/tkeyconf.c bin/named/tsigconf.c bin/named/unix
bin/named/update.c bin/named/win32 bin/named/xfrout.c bin/named/zoneconf.c
bin/named-sdb
+ echo 'Patch #11 (bind-9.3.2b2-sdbsrc.patch):'
Patch #11 (bind-9.3.2b2-sdbsrc.patch):
+ patch -p1 -b --suffix .sdbsrc -s
+ cp -fp contrib/sdb/ldap/ldapdb.c contrib/sdb/ldap/ldapdb.h bin/named-sdb
+ cp -fp contrib/sdb/pgsql/pgsqldb.c contrib/sdb/pgsql/pgsqldb.h bin/named-sdb
+ cp -fp contrib/sdb/sqlite/sqlitedb.c contrib/sdb/sqlite/sqlitedb.h
bin/named-sdb
+ cp -fp contrib/sdb/dir/dirdb.c contrib/sdb/dir/dirdb.h bin/named-sdb
+ mkdir -p bin/sdb_tools
+ cp -fp /usr/src/redhat/SOURCES/ldap2zone.c bin/sdb_tools/ldap2zone.c
+ cp -fp /usr/src/redhat/SOURCES/bind-9.3.1rc1-sdb_tools-Makefile.in
bin/sdb_tools/Makefile.in
+ cp -fp contrib/sdb/ldap/zone2ldap.1 contrib/sdb/ldap/zone2ldap.c bin/sdb_tools
+ cp -fp contrib/sdb/pgsql/zonetodb.c bin/sdb_tools
+ cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
+ echo 'Patch #12 (bind-9.5-sdb.patch):'
Patch #12 (bind-9.5-sdb.patch):
+ patch -p1 -b --suffix .sdb -s
+ echo 'Patch #17 (bind-9.3.2b1-fix_sdb_ldap.patch):'
Patch #17 (bind-9.3.2b1-fix_sdb_ldap.patch):
+ patch -p1 -b --suffix .fix_sdb_ldap -s
+ echo 'Patch #62 (bind-9.5-sdb-sqlite-bld.patch):'
Patch #62 (bind-9.5-sdb-sqlite-bld.patch):
+ patch -p1 -b --suffix .sdb-sqlite-bld -s
+ echo 'Patch #71 (bind-9.5-overflow.patch):'
Patch #71 (bind-9.5-overflow.patch):
+