Date: Mon, 9 Dec 2002 14:43:13 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: questions@FreeBSD.ORG Subject: Re: Bind - Upgrading from FreeBSD 4.6 default to 9.2.1 Message-ID: <20021209144313.GE15604@happy-idiot-talk.infracaninophi> In-Reply-To: <002b01c29f8d$229b3f80$0b00a8c0@abell.co.uk> References: <002b01c29f8d$229b3f80$0b00a8c0@abell.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 09, 2002 at 02:13:22PM -0000, Nick Wilson wrote: > I'm running FreeBSD 4.6 and have ported and installed (successfully, I > believe) BIND 9.2.1. However if I run named -v the version reporting is > 8.3.2-T1B as supplied with the FreeBSD release. named-checkconf -v or > named-checkzone -v report version 9.2.1. > How do I tell FreeBSD to use the new version of BIND? I've tried editing > the named-program path in rc.conf but with no effect. Where did you install the bind9 executables? Check your $PATH to make sure you're running the binary you think you are. If you (very sensibly) used the ports/net/bind9 port and didn't muck around with $PREFIX, then you'll have bind9 named etc. in /usr/local/sbin but you'll still have the system supplied bind8 named in /usr/sbin: happy-idiot-talk:~:% /usr/local/sbin/named -v BIND 9.2.1 happy-idiot-talk:~:% /usr/sbin/named -v named 8.3.3-REL Sat Dec 7 00:29:52 GMT 2002 root@happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/usr.sbin/named You need to use the full path in /etc/rc.conf to get the right version to start up at boot time: happy-idiot-talk:~:% grep ^named /etc/rc.conf named_enable="YES" named_flags="-c /etc/namedb/named.conf -u bind -t /var/named" named_program="/usr/local/sbin/named" A better check on the running named's identity is perhaps: happy-idiot-talk:~:% /usr/local/bin/dig @localhost version.bind CHAOS TXT ; <<>> DiG 9.2.1 <<>> @localhost version.bind CHAOS TXT ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26404 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.2.1" ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(localhost) ;; WHEN: Mon Dec 9 14:32:11 2002 ;; MSG SIZE rcvd: 48 Nb. it's not just the named executable that may not appear where you expect on your $PATH. Same thing with nslookup, dig, host etc. which all behave subtly differently depending on whether they are the bind8 or bind9 versions. -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021209144313.GE15604>