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: newassigned

comment:3 Changed 4 years ago by essandess (Steve Smith)

In a64f314af5027bb61029934910664906113c5aa1/macports-ports (master):

dns-server: Update to version 9.16.13 with bugfixes and improvements

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:

  1. I ran sudo port selfupdate and sudo port upgrade outdated to make sure I had the latest version of everything MacPorts.
  1. I sudo port uninstalled both dns-server and bind9. I also removed all the files dns-server had created.
  1. 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.

Note: See TracTickets for help on using tickets.