Secondaries PHP Conversion

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
bartje3
Forum User
Forum User
Posts: 14
Joined: Tue May 03, 2005 5:33 am
Location: Belgium

Secondaries PHP Conversion

Unread post by bartje3 »

Hi all !

I have written a PHP conversion of ART's secondary nameserver scripts.

My intention was to make it fit generally to all other operating systems, in my case Windows2003 server, and to make it easier to customize for people which are familiar with PHP. Like this the script could grow into a more secured state and where anyone could make changes (adds) to make it fit for any purpose.

Before I made the conversion there was only the possibility to run it on Linux, or on Windows in a Cygwin enviroment. Because Windows doesn't have a "domain" file in their named dir, Scott's script (gen-secondaries.sh) failed generating the secondaries.include file. Therefore I made the PHP conversion based on the named.conf itself.

One day after I finished with the PHP version of gen-secondaries.php and testing it on Linux and Windows, I wrote a conversion of Scott's xfer-config.sh. Now I've finished testing the two scripts between a Linux and a Windows server. After all there are two things I would like to add to the xfer-config:

- Check if zone exists twice (domain exists on two servers, after migration). Because Bind will fail to restart in that case. --> main reason for a lot of complains.

- Integrate posibilities to add more servers, so I wouldn't have to multiply ART's code twice or more... Like this the receiving server could act as secondary for a bunch of servers without having to change the code. This feature would also assist checking of a centralized secondaries.include (from 1. suggestion).

But I don't want to blow the script up to a, let me say "4PSA" level, with rings, bells and a gui...
Lets keep it simple...and free.

Any suggestions to this thread is welcome !

Regards,
Bart
Post Reply