Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th April 2010, 22:44
pts0 pts0 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default BIND delete rr, not increase serial

Hallo,

I migrate sucessfully from myDns to BIND. Great stuff, if work like charm.
Now i still have a problem, when modify a zone and add entries (A, CNAME and so on) all work perfectly, notify and update of slave bind. If i delete, record is delete from zone but serial is not updated, so slave don't sync.
Can somebody give me a hint where should i modify ?

Thanks

pts0
Reply With Quote
Sponsored Links
  #2  
Old 15th April 2010, 22:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

I guess you will have to modify the file /usr/local/ispconfig/interface/web/dns/dns_rr_del.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 15th April 2010, 23:46
pts0 pts0 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default

i tried to add :

class page_action extends tform_actions {

function onAfterDelete() {
global $app, $conf;
//* Update the serial number of the SOA record
$soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND"
.$app->tform->getAuthSQL('r'));
$soa_id = intval($_POST["zone"]);
$serial = $app->validate_dns->increase_serial($soa["serial"]);
$app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
}
}

$app->tform_actions->onDelete();

but i missed something, still not working

pts0
Reply With Quote
  #4  
Old 16th April 2010, 08:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Looks mostly ok. But I dont think that you have a post parameter 'zone' here, so

$soa_id = intval($_POST["zone"]);

should be:

$soa_id = intval($this->dataRecord["zone"]);

Additionally, I dont know if the validate_dns library is loaded, you might want to add right after the global statement something like:

$app->uses('validate_dns);
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 16th April 2010, 11:48
pts0 pts0 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default

still don't work, will check/debug in the night .

What the difference between : bind_dlz_plugin.inc and bind_plugin.inc plugin ? which one should i take ?

pts0
Reply With Quote
  #6  
Old 16th April 2010, 11:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
 
Default

The dlz plugin is for bind-dlz. You should use bind_plugin.inc plugin.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Denied Bind Slave Server Problems wxman Server Operation 17 22nd March 2014 12:30
Problem on restart bind9 satimis Server Operation 6 30th October 2007 02:01
dns server error Hellbound General 7 2nd August 2007 09:18
ISPConfig and BIND on Debian sarge (rfc1912 : failed on zonecheck) arnaud Installation/Configuration 13 6th March 2007 12:40
Bind-Chroot-Howto (Debian) spaz HOWTO-Related Questions 5 9th March 2006 14:50


All times are GMT +2. The time now is 18:44.


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