Opened 4 years ago
Last modified 3 years ago
#62493 assigned defect
dns-server doesn't create an "rndc.conf" file
Reported by: | steven-michaud (Steven Michaud) | Owned by: | essandess (Steve Smith) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | dns-server |
Description
It does create an "rndc.key" file in /opt/local/var/named, and adds a "control" to allow rndc to access the bind daemon on ::1 port 54. But rndc won't work without an "rndc.conf" file.
I've had good luck with the following "rndc.conf". It requires that you invoke rndc using sudo, but that should be considered a feature instead of a bug.
include "/opt/local/var/named/rndc.key"; options { default-key "rndc-key"; default-server ::1; default-port 54; };
I'm working on macOS 11.2.3. My MacPorts bind9 distro is "bind9 @9.16.12".
Change History (5)
comment:1 Changed 4 years ago by jmroot (Joshua Root)
Owner: | set to essandess |
---|---|
Status: | new → assigned |
comment:2 Changed 4 years ago by essandess (Steve Smith)
comment:3 Changed 4 years ago by essandess (Steve Smith)
comment:4 Changed 4 years ago by steven-michaud (Steven Michaud)
A few hours after this bug's fix landed (as per comment 3) I tested it as follows:
- I ran
sudo port selfupdate
andsudo port upgrade outdated
to make sure I had the latest version of everything MacPorts.
- I
sudo port uninstalled
bothdns-server
andbind9
. I also removed all the filesdns-server
had created.
- I reran
sudo port install dns-server
.
The fix worked. An appropriate rndc.conf
file had been created in /opt/local/etc
.
Thanks for fixing this so quickly!
comment:5 Changed 3 years ago by essandess (Steve Smith)
This issue is fixed by https://github.com/macports/macports-ports/pull/10342 and may be closed.
Please see https://github.com/macports/macports-ports/pull/10342