From owner-freebsd-questions Mon Dec 9 6:43:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7046A37B401 for ; Mon, 9 Dec 2002 06:43:26 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id F19B143EC5 for ; Mon, 9 Dec 2002 06:43:23 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gB9EhI46016330 for ; Mon, 9 Dec 2002 14:43:18 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gB9EhDcj016329 for questions@FreeBSD.ORG; Mon, 9 Dec 2002 14:43:13 GMT Date: Mon, 9 Dec 2002 14:43:13 +0000 From: Matthew Seaman 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> Mail-Followup-To: Matthew Seaman , questions@FreeBSD.ORG References: <002b01c29f8d$229b3f80$0b00a8c0@abell.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002b01c29f8d$229b3f80$0b00a8c0@abell.co.uk> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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