From petzi@mail.nacamar.de  Mon Jul 14 03:53:00 1997
Received: from mail.nacamar.de (mail.nacamar.de [194.162.162.200])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA13515
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jul 1997 03:52:59 -0700 (PDT)
Received: (from root@localhost)
	by mail.nacamar.de (8.8.6/8.8.5) id MAA06738;
	Mon, 14 Jul 1997 12:52:55 +0200 (CEST)
Message-Id: <199707141052.MAA06738@mail.nacamar.de>
Date: Mon, 14 Jul 1997 12:52:55 +0200 (CEST)
From: beckmann@nacamar.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: nameservice terminates after ndc restart
X-Send-Pr-Version: 3.2

>Number:         4087
>Category:       bin
>Synopsis:       nameservice terminates after ndc restart
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 14 04:00:01 PDT 1997
>Closed-Date:    Sun Apr 19 11:34:43 PDT 1998
>Last-Modified:  Sun Apr 19 11:35:15 PDT 1998
>Originator:     Michael Beckmann
>Release:        FreeBSD 2.2-970703-RELENG i386
>Organization:
Nacamar Data Communications
>Environment:

BIND 4.9.6
FreeBSD 2.2-RELENG with stock BIND 4.9.6 from FreeBSD distribution
FreeBSD 2.2.1-RELEASE with updated libs and BIND 4.9.6 from BIND distribution

Problem does not exist in FreeBSD 2.2.2-RELEASE which has BIND 4.9.4P1

>Description:

The ndc program is used as a frontend for BIND. Executing

ndc restart

will terminate named, but not restart it. This used to work in previous
releases.

cron jobs that restart named on a regular basis via ndc will terminate
nameservice.

>How-To-Repeat:

1. launch named -b /etc/namedb/named.boot
2. execute ndc reload

>Fix:

From the ndc(8) manpage:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 19 11:34:43 PDT 1998 
State-Changed-Why:  
This seems to be fixed in -current. 
>Unformatted:
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>
 BUGS
        Arguments to named are not preserved by restart, or  known
        by  start.   Some mechanism for controlling the parameters
        and environment should exist.
 <<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 The default location for the named.boot file in BIND is /etc/named.boot .
 FreeBSD keeps that file in /etc/namedb/named.boot and starts named with
 the argument -b /etc/namedb/named.boot . So the solution might be to
 either change the default location of the file in BIND or in FreeBSD.
 Or fix ndc. Or make a symbolic link. Or... Or....
 
 I don't know why this problem hasn't been there in previous
 releases. The ndc bug seems to be a long standing one. I can do an
 ndc restart just fine on a FreeBSD 2.2.2-RELEASE system, although
 named was started with -b /etc/namedb/named.boot .
 
