Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th December 2010, 12:53
alienn alienn is offline
Junior Member
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DNS Template: also-notify also possible?

Hi,
right now I have the following template:
Code:
[ZONE]
origin={DOMAIN}.
ns=ns.domain.de.
mbox=hostmaster.domain.de.
refresh=28800
retry=7200
expire=604800
minimum=86400
ttl=86400

[DNS_RECORDS]
A|{DOMAIN}.|11.22.33.44|0|86400
A|www|11.22.33.44|0|86400
NS|{DOMAIN}.|ns.domain.de.|0|86400
NS|{DOMAIN}.|ns2.domain.de.|0|86400
NS|{DOMAIN}.|ns.seconddomain.de.|0|86400
MX|{DOMAIN}.|mail.domain.de.|10|86400
As ISPConfig is hidden primary for the zones I'd like to include the "Also Notify" and "Allow zone transfer" options also in the template.
Is this possible and if so how?


Cheers,
Alienn
Reply With Quote
Sponsored Links
  #2  
Old 11th December 2010, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I don't think this is possible, but you can copy the template /usr/local/ispconfig/server/conf/bind_named.conf.local.master to /usr/local/ispconfig/server/conf-custom/bind_named.conf.local.master and then include your changes in /usr/local/ispconfig/server/conf-custom/bind_named.conf.local.master.
__________________
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
  #3  
Old 29th January 2011, 14:03
spokke spokke is offline
Junior Member
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 4 Times in 2 Posts
Default yes it's possible :)

Hi, i've find a solution for the also_notify field in the dns template (ispconfig3 on Ubuntu )

1. Add to your template, in the [zone] section, the line

also_notify=serveripaddress

2. then edit the file

/usr/local/ispconfig/interface/web/dns/dns_wizard.php ( make a backup copy of the original )

3. after the the line 237 add

$also_notify = $app->db->quote($vars['also_notify']);

4. modify this line

from

$insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`) VALUES ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '$serial', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer')";

to

$insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`, `also_notify`) VALUES ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '$serial', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer', '$also_notify')";


Finish !

I hope this solution will be useful
Reply With Quote
The Following 2 Users Say Thank You to spokke For This Useful Post:
Davide (31st January 2011), till (29th January 2011)
  #4  
Old 31st January 2011, 12:00
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
 
Default

falko:

Would it be possible to add these changes to ispconfig?

It would be really great to have "also notify" and "alow zone transfers" to dns templates.

Thank you!

** EDIT **
Sorry, I've just seem it's in 3.0.4 roadmap

Thanks anyway

Last edited by Davide; 31st January 2011 at 12:14.
Reply With Quote
Reply

Bookmarks

Tags
dns, mydns, question, template

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
Google Apps dayjahone General 19 29th March 2008 17:25
FreeBSD DNS Problem -- any clue ? obzerver General 1 7th January 2008 13:57
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34


All times are GMT +2. The time now is 11:04.


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