Opened 3 years ago

Last modified 2 years ago

#62494 assigned defect

dns-server can create a duplicate "domain" zone in named.conf — at Version 1

Reported by: steven-michaud (Steven Michaud) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: dns-server

Description (last modified by steven-michaud (Steven Michaud))

I've used dns-server to install and configure bind9 on a test server on my local (private) network. Its domain name includes the "private" TLD -- "bagend.private". "named.conf.macports" contains the following two "zones":

zone "@domain@.private" IN {
        type master;
        file "db.@domain@.private";
        allow-transfer {
                none;
        };
        allow-update {
                none;
        };
};
zone "@domain@.@tld@" IN {
        type master;
        file "db.@domain@.@tld@";
        allow-transfer {
                none;
        };
        allow-update {
                none;
        };
};

On my system this results in two identical zones being created in "named.conf". This is an error, and bind9 refuses to load until I remove one of them.

I'm working on macOS 11.2.3. My MacPorts bind9 distro is "bind9 @9.16.12".

Change History (1)

comment:1 Changed 3 years ago by steven-michaud (Steven Michaud)

Description: modified (diff)
Note: See TracTickets for help on using tickets.