Secondary DNS-Zones file cannot create

Discussion in 'General' started by ZyT, Apr 26, 2023.

  1. ZyT

    ZyT New Member

    Hello
    I try tro setup Secondary DNS-Zones in the ISPconfig 3 latest stable multiserver version (both servers are debian 11)
    When i add domain to the Secondary DNS-Zones configuration, secondary zone file not created, but i see is created just folder:
    "/etc/bind/slave/sec." instead zone file "/etc/bind/slave/sec.domain.tld"
    file contain file "/etc/bind/slave/sec.domain.tld"
    i do not want secondary server to be mirror, because secondary server must be mmail server and i want just to have secodnary dns with ispconfig3 option...
    is it bug, or i missed something?
    Permissions is ok i think?
    drwxrws--- 3 root bind
    /etc/bind/slave
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    BIND, not ISPConfig, creates the zone file. If it's not created, then BIND fails to get the zone info from master, ISPConfig is not involved in that. Check syslog to see why BIND is unable to sync the zone.
     
  3. ZyT

    ZyT New Member

    thank you, yes it was BIND folders permission problem, but do not understand why this problem was, because it is clean install of Debian 11 and clean install of ispconfig 3 and nothing special and nothing custom....
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    What exactly did you have to change regarding folder permissions to make it work?
     
  5. ZyT

    ZyT New Member

    changed folder /etc/bind/slave permissions
    drwxrws--- 2 bind bind 4096 Apr 26 11:18 slave
    (was root:bind)
    also r+w for group

    also changed to bind:bind file named.conf ownership (was also root:bind)
    -rw-r--r-- 1 bind bind 463 Jan 25 15:22 named.conf
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    On Debian /etc/bind/slave should be symlink to /var/cache/bind/slave/.
    Code:
    /etc/bind# ls -lhd /etc/bind/slave ; ls -lhd /var/cache/bind/slave/
    lrwxrwxrwx 1 root bind 22 helmi  25  2021 /etc/bind/slave -> /var/cache/bind/slave/
    drwxrws--- 3 root bind 4,0K huhti  13 12:55 /var/cache/bind/slave/
    
    Someone may have messed up that slave bind setup?
     

Share This Page