ISPConfig 3.0.4.1 and bind9

Discussion in 'General' started by pjanzen, Nov 27, 2011.

  1. pjanzen

    pjanzen New Member

    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:
    [email protected]:/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
    ;
    
    
    [email protected]:/etc/bind#
    
    I also attached a screenshot from the dns module.

    Thanks for any help or advice.
    Paul.
     

    Attached Files:

  2. Franz

    Franz Member

    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)
     
  3. pjanzen

    pjanzen New Member

    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
     
  4. Franz

    Franz Member

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

    you have to create DNS record for: j2ict.net
    and then add records
     
  5. Fulike

    Fulike New Member

    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?
     
  6. Fulike

    Fulike New Member

    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
     
  7. Fulike

    Fulike New Member

    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 :)
     
  8. Fulike

    Fulike New Member

    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
     
  9. Fulike

    Fulike New Member

    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.
     

Share This Page