Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Bogdan Webb
Ok i'll make it short coz it's the 2nd time i write this -.-' and don't even
ask why :D
So here it goes: Fresh FreeBSD 8.0 install, installed bind97 to witch i have
busted up the named.conf fine and tought, at the time, that deleting the
whole content of /etc/namedb and reinstalling the bind port will simply
write the files up again. Well it's not like that... i;ve did pgk_delete,
make deinstall, make rmconfig, tryed to manually delete all the files
required but no joy. Now i've tryed to use all bind9 bind96 and bind97 from
ports and even get the source from isc.org but they all did the same, even
more after a reboot and again the same process (source+ports) the builds
didn't even install the named binary
/etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named

Please do tell me how to purge completly a port, delete all it's files and
configs then install it again from scratch...

I'm using a 64bit FreeBSD 8.0 on AMD Athlon X2.

Best regards, Bogdan.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Olivier Nicole
Hi,

 /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?

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Matthew Seaman
-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: matt...@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-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org