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 27th November 2011, 22:36
pjanzen pjanzen is offline
Junior Member
 
Join Date: Jun 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig 3.0.4.1 and bind9

Hi All,

Today I upgraded to version 3.0.4.1 and all when fine untill I updated a zone in the dns module, It cleared the zone file right out. I have tried to troubleshoot this but I am stuck. I see the zone and record in the GUI and I see it is inserted into the database. The (not so) funny thing is that when I create a new domain the file is created but all the A and MX and NS records are not added to the file.

This is what I get from the logfile.

/var/log/ispconfig/ispconfig.log

Code:
27.11.2011-21:17 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
27.11.2011-21:17 - DEBUG - Found 7 changes, starting update process.
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_soa (`id`,`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`,`update_acl`) VALUES ('13','1','0','riud','riud','','5','paul.j2ict.net.','ns1.j2ict.net.','dnsadmin.j2ict.nl.','2011112701','28800','7200','604800','86400','86400','Y','','','')
27.11.2011-21:17 - DEBUG - Calling function 'soa_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_soa_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'soa_insert' from plugin 'bind_plugin' raised by event 'dns_soa_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND domain file: /etc/bind/pri.paul.j2ict.net
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 321
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 322
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 323
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 324
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 325
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 326
27.11.2011-21:17 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:17 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:17 - DEBUG - Processed datalog_id 327
Adding a new record to the sub domain.

Code:
27.11.2011-21:31 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
27.11.2011-21:31 - DEBUG - Found 3 changes, starting update process.
27.11.2011-21:31 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('101','1','0','riud','riud','','5','13','test-record-for-forum','A','10.11.12.13','0','86400','Y','2011-11-27 21:30:25','2011112701')
27.11.2011-21:31 - DEBUG - Calling function 'rr_update' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_update'.
27.11.2011-21:31 - DEBUG - Calling function 'rr_update' from plugin 'bind_plugin' raised by event 'dns_rr_update'.
27.11.2011-21:31 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:31 - DEBUG - Processed datalog_id 328
27.11.2011-21:31 - DEBUG - Replicated from master: REPLACE INTO dns_soa (`id`,`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`,`update_acl`) VALUES ('','','','','','','','','','','','','','','','','','','','')
27.11.2011-21:31 - DEBUG - Calling function 'soa_update' from plugin 'bind_dlz_plugin' raised by event 'dns_soa_update'.
27.11.2011-21:31 - DEBUG - Calling function 'soa_update' from plugin 'bind_plugin' raised by event 'dns_soa_update'.
27.11.2011-21:31 - DEBUG - Writing BIND domain file: /etc/bind/pri.paul.j2ict.net
27.11.2011-21:31 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:31 - DEBUG - Processed datalog_id 329
27.11.2011-21:31 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('','','','','','','','','','','','','','','','')
27.11.2011-21:31 - DEBUG - Calling function 'rr_insert' from plugin 'bind_dlz_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:31 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
27.11.2011-21:31 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
27.11.2011-21:31 - DEBUG - Processed datalog_id 330
27.11.2011-21:31 - DEBUG - Calling function 'restartBind' from module 'dns_module'.
27.11.2011-21:31 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
And the zone file it self.

Code:
root@mx1:/etc/bind# more pri.paul.j2ict.net
$TTL        86400
@       IN      SOA     ns1.j2ict.net. dnsadmin.j2ict.nl. (
                        2011112701       ; serial, todays date + todays serial #
                        28800              ; refresh, seconds
                        7200              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;


root@mx1:/etc/bind#
I also attached a screenshot from the dns module.

Thanks for any help or advice.
Paul.
Attached Images
 
Reply With Quote
Sponsored Links
  #2  
Old 28th November 2011, 08:48
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 120
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

use domain name for MX and NS record.

MX domain.name. mx1.domain.name.
NS domain.name. ns1.domain.name.

(see dot and end of domain)
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #3  
Old 28th November 2011, 12:00
pjanzen pjanzen is offline
Junior Member
 
Join Date: Jun 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Franz,

Thank you for you reply but that did not solve the issue, I have updated the zone accordingly but besides the SOA records nothing is added to the zone file.

Any other idea's?

Paul
Reply With Quote
  #4  
Old 28th November 2011, 13:35
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 120
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

paul.j2ict.net is not domain name, this is subdoain.

you have to create DNS record for: j2ict.net
and then add records
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #5  
Old 5th December 2011, 22:34
Fulike Fulike is offline
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem.
After I upgraded to the fresh IspConfig, my Bind broken down.
My named.conf.local file is empty, and SOA records missing in the fresh saved zone file.
I try to downgrade ispconfig Bind php-s and templates, but it couldn't aid.
Anybody can idea what is this?
Reply With Quote
  #6  
Old 6th December 2011, 17:23
Fulike Fulike is offline
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default log

This is my /var/log/ispconfig/cron.log file matter:

PHP Warning: mysql_select_db(): 7 is not a valid MySQL-Link resource in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 104
PHP Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php on line 310
PHP Warning: mysql_select_db(): 7 is not a valid MySQL-Link resource in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 104
PHP Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php on line 336
Reply With Quote
  #7  
Old 6th December 2011, 17:33
Fulike Fulike is offline
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After I downgraded the /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php file to the 3.0.3 version, the bind start working
Reply With Quote
  #8  
Old 26th January 2012, 13:05
Fulike Fulike is offline
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use 2 Ispconfig server, first was installed 3.0.3. version, at now I upgraded to 3.0.4.2., in this configuration perform the bind error again.
After I downgrade the /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php file, the bind work correct.
Another Ispconfig was installed in 3.0.4.1, at now I upgraded to 3.0.4.2. and this is fine at first
Reply With Quote
  #9  
Old 13th March 2012, 10:34
Fulike Fulike is offline
Junior Member
 
Join Date: Dec 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Heureka!

I found the problem
In My Ispconfig installation, the "bind_dlz" plugin was enabled (/usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php was symlinked to /usr/local/ispconfig/server/plugins-enabled). I deleted the symlink, and the problem is disappeared, the bind works correctly.
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
Perfect Server 9.10 [ISPconfig] HEEELP ArpSoft HOWTO-Related Questions 1 10th March 2010 15:45
help making my DNS play nice w/ ISPConfig ubertuber Server Operation 1 13th June 2007 03:22
ISPConfig 2.3.2-dev released till General 9 4th June 2007 11:46
ISPConfig stop working after i add a new site xTiNcTion Installation/Configuration 4 6th January 2007 00:55
Running ISPConfig on a vserver? tron Installation/Configuration 4 8th December 2005 11:35


All times are GMT +2. The time now is 19:51.


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