From owner-freebsd-current Fri May 1 08:32:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA29754 for freebsd-current-outgoing; Fri, 1 May 1998 08:32:36 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA29744 for ; Fri, 1 May 1998 08:32:29 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id XAA26689; Fri, 1 May 1998 23:31:56 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199805011531.XAA26689@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Andreas Klemm cc: current@FreeBSD.ORG Subject: Re: HEADS UP: bind-8 import In-reply-to: Your message of "Fri, 01 May 1998 17:14:04 +0200." <19980501171404.A5765@klemm.gtn.com> Date: Fri, 01 May 1998 23:31:54 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andreas Klemm wrote: > On Fri, May 01, 1998 at 06:50:36PM +0800, Peter Wemm wrote: > > The other possibility is to move the named executable to /usr/libexec/ > > named, and make /usr/sbin/named a shell wrapper script or something that > > can detect an old-style config and do a temporary conversion with a LOUD > > warning at boot time. This should be the least suprise option. > > If /usr/sbin/named is a wrapper script, then we'd need something > like /usr/libexec/named4 and /usr/libexec/named8, so we'd have > *two* named's in the source tree. I don't like this ... although > I like your way of being friendly to the users ;-) No, I'm talking about something like this: cat named.sh #! /bin/sh args=$* oldconf=`echo $args | grep /etc/namedb/named.boot` if [ x"$oldconf" != x ]; then rm -f /tmp/named.conf.* newfile=`mktemp /tmp/named.conf.XXXXXX` /etc/namedb/named-bootconf.pl < /etc/namedb/named.boot > $newfile args="$args -c $newfile" echo "HEY!! update your named.boot file!!" 1>&2 fi exec /usr/libexec/named $args What this means.. If named is started with /etc/namedb/named.boot in it's arguments, then we convert it to a /tmp temporary file and run the real named with an appended -c argument. Multiple instances of -b or -c override the previous ones, so this is ok as a hack. I'm most definately NOT talking about keeping around the old bind. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message