bin/141360: named_conf in /etc/rc.conf is ignored

David Kelly dkelly at
Fri Dec 11 05:00:14 UTC 2009

>Number:         141360
>Category:       bin
>Synopsis:       named_conf in /etc/rc.conf is ignored
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 11 05:00:13 UTC 2009
>Originator:     David Kelly
>Release:        FreeBSD 7.2-STABLE i386
System: FreeBSD 7.2-STABLE FreeBSD 7.2-STABLE #1: Wed Aug 19 14:14:54 CDT 2009 dkelly at i386


If one wishes to rename /etc/namedb/named.conf to something else, perhaps to preserve one's
preferences from being reset by mergemaster, one would expect the named_conf variable from
/etc/defaults/rc.conf to properly specify the new file name. It does not.

/etc/rc.d/named only uses $named_conf when running named-checkconf.  :-(

To specify a different config file one must add -c <filename> to the named invokation.


Add to /etc/rc.conf the following line:

	mv /etc/namedb/named.conf /etc/namedb/named.conf.original
	/etc/rc.d/named restart

and on restart named dies with fatal error because it could not find named.conf.


Change this line (3rd from the end) in /etc/rc.d/named from

command_args="-u ${named_uid:=root}


command_args="-u ${named_uid:=root} -c ${named_conf:=/etc/namedb/named.conf}"

Perhaps if named_conf is not specified at all one should not specify -c with
what is believed to be the default path named would use without -c.


More information about the freebsd-bugs mailing list