This is the first release of my sql backend to bind 8.
Remember, it's highly alpha so don't blame me if something
happens...  

OK, with that out of the way, he we go.  To apply the diff,
you need to have the source to bind-8.1.2 and mysql installed.
For now, i have the lib path to libmysqlclient hard coded into the 
src/bin/named/Makefile

1. cd into src/bin/named under the bind src tree and do a:
patch </path/to/sql_bind-01-25-99
Things should patch cleanly.  If not, send me an email at
bind@linuxos.net and I will see what i can do.

2. create a database in mysql called 'bind' to hold the tables.
If you want to use a different db name, just change the dbname[]
in db_sql.c to whatever you want.

3. create a set of tables to hold the zones using the examples
in table.layout.  Replace the '.' in a zone name with a '_' and
replace a '-' with a '__' so test.org would be test_org and
0.0.127.in-addr.arpa would be 0_0_127_in__addr_arpa. Please 
name the fields the same as what I'm using unless you want to 
change it in db_sql.c to prevent problems.

4. create or modify /etc/named.conf using named.conf-sql as a
template.  Don't forget to create a db user in mysql and add 
them to named.conf.  The user only needs read access to the db.
Fill in the assorted db-* fields in named.conf with what you want.
There is no need for a 'file' statment under each zone.  The 
'sql {}' takes the place of it.

5. Insert the data into the table.  Remember, there isn't much
error checking just yet so make sure of what your entering.

6. cd into the src directory where you uncompressed bind's source
and 'make clean && make depend && make' to compile up a fresh copy.

7. Make sure you backup you current named and copy the new named to
where ever you want and fire it up.


