Adding secondary DNS zone does not get created

Discussion in 'Installation/Configuration' started by iqpascal, Nov 20, 2021.

  1. iqpascal

    iqpascal Member

    Hiya,
    I am trying to add a DNS to one of my servers. Bind is installed. ISPConfig has the correct paths and DNS enabled on that specific server.
    I am able to create a secondary zone on that server within ISPConfig as well but it does not get actually created on the filesystem itself.
    There seem to be no errors in logs anywhere.

    Does anybody know where I can look to see what is going wrong? As this is the first time for me that adding a DNS server with secondary zones fails in working.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. iqpascal

    iqpascal Member

    mhm I am afraid it just finishes the job without any sign of error. The job is also no longer in the job queue.

    It's just finished without the actual work being done or throw an error.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Does the secondary server work, does it answer to name service queries? My signature has link to DNS tutorial, info on how to test it it working.
     
  5. iqpascal

    iqpascal Member

    The bind server on itself works. It just has little to do as it does not add the secondary zones and does not allow for recursive queries to function (tho if I would enable the recursion it works).

    I have other secondary DNS servers within this ISPConfig environment that work just fine and are setup on the same OS Type, same guide used etc. I just need to replace one of them with a new one so I can decommission one of the other slaves.

    If I look at the other working slave the zones are in /etc/bind/named.conf.local but on the non working server the zones I added aren't there in named.conf.local
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please comment out server.sh cronjob on the slave server, add a new zone via ISPConfig UI for this slave server, run server.sh on the slave server and then post the whole output that you got from server.sh here.
     
  8. iqpascal

    iqpascal Member

    Oops. Bumped the wrong option to debug :facepalm:
    This is the log after running:

    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_insert' from plugin 'bind_dlz_plugin' for event 'dns_soa_insert'
    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_update' from plugin 'bind_dlz_plugin' for event 'dns_soa_update'
    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_delete' from plugin 'bind_dlz_plugin' for event 'dns_soa_delete'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_insert' from plugin 'bind_dlz_plugin' for event 'dns_rr_insert'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_update' from plugin 'bind_dlz_plugin' for event 'dns_rr_update'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_delete' from plugin 'bind_dlz_plugin' for event 'dns_rr_delete'
    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_insert' from plugin 'bind_plugin' for event 'dns_soa_insert'
    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_update' from plugin 'bind_plugin' for event 'dns_soa_update'
    20.11.2021-13:49 - DEBUG - Unable to register function 'soa_delete' from plugin 'bind_plugin' for event 'dns_soa_delete'
    20.11.2021-13:49 - DEBUG - Unable to register function 'slave_insert' from plugin 'bind_plugin' for event 'dns_slave_insert'
    20.11.2021-13:49 - DEBUG - Unable to register function 'slave_update' from plugin 'bind_plugin' for event 'dns_slave_update'
    20.11.2021-13:49 - DEBUG - Unable to register function 'slave_delete' from plugin 'bind_plugin' for event 'dns_slave_delete'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_insert' from plugin 'bind_plugin' for event 'dns_rr_insert'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_update' from plugin 'bind_plugin' for event 'dns_rr_update'
    20.11.2021-13:49 - DEBUG - Unable to register function 'rr_delete' from plugin 'bind_plugin' for event 'dns_rr_delete'
    20.11.2021-13:49 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    20.11.2021-13:49 - DEBUG - Found 1 changes, starting update process.
    20.11.2021-13:49 - DEBUG - Replicated from master: REPLACE INTO `dns_slave` (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`origin`,`ns`,`active`,`xfer`) VALUES ('198','1','21','riud','riud','','30','ddddddddd.com.','127.0.0.1','Y','')
    20.11.2021-13:49 - DEBUG - Processed datalog_id 14096
    20.11.2021-13:49 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished server.php.
     
    Last edited: Nov 20, 2021
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, seems as if the bind plugin is not engaged. Please post the output of:

    ls -la /usr/local/ispconfig/server/plugins-enabled/

    btw. I've removed your real domain name from debug output, just in case you wonder why it was changed :)
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    and please post also the output of:

    ls -la /usr/local/ispconfig/server/mods-enabled/
     
  11. iqpascal

    iqpascal Member

    # ls -la /usr/local/ispconfig/server/mods-enabled/
    total 36
    drwxr-x--- 2 root root 4096 Jan 15 2021 .
    drwxr-x--- 13 root root 4096 Nov 18 03:13 ..
    lrwxrwxrwx 1 root root 64 Jan 15 2021 client_module.inc.php -> /usr/local/ispconfig/server/mods-available/client_module.inc.php
    lrwxrwxrwx 1 root root 62 Jan 15 2021 cron_module.inc.php -> /usr/local/ispconfig/server/mods-available/cron_module.inc.php
    lrwxrwxrwx 1 root root 66 Jan 15 2021 database_module.inc.php -> /usr/local/ispconfig/server/mods-available/database_module.inc.php
    -rwxr-x--- 1 root root 45 Oct 22 11:07 empty.dir
    lrwxrwxrwx 1 root root 69 Jan 15 2021 rescue_core_module.inc.php -> /usr/local/ispconfig/server/mods-available/rescue_core_module.inc.php
    lrwxrwxrwx 1 root root 64 Jan 15 2021 server_module.inc.php -> /usr/local/ispconfig/server/mods-available/server_module.inc.php
    lrwxrwxrwx 1 root root 61 Jan 15 2021 web_module.inc.php -> /usr/local/ispconfig/server/mods-available/web_module.inc.php


    # ls -la /usr/local/ispconfig/server/plugins-enabled/
    total 80
    drwxr-x--- 2 root root 4096 Nov 17 09:22 .
    drwxr-x--- 13 root root 4096 Nov 18 03:13 ..
    lrwxrwxrwx 1 root root 71 Jan 15 2021 apps_vhost_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apps_vhost_plugin.inc.php
    lrwxrwxrwx 1 root root 64 Jan 15 2021 aps_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/aps_plugin.inc.php
    lrwxrwxrwx 1 root root 67 Jan 15 2021 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx 1 root root 69 Nov 17 09:22 bind_dlz_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_dlz_plugin.inc.php
    lrwxrwxrwx 1 root root 65 Nov 17 09:22 bind_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
    lrwxrwxrwx 1 root root 73 Jan 15 2021 cron_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php
    lrwxrwxrwx 1 root root 65 Jan 15 2021 cron_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_plugin.inc.php
    -rwxr-x--- 1 root root 45 Oct 22 11:07 empty.dir
    lrwxrwxrwx 1 root root 73 Jan 15 2021 ftpuser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/ftpuser_base_plugin.inc.php
    lrwxrwxrwx 1 root root 75 Jan 15 2021 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx 1 root root 77 Jan 15 2021 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx 1 root root 66 Jan 15 2021 nginx_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php
    lrwxrwxrwx 1 root root 76 Jan 15 2021 server_services_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/server_services_plugin.inc.php
    lrwxrwxrwx 1 root root 75 Jan 15 2021 shelluser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php
    lrwxrwxrwx 1 root root 78 Jan 15 2021 shelluser_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php
    lrwxrwxrwx 1 root root 76 Jan 15 2021 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
    lrwxrwxrwx 1 root root 70 Jan 15 2021 webserver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/webserver_plugin.inc.php
    lrwxrwxrwx 1 root root 84 Jan 15 2021 z_php_fpm_incron_reload_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/z_php_fpm_incron_reload_plugin.inc.php

    Seems I am missing the dns_module.inc.php compared to the other server.

    On the new server I have the bind_dlz_plugin which I don't have on the other secondary server
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, the issue is caused by the missing DNS module. Please create the symlink in /usr/local/ispconfig/server/mods-enabled/ for the DNS module and remove the bind_dlz_plugin symlink in /usr/local/ispconfig/server/plugins-enabled/
     
    ahrasis likes this.
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    And to recreate the missing dns slave zones, use the Tools > Resync function in ISPConfig. It will force the system to call the events again to create the slave zones.
     
    ahrasis likes this.

Share This Page