From owner-freebsd-isp Wed Mar 4 09:16:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA06440 for freebsd-isp-outgoing; Wed, 4 Mar 1998 09:16:32 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA06420 for ; Wed, 4 Mar 1998 09:16:25 -0800 (PST) (envelope-from jeff@mercury.jorsm.com) Received: from localhost (jeff@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id LAA07539 for ; Wed, 4 Mar 1998 11:16:21 -0600 (CST) Date: Wed, 4 Mar 1998 11:16:20 -0600 (CST) From: Jeff Lynch To: freebsd-isp@FreeBSD.ORG Subject: Re: in search of a program In-Reply-To: <199803041345.IAA28740@bilver.magicnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 4 Mar 1998, Bill Vermillion wrote: > I've been handling all my manual, but I find I've been doing it > slightly differently than others. [solution explaination deleted] Here's another solution... ----cut here----- #!/bin/sh echo -n "Enter the domain name: (jorsm.com) " read DOMAIN if [ -n "`grep $DOMAIN /etc/named.boot`" ] then echo $DOMAIN is already in named.boot shithead exit fi LEVEL2=`echo $DOMAIN | cut -d. -f1` echo -n "Enter the www IP address: (207.112.128.x) " read IPADDR # Y2K compliance DATE=`date '+%Y%m%d'` cat > named.$LEVEL2 <> /etc/named.boot mail -s "secondary dns" dns@domain.com << EOM2 forward to dns@secondarydns.provider ----cut here---- Please secondary... secondary $DOMAIN 207.112.128.2 secondaries/db.$DOMAIN Thank you. EOM2 kill -HUP `cat /var/run/named.pid` echo "$0 for $DOMAIN complete. here's an nslookup to prove it...." nslookup www.$DOMAIN ------end ---------- Hope this helps. --jeff ========================================================================= Jeffrey A. Lynch JORSM Internet email: jeff@jorsm.com Northwest Indiana's Full-Service Provider Voice: (219)322-2180 927 Sheffield Avenue, Dyer, IN 46311 Autoresponse: info@jorsm.com http://www.jorsm.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message