From yashy@yashy.com  Tue Nov  8 02:22:26 2005
Return-Path: <yashy@yashy.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3C99116A41F
	for <freebsd-gnats-submit@freebsd.org>; Tue,  8 Nov 2005 02:22:26 +0000 (GMT)
	(envelope-from yashy@yashy.com)
Received: from mail.yashy.com (mail.yashy.com [206.248.137.44])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B2EF443D4C
	for <freebsd-gnats-submit@freebsd.org>; Tue,  8 Nov 2005 02:22:25 +0000 (GMT)
	(envelope-from yashy@yashy.com)
Received: by mail.yashy.com (Postfix, from userid 1001)
	id A992663C6; Mon,  7 Nov 2005 21:22:27 -0500 (EST)
Message-Id: <20051108022227.A992663C6@mail.yashy.com>
Date: Mon,  7 Nov 2005 21:22:27 -0500 (EST)
From: Yasholomew Yashinski <yashy@mail.yashy.com>
Reply-To: Yasholomew Yashinski <yashy@mail.yashy.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: handbook instruction could shut down named
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88636
>Category:       docs
>Synopsis:       handbook instruction could shut down named
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 08 02:30:12 GMT 2005
>Closed-Date:    Fri Oct 13 10:20:47 GMT 2006
>Last-Modified:  Fri Oct 13 10:20:47 GMT 2006
>Originator:     Yasholomew Yashinski
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
>Description:
From http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html

Arrange to have named start and chroot itself to the sandbox by adding the following to /etc/rc.conf:

named_enable="YES"
named_flags="-u bind -g bind -t /etc/namedb /etc/named.conf"

from "man named":
   -g     Run  the  server  in  the  foreground  and  force all logging to
              stderr.
    -c config-file
              Use  config-file  as  the  configuration  file  instead  of  the
              default, /etc/namedb/named.conf. To ensure  that  reloading  the
              configuration  file  continues  to  work  after  the  server has
              changed its working directory due to  to  a  possible  directory
              option in the configuration file, config-file should be an abso-
              lute pathname.


>How-To-Repeat:
	Use instructions from the handbook
>Fix:
the rc.conf entry should read:
named_enable="YES"
named_flags="-u bind -t /etc/namedb -c /etc/named.conf"

I've had to make several other changes to get named to run:

# mkdir /var/named/etc/namedb/var/run/named/
# chown -R bind /var/named/etc/namedb/var

diff named.conf*
11,12d10
< include "./rndc.key";
< 
14c12
<       directory       "/";
---
>       directory       "/etc/namedb";

I would also suggest that 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bind9.html
should be completely integrated into the previous page, as the majority of 
this page is simply duplication of the former page.


>Release-Note:
>Audit-Trail:

From: "Mazeland, Siebrand  (RBI-NL)" <Siebrand.Mazeland@reedbusiness.nl>
To: "'bug-followup@FreeBSD.org'" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: www/88636: handbook instruction could shut down named
Date: Fri, 16 Dec 2005 13:43:23 +0100

 This issue should be docs/ instead of www/
Responsible-Changed-From-To: freebsd-www->freebsd-doc 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Dec 16 12:58:20 UTC 2005 
Responsible-Changed-Why:  
Correct the assign group as Siebrand mentioned. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88636 
Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Dec 19 21:43:14 UTC 2005 
Responsible-Changed-Why:  
In collaboration with Tom assign this to him. He will work on this 
when there is time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88636 

From: Maxim Konovalov <maxim@macomnet.ru>
To: Yasholomew Yashinski <yashy@mail.yashy.com>
Cc: bug-followup@freebsd.org
Subject: docs/88636
Date: Fri, 14 Apr 2006 19:30:59 +0400 (MSD)

 Hi Yasholomew,
 
 The problem is that "25.6 Domain Name System" chapter describes
 named(8) setup on RELENG_4.  There is BIND 8.3.7-REL and its -g flag
 means process gid.  Next, it does have -c <config file> flag but can
 be used without it.  So the example in the handbook is valid.
 
 In the other hand "25.7 BIND9 and FreeBSD" describes BIND9 on
 RELENG_5.
 
 It is very hard (actually impossible) to make a cross-version guide
 for BIND8 and BIND9 and I suggest to leave these chapter as is until
 we drop support for RELENG_4 branch completely.
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Sat Oct 7 10:52:41 UTC 2006 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=88636 
State-Changed-From-To: closed->open 
State-Changed-By: trhodes 
State-Changed-When: Sat Oct 7 10:53:58 UTC 2006 
State-Changed-Why:  
Re-open, my bad. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88636 
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Fri Oct 13 10:19:56 UTC 2006 
State-Changed-Why:  
Late closing, the handbook has been updated to cover BIND9. 
Thanks for alerting us to the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88636 
>Unformatted:
