HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   DNS - call script to created named.conf entries on secondaries (http://www.howtoforge.com/forums/showthread.php?t=545)

cstone 12th September 2005 22:56

DNS - call script to created named.conf entries on secondaries
 
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

DNS - call script to created named.conf entries on secondaries
 
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.....


All times are GMT +2. The time now is 00:42.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.