You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drkitty edited this page Dec 29, 2014
·
2 revisions
Installation
Package names:
Debian: bind9
Fedora, Arch: bind
Setup
Start named (using systemctl or whatever)
Generate /etc/rndc.key:
rndc-confgen -a
```
SPECIAL WARNING: Make sure your bind config is set up to allow underscores in hostnames, or else the check-name validation can cause bind to ignore entire zone files.
Fixing errors
"/etc/rndc.key: permission denied"
Error
$ ./manage.py maintain_migrate -b
[snip]
rndc: error: open: /etc/rndc.key: permission denied
rndc: could not load rndc configuration
Failed to reload rndc. Do you have permission?
Explanation
This error is raised because you don't have read access to /etc/rndc.key.
Workaround #1 (annoying but safe)
sudo when using the -b flag.
Workaround #2 (probably unsafe)
Determine /etc/rndc.key's group:
$ ls -l /etc/rndc.key
-rw-r----- 1 root named 77 Jun 13 23:01 /etc/rndc.key
```