
27th November 2011, 21:36
|
|
Junior Member
|
|
Join Date: Jun 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

28th November 2011, 07:48
|
|
Senior Member
|
|
Join Date: Jul 2009
Location: Cakovec
Posts: 113
Thanks: 6
Thanked 22 Times in 17 Posts
|
|
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)
|

28th November 2011, 11:00
|
|
Junior Member
|
|
Join Date: Jun 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

28th November 2011, 12:35
|
|
Senior Member
|
|
Join Date: Jul 2009
Location: Cakovec
Posts: 113
Thanks: 6
Thanked 22 Times in 17 Posts
|
|
paul.j2ict.net is not domain name, this is subdoain.
you have to create DNS record for: j2ict.net
and then add records
|

5th December 2011, 21:34
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

6th December 2011, 16:23
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

6th December 2011, 16:33
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

26th January 2012, 12:05
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

13th March 2012, 09:34
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:00.
|
Recent comments
2 days 17 hours ago
3 days 2 hours ago
3 days 5 hours ago
3 days 6 hours ago
3 days 8 hours ago
3 days 9 hours ago
3 days 11 hours ago
3 days 12 hours ago
4 days 4 hours ago
4 days 5 hours ago