[BIND9] Zones files aren't created on 2nd server in cluster

Discussion in 'Installation/Configuration' started by Denny, Dec 2, 2014.

  1. Denny

    Denny New Member

    Hello everyone,

    I've got a damn "bug" in my configuration.
    I set up a 2nd server just for BIND9.

    I installed there ispconfig and used the expert-installation to join them in the cluster.
    Everything works fine now.
    The 2nd server processed all database updates and gets all replications from master.
    E.g. ispconfig.log:
    02.12.2014-22:38 - DEBUG - Processed datalog_id 2870
    02.12.2014-22:38 - 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 ('408','1','9','riud','riud','','5','27','safsaf.de.','NS','ns1.elitegaming.de.','0','3600','Y','2014-12-02 23:37:21','')
    02.12.2014-22:38 - DEBUG - Processed datalog_id 2871
    02.12.2014-22:38 - 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 ('409','1','9','riud','riud','','5','27','safsaf.de.','NS','ns2.elitegaming.de.','0','3600','Y','2014-12-02 23:37:21','')
    02.12.2014-22:38 - DEBUG - Processed datalog_id 2872
    02.12.2014-22:38 - 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 ('410','1','9','riud','riud','','5','27','safsaf.de.','MX','mail.safsaf.de.','10','3600','Y','2014-12-02 23:37:21','')


    But:
    When I add or edit a dns zone, the file is created on the master but not on the slave. The 2nd server got dns component activated on the interface (and db). It's also configured as "is mirror from server #1"

    So can anyone explain me now why the zone files aren't created even tough the 2nd server get the "actions" from the master?

    Thanks in advance!
     
  2. Denny

    Denny New Member

    I also followed the guide in http://www.faqforge.com/linux/debugging-ispconfig-3-server-actions-in-case-of-a-failure/ and http://www.howtoforge.com/forums/showthread.php?t=58408 but there were no errors posted when running the cronjob manual.
    It's the same whats printed in the logfile.

    This log entrys also shown in the webinterface from the master but I don't figure out why the files weren't created. I don't know what job should create them so I can debug it on my own... tried it now for several hours and I'm clueless now.
     
  3. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Is the server-plugin for bind enabled on the 2nd server?
     
  4. Denny

    Denny New Member

    Hey florian,

    thanks for your response.
    What do you mean with "server-plugin enabled for bind"? In System -> Server Services the 2nd Server have got "1" on DNServer. (Also on DBServer as mentioned above).:
    " 0 0 1 0 1 0"
    Bind is also installed (to be clear :p)

    But how can I check this if it's enabled and if not, how to enable it?
     
    Last edited: Dec 3, 2014
  5. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Check if the plugin is linked to the plugins-enabled folder

    ls -al /usr/local/ispconfig/server/plugins-enabled/bind_plugin.inc.php
     
  6. Denny

    Denny New Member

    root@srv02:~# ls -al /usr/local/ispconfig/server/plugins-enabled/bind_plugin.inc.php
    ls: cannot access /usr/local/ispconfig/server/plugins-enabled/bind_plugin.inc.php: No such file or directory
    root@srv02:~# ls -al /usr/local/ispconfig/server/plugins-enabled
    total 28
    drwxr-s--- 2 root root 4096 Dec 2 22:01 .
    drwxr-s--- 13 root root 4096 Dec 2 22:36 ..
    lrwxrwxrwx 1 root root 67 Dec 2 22:01 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    -rwxr-x--- 1 root root 45 Dec 2 22:01 empty.dir
    lrwxrwxrwx 1 root root 75 Dec 2 22:01 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx 1 root root 77 Dec 2 22:01 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx 1 root root 76 Dec 2 22:01 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php



    No it's not :-\
    root@srv02:/usr/local/ispconfig/server/plugins-enabled# ln -s /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php .
    root@srv02:/usr/local/ispconfig/server/plugins-enabled# ls -la
    total 32
    drwxr-s--- 2 root root 4096 Dec 3 10:06 .
    drwxr-s--- 13 root root 4096 Dec 2 22:36 ..
    lrwxrwxrwx 1 root root 67 Dec 2 22:01 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx 1 root root 65 Dec 3 10:06 bind_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
    -rwxr-x--- 1 root root 45 Dec 2 22:01 empty.dir
    lrwxrwxrwx 1 root root 75 Dec 2 22:01 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx 1 root root 77 Dec 2 22:01 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx 1 root root 76 Dec 2 22:01 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php


    But I don't know why this symlink weren't created by ispconfig... guess I misconfigured my whole instance :-\
    Now the zonefiles are created which is also shown in the ispconfig.log:
    03.12.2014-10:08 - 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 ('55','3','3','riud','riud','','5','4','loopback','CNAME','localhost','0','3600','Y','2014-01-12 16:21:09','2014120302')
    03.12.2014-10:08 - DEBUG - Calling function 'rr_update' from plugin 'bind_plugin' raised by event 'dns_rr_update'.
    03.12.2014-10:08 - DEBUG - Writing BIND domain file: /etc/bind/pri.rescue-technology.de
    03.12.2014-10:08 - DEBUG - Writing BIND named.conf.local file: /etc/bind/named.conf.local
    03.12.2014-10:08 - DEBUG - Processed datalog_id 3382


    Thank you very much for the fast response!
     
  7. florian030

    florian030 Well-Known Member HowtoForge Supporter

    The symlink is created during install, when bind is installed, too.
     

Share This Page