Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS failing with error "loading configuration: permission denied" #96

Open
aquarial opened this issue Jun 20, 2020 · 1 comment
Open

Comments

@aquarial
Copy link

After this commit DNS kept failing with the following error:

20-Jun-2020  the working directory is not writable
20-Jun-2020  loading configuration: permission denied
20-Jun-2020  exiting (due to fatal error)

This happens because bind9 9.16.1 needs to write some files into the current directory as the bind user. entrypoint.sh stays in the / directory, so it consistently fails. The old 9.11 didn't write to the current directory, so it didn't matter.

I fixed this locally by adding the following to entrypoint.sh:

mkdir /tmp/working_dir
chown ${BIND_USER} /tmp/working_dir
cd /tmp/working_dir

Hopefully this helps someone searching for a similar question.

@carlosgrillet
Copy link

For me what works was add this to my named.conf.options file

options {
    directory "/var/cache/bind";
};

I was having the exact same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants