PDA

View Full Version : DNS - call script to created named.conf entries on secondaries


cstone
12th September 2005, 22:56
I need to insert a script call into ISPConfig such that when a new domain is created the script is run which will add the information for the domain in another server's named.conf file. Trouble is that I am having difficulty in determining where to insert my script call. From what I've been able to figure out, it might be in the dns class file for the dns->make_zonefile function.

Can anyone enlighten me on where to do this? Am I on the right track?


Chris

till
13th September 2005, 08:42
Did you mean a new domain in the DNS-Manager (SOA) or a new domain (website)?

cstone
14th September 2005, 23:54
I have a shell script that will ssh into my secondary DNS servers and add an entry in that named.conf file for a new domain, pointing the master back to the ispconfig server. What I need to do now is to add a call in the ispconfig scripts such that when a new domain is created in the DNS Manager (and/or elsewhere in ispconfig if this is done elsewhere also), my script is run. Needing to know which script and where in ispconfig the domain zone file creation occurs so I can insert a call to my shell script there.


Chris

falko
15th September 2005, 00:03
This happens in /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php.

cstone
15th September 2005, 01:16
Ok, thanks - that's where I was headed to dig around and find a place to insert the call to my shell script.

Appreciate it.....