<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=MySQL_Bind</id>
	<title>MySQL Bind - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=MySQL_Bind"/>
	<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=MySQL_Bind&amp;action=history"/>
	<updated>2026-05-05T20:03:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.d3xt3r01.tk//index.php?title=MySQL_Bind&amp;diff=554&amp;oldid=prev</id>
		<title>Admin: Created page with &#039;==WHY==  Because I found out that Bind ( the nameserver ) can use mysql to read records and have them updated in real time without restarting. I&#039;m doing this on a centos box.  ==…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=MySQL_Bind&amp;diff=554&amp;oldid=prev"/>
		<updated>2010-08-26T01:07:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==WHY==  Because I found out that Bind ( the nameserver ) can use mysql to read records and have them updated in real time without restarting. I&amp;#039;m doing this on a centos box.  ==…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==WHY==&lt;br /&gt;
&lt;br /&gt;
Because I found out that Bind ( the nameserver ) can use mysql to read records and have them updated in real time without restarting. I&amp;#039;m doing this on a centos box.&lt;br /&gt;
&lt;br /&gt;
==HOW==&lt;br /&gt;
&lt;br /&gt;
wget http://ftp.isc.org/isc/bind9/9.7.1-P2/bind-9.7.1-P2.tar.gz&lt;br /&gt;
tar -xzf bind-9.7.1-P2.tar.gz&lt;br /&gt;
cd bind-9.7.1-P2&lt;br /&gt;
&lt;br /&gt;
wget http://sourceforge.net/projects/mysql-bind/files/mysql-bind/mysql-bind-0.2%20src/mysql-bind.tar.gz/download&lt;br /&gt;
tar -xzf mysql-bind.tar.gz&lt;br /&gt;
&lt;br /&gt;
cp mysql-bind/mysqldb.c bin/named/&lt;br /&gt;
cp mysql-bind/mysqldb.h bin/named/&lt;br /&gt;
cp mysql-bind/mysqldb.c bin/named/include/named/&lt;br /&gt;
cp mysql-bind/mysqldb.h bin/named/include/named/&lt;br /&gt;
&lt;br /&gt;
Edit bin/named/Makefile.in to have something like this:&lt;br /&gt;
&lt;br /&gt;
DBDRIVER_OBJS = mysqldb.@O@&lt;br /&gt;
DBDRIVER_SRCS = mysqldb.c&lt;br /&gt;
Get the output of `mysql_config --cflags` and set it like&lt;br /&gt;
DBDRIVER_INCLUDES = -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv&lt;br /&gt;
Get the output of `mysql_config --libs` and set it like&lt;br /&gt;
DBRIVER_LIBS = -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto&lt;br /&gt;
&lt;br /&gt;
Edit bin/named/main.c :&lt;br /&gt;
1) Add #include &amp;quot;mysqldb.h&amp;quot;   &amp;lt;-- (including quotes) At the top of the includes&lt;br /&gt;
2) Search for &amp;quot;setup(void)&amp;quot; (without quotes), at the end of the function you should see a  ns_server_create(ns_g_mctx, &amp;amp;ns_g_server); right before it add: mysqldb_init();&lt;br /&gt;
3) Search for &amp;quot;cleanup(void)&amp;quot; (without quotes), in the first few lines of the function you should see a call to ns_server_destroy(&amp;amp;ns_g_server); right after it add: mysqldb_clear();&lt;br /&gt;
&lt;br /&gt;
And compile &amp;amp;&amp;amp; install&lt;br /&gt;
&lt;br /&gt;
./configure --prefix=/usr/local --disable-openssl-version-check&lt;br /&gt;
make&lt;br /&gt;
make install&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>