Ano-Tech Computers
Enter keyword:

BIND: Zone transfer fails with "permission denied"
Problem:
Messages like these appear in /var/log/messages: Aug 1 13:20:07 hostname named[28614]: transfer of 'zone-name-here/IN' from x.x.x.x#53: failed while receiving responses: permission denied Aug 1 13:20:07 hostname named[28614]: transfer of 'zone-name-here/IN' from x.x.x.x#53: end of transfer
 
Solution:
Make sure the local zone file (usually in /var/named) is owned by the same user:group running named.

Gather the necessary info like this:
# ls -l /var/named
# ps aux | grep named

Example: /var/named is owned by nobody:nobody and is mode 02755, the zone file is owned by nobody:nobody and is mode 0644. The named process is owned by root:root. This will NOT work even though logically root should be able to overwrite a file owned by nobody.

Use the "chown" command to change file ownership.
# chown -R root:root /var/named

Note however that this may interfere with certain automated DNS systems (for instance the one we use) so you may want to limit the command to specific zone files.

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles