From owner-freebsd-isp Mon Dec 18 1:32:27 2000 From owner-freebsd-isp@FreeBSD.ORG Mon Dec 18 01:32:25 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mail.sai.co.za (ns1.amandla.co.za [196.33.40.1]) by hub.freebsd.org (Postfix) with ESMTP id C861437B400 for ; Mon, 18 Dec 2000 01:32:22 -0800 (PST) Received: from fdisk (dave.sai.co.za [196.33.40.17]) by mail.sai.co.za (8.9.3/8.9.3) with SMTP id LAA33773 for ; Mon, 18 Dec 2000 11:33:24 +0200 (SAST) (envelope-from davew@sai.co.za) From: "Dave Wilson" To: Subject: Off topic - shell skills Date: Mon, 18 Dec 2000 11:33:10 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. Thanks. ;-) Kindest regards David Wilson The S.A Internet #include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message