Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th September 2005, 22:56
cstone cstone is offline
Junior Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2005, 08:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Did you mean a new domain in the DNS-Manager (SOA) or a new domain (website)?
Reply With Quote
  #3  
Old 14th September 2005, 23:54
cstone cstone is offline
Junior Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #4  
Old 15th September 2005, 00:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

This happens in /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th September 2005, 01:16
cstone cstone is offline
Junior Member
 
Join Date: Sep 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.....
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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