Debian 9/Ubuntu X DNS slave not working.

Discussion in 'Developers' Forum' started by SirAdams, Dec 11, 2021.

  1. SirAdams

    SirAdams New Member

    Hi. When i create dns slave then bind 9 shows error:
    named[16875]: dumping master file: /etc/bind/slave/tmp-aJi6T7MoO3: open: permission denied
    named[16875]: dumping master file: /etc/bind/slave/tmp-hdifD39cwc: open: file not found
    Debian don't allow create file in /etc/bind/
    More info on https://askubuntu.com/questions/111...r-dumping-master-file-etc-bind-zones-open-per
    Please repair this bug.
    Or add directory path in bind 9 server settings for slaves catalog.

    (Debian Buster) ISPConfig 3.2.7p1 and 3.2.7
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    For the current time you can adjust the apparmor config to allow writing to /etc/bind/; I don't remember if the is an issue open to make that path configurable.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Debian Bind is configured to store the zone files on slave not on /etc/bind, but I think it is /var/cache/bind. Anyway, Bind slave works on Debian even with apparmor proviced the configuration is done the Debian way. Check the debian docs on how it should be used.
     
  4. SirAdams

    SirAdams New Member

    chmod g+w slave helps.
    Can you add this for scrpit when create this directory?
    Without it, a slave directory is created in /etc/bind/ and "sec."
    Even if it deletes the directory "sec." it appears again when creating another domain, although the file in /etc/bind/slave is created without problems.
     
    Last edited: Dec 18, 2021

Share This Page