bind9 / named questions
William H. Magill
magill at me.com
Sun Jan 2 16:06:21 PST 2011
On Jan 2, 2011, at 3:49 PM, Brandon S Allbery KF8NH wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 1/2/11 15:46 , William H. Magill wrote:
>>> ps auxw | grep named
>> root 4419 0.0 0.6 623964 11588 ?? S 5:10PM 0:00.36 /opt/local/sbin/named -f
>> root 4417 0.0 0.0 611772 720 ?? Ss 5:10PM 0:00.39 /opt/local/bin/daemondo --label=bind9 --start-cmd /opt/local/sbin/named -f ; --restart-netchange --pid=exec
>> magill 60699 0.0 0.0 590736 308 s000 R+ 3:21PM 0:00.00 grep named
>>
>> The implication here is that named is running in the foreground (-f), not as a daemon.
>
> It's running foregrounded under daemondo, which is a wrapper and monitor (of
> some kind; I haven't dug in too deeply).
I haven't found any separate man pages or documentation for daemondo ....
only "daemondo -h"
The interesting issue for named is that when running with the "-f" option it apparently "invokes" or otherwise "prevents"
certain kinds of logging.
From: http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch06.html#id2553006
------------------<cut here>--------------------------------------
channel default_debug {
file "named.run"; // write to named.run in
// the working directory
// Note: stderr is used instead
// of "named.run"
// if the server is started
// with the '-f' option.
severity dynamic; // log at the server's
// current debug level
------------------<cut here>--------------------------------------
... so which file is "stderr" for something running from "launchd?"
As best I can tell, it's "/var/log/system.log," but I don't know that for a fact.
> In any case, the BIND 9 way of doing things is the "rndc" command, which
> works fine regardless of how it's started (you will need to roll an
> authentication key though).
Figuring out "rndc / key" ... is my "next" project.
T.T.F.N.
William H. Magill
# iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.5
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.5
# Mac mini Core Duo [1.66 Ghz - 2 GB 667]OS X 10.6.5
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a
# XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at me.com
whmagill at gmail.com
More information about the macports-users
mailing list