Issues reinstalling Bind9 on FreeBSD 8.0

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jun 3 16:49:10 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/06/2010 16:51:09, Olivier Nicole wrote:

>> /etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named
> 
> /etc/rc.d/named ans /usr/sbin/named are not from the ports but from
> native FreeBSD distribution.
> 
> Portsx will go into /usr/local/ only.
> 
> So apparently you mixed-up distribution and port, deleted part of one
> and part of the other...
> 
> If you have a fresh FreeBSD install, just reinstall it?

Also, if you're trying to run one of the bind ports, then you should
just use all the default configuration stuff in /etc/namedb (which is
really /var/named/etc/namedb) and the rc script /etc/rc.d/named with the
binaries installed by the port by putting the following in /etc/rc.conf:

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-c /etc/namedb/named.conf"

This is a bit unusual -- most ports install their own startup script in
/usr/local/etc/rc.d/ and their own config files under /usr/local/etc or
subdirs thereof.

One handy hint is to link /usr/local/etc/rndc.conf to
/etc/namedb/rndc.conf which helps the rc-script control the named
process better.
(Or .../rndc.key, depending on how you set things up.)  Actually, I
believe the various bind ports do this automatically now, but it doesn't
hurt to double check.

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwH3PIACgkQ8Mjk52CukIwDFQCfQRnuL/eOlV4V6lERkE480+OT
J4QAnRHrzd5VWzEKswpR0eUtDa20zTzo
=+8Vv
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list