NetBSD Problem Report #50472
From www@NetBSD.org Wed Nov 25 20:09:45 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 8895FA6552
for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Nov 2015 20:09:45 +0000 (UTC)
Message-Id: <20151125200944.06FF1A6562@mollari.NetBSD.org>
Date: Wed, 25 Nov 2015 20:09:43 +0000 (UTC)
From: sd4dfg2@hotmail.com
Reply-To: sd4dfg2@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: rc.d/named ignores rndc.conf
X-Send-Pr-Version: www-1.0
>Number: 50472
>Category: misc
>Synopsis: rc.d/named ignores rndc.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 25 20:10:00 +0000 2015
>Originator: Rob
>Release: 7.0_STABLE
>Organization:
>Environment:
7.0_STABLE
>Description:
The /etc/rc.d/named script creates /etc/rndc.key if there isn't one, which then gets moved to /var/chroot/named/ if chroot is enabled.
I believe it should only do that if both rndc.key and rndc.conf are missing.
if [ ! -e "/etc/rndc.key" ]; then
echo "Generating rndc.key"
/usr/sbin/rndc-confgen -a
fi
>How-To-Repeat:
There's no real issue, other than this warning message:
# rndc status
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
[...]
>Fix:
***************
*** 63,69 ****
named_precmd()
{
! if [ ! -e "/etc/rndc.key" -a ! -e "/etc/rndc.conf" ]; then
echo "Generating rndc.key"
/usr/sbin/rndc-confgen -a
fi
--- 63,69 ----
named_precmd()
{
! if [ ! -e "/etc/rndc.key" ]; then
echo "Generating rndc.key"
/usr/sbin/rndc-confgen -a
fi
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.