Putting zones is Mysql database

Robby Russell rrussell at commandprompt.com
Sat Feb 21 20:05:41 UTC 2004


Vishal wrote:
> BlankHello All,
> 
> I m on a Solaris/Redhat/Cobalt box with Bind , I have been adding the zone
> file entries Manually in named.conf and the zones in /usr/dns/, Since my
> domain list is growing, I m looking for a Automated process of doing this in
> a more secure and safe way.
> 
> What i want is that all the zones files (existing) should come from a Mysql
> database, so that i'll write in a script that will add a Entry in a
> named.conf file and also insert it in a mysql database. same goes while
> retrieving the zones.
> 

The best way to do this would be to create your database schema, import 
all your data, and then write a script (perl, python, php, etc...etc..) 
to create your named.conf and various zone files using data in the 
database. Then perform a named reload and your changes are then made. 
Bind relies on the files on the OS level, so just dynamically create 
those files when you need them to be updated/created/etc.

-Robby


-- 
Robby Russell,  |  Sr. Administrator / Lead Programmer
Command Prompt, Inc.   |  http://www.commandprompt.com
rrussell at commandprompt.com | Telephone: (503) 222.2783



More information about the bind-users mailing list