MySQL BIND SDB Driver |
||
|
Building the BIND ServerThe driver module and header file (mysqldb.c and mysqldb.h) must be copied to (or linked into) the bind9/bin/named and bind9/bin/named/include directories respectively, and must be added to the DBDRIVER_OBJS and DBDRIVER_SRCS lines in bin/named/Makefile.in (e.g. add mysqldb.c to DBDRIVER_SRCS and mysqldb.@O@ to DBDRIVER_OBJS). Add the results from the command (e.g. Add the results from the command (e.g. In bind9/bin/named/main.c, add an include to mysqldb.h
(e.g. Unregistration should be in cleanup(), by adding the call You should now be able to change to your BIND directory and build BIND with the commands
You should read the README file with the BIND distribution for more options to pass to configure. You may also want to read the document sdb in the bind doc/misc/ directory. Entry in named.conf
In the first line, change the zone to match your domain. In the database line, dbname is the name of the MySQL database, tablename is the name of the table for this domain/zone, hostname is the name of the database host, user and password are for access to the database. Database SchemaYou should create a database for the driver and add one table for each domain. The following SQL will create a table for one domain. Change mydomain to something that will represent the domain more clearly.
Example Database DataThe following is an SQL dump of an example table for a domain. The entries should be familiar to anyone who is familiar with BIND zone files. Change it to match your domain.
|
|
Copyright © 2004
Robert Prouse |
This project is supported by Semaview, Inc. |