Listener::Named::Slave::Provisioning - Zonetransfer to Secondary Nameserver + Howto

  • @Dylan


    Ok, so now set cronjob to


    Code
    1. */5 * * * * root bash /root/syncdns.sh


    And that will work as you want (every 5 minutes). Your cron entry was wrong:


    5 * * * * root bash /root/syncdns.sh


    doesn't mean run the job every 5 minutes. That means, run the job every hours at 5 minutes past ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Ahh.. :dodgy:
    Thanks @Nuxwin :thumbsup:

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • Just for record:
    After upgrade to 1.3.0 I need run the following command again to work well dns:


    Quote

    perl imscp-autoinstall -dasr named

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • If you use 1.3.0 or above you must download latest listener from here:


    https://github.com/i-MSCP/imsc…med_slave_provisioning.pl


    An other info is, that ns2 bind file is in raw format:
    http://serverfault.com/questio…binary-zone-file-on-bind9


    You can change it, but raw format is better performance.

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • @Nuxwin


    I have an ask/question for this listener file.


    Is there any reason why not in there "allow-transfer" settings in the zone files?


    Read this why is usefull:
    http://www.zytrax.com/books/dns/ch7/xfer.html#allow-transfer

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • @Dylan


    This directive is added by i-MSCP (master DNS server configuration). The template is:


    Code
    1. zone "{DOMAIN_NAME}" {
    2. type master;
    3. file "{DB_DIR}/{DOMAIN_NAME}.db";
    4. allow-transfer { {SECONDARY_DNS} };
    5. notify yes;
    6. };


    That parameter tells the Master DNS server that SECONDARY_DNS which is replaced by slave server DNS IPs are allowed to do an AXFR (zone transfer). There is nothing wrong in the current implementation.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Good evening,
    is the script "10_named_slave_provisioning. pl" still up to date?
    it is not possible to use the url /provisioning/slave_provisioning.php


    The error message "An unexpected error occurred" is displayed directly.
    I tested both with authentication and without.


    i-MSCP 1.5.1
    Build: 20170908
    Debian 9.2


    With best regards

    Using i-MSCP for years with enthusiasm !

  • Thank you very much!


    Sometimes the solution is so simple, and I've spent almost an hour trying to find the mistake.
    It works now ;)


    With best regards

    Using i-MSCP for years with enthusiasm !