Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 1996 02:37:23 -0800 (PST)
From:      Donald Burr <d_burr@ix.netcom.com>
To:        Barnacle Wes <wes@intele.net>
Cc:        questions@freebsd.org
Subject:   Re: DNS and Bind on FreeBSD.
Message-ID:  <Pine.BSF.3.91.960214022844.265A-100000@starfleet.gov>
In-Reply-To: <199602140509.WAA20574@intele.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 Feb 1996, Barnacle Wes wrote:

> > The command to run named is as follows:
> > 
> > named -b /etc/namedb/named.boot
> > 
> > It should be run out of /etc/rc.local, and NOT inetd or any other 
> > mechanism.  It is a free-standing daemon.
> 
> No, on FreeBSD, it should be run by setting namedflags in
> /etc/sysconfig.  No need to go hacking /etc/rc.local for something
> that is a standard system daemon, now is there?

Under normal circumstances, I would say "yes" -- you should edit 
sysconfig and set namedflags.  But (if I remember correctly) the original 
poster was trying to do something similar to what I do, and this approach 
didn't work for me.  He wanted to run a named server over his PPP 
connection, and setting namedflags in /etc/sysconfig causes named to be 
run much earlier than ppp (which I put in /etc/rc.local).  This causes 
named to crap out when trying to contact the root nameservers.  If I put a 
call to named right after I run ppp in rc.local, then named doesn't 
complain, since ppp is enabled by then and the connection has dialed out.

I suppose I could have added a "pppflags=..." to /etc/sysconfig and 
hacked in a call to ppp in /etc/rc, but I consider hacking the 
system-default /etc/rc* file even less tasteful than putting named and 
ppp both in /etc/rc.local.

Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212
TEL (805)564-1871 / FAX 564-2315 / WWW http://www.geopages.com/WallStreet/2072
PGP Public Key available by request (send e-mail) or on Public Key Servers.
** Uphold your right to privacy - Use PGP. **



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960214022844.265A-100000>