From owner-freebsd-isp Mon Dec 18 4:57: 8 2000 From owner-freebsd-isp@FreeBSD.ORG Mon Dec 18 04:57:06 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from bilver.wjv.com (dhcp-1-234.n01.orldfl01.us.ra.verio.net [157.238.210.234]) by hub.freebsd.org (Postfix) with ESMTP id 6EADC37B400 for ; Mon, 18 Dec 2000 04:57:05 -0800 (PST) Received: (from bill@localhost) by bilver.wjv.com (8.9.3/8.9.3) id HAA13307 for freebsd-isp@freebsd.org; Mon, 18 Dec 2000 07:57:05 -0500 (EST) (envelope-from bill) Date: Mon, 18 Dec 2000 07:56:56 -0500 From: Bill Vermillion To: freebsd-isp@freebsd.org Subject: Re: Off topic - shell skills Message-ID: <20001218075656.A13144@wjv.com> Reply-To: bv@bilver.wjv.com References: <3A3DDE15.D8E377A9@belpak.by> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A3DDE15.D8E377A9@belpak.by>; from alex@belpak.by on Mon, Dec 18, 2000 at 11:51:17AM +0200 Organization: W.J.Vermillion / Orlando - Winter Park Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Dec 18, 2000 at 11:51:17AM +0200, Alex Blagoveschensky thus spoke: > Dave Wilson wrote: > > Hi guys, howzit going ? > > I have about 600 DNS zones on my DNS server, now because we are changing IP > > addresses on our mail server most of those zones' MX/A records will need > > updating. > > How do I write a shell script that will change: > > mail IN A 10.1.1.58 > > to: > > mail IN A 10.0.0.1 > > ? > > I need this script to parse through each zone, so when it finds "10.1.1.58" > > in a zone it will change the "10.1.1.58" to "10.0.0.1". > > Please help if you can. > Try this. But what will you do with Serial in SOA ? ;-) I have all the domains I manage in a separate subdirected and in each record is the line $INCLUDE named.soa Then I have one file with the serial number and all the expire time, in which I change the serial number. Never miss changing a serial number when I make lots of changes. -- Bill Vermillion - bv @ wjv . com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message