View Full Version : DNS - call script to created named.conf entries on secondaries
12th September 2005, 23: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?
13th September 2005, 09:42
Did you mean a new domain in the DNS-Manager (SOA) or a new domain (website)?
15th September 2005, 00: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.
15th September 2005, 01:03
This happens in /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php.
15th September 2005, 02:16
Ok, thanks - that's where I was headed to dig around and find a place to insert the call to my shell script.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.