it's far too late in the day for me to write something detailed, but
quickly, I'd suggest you look at grep and sed.

If you're a perl guy, I've heard there are modules that make
parsing/changing zone files pretty easy.

Changing the serial will probably be your biggest problem ... maybe some
trickery with awk to grab it.

As for the record change

cat zonefile | sed 's/servername A A' > tmp.zonefile

the formatting will have to be exact. I'm sure some sed wizzards out
there can tell you a much better way, but assuming your files are all
somewhat standard, that is a quick and dirty way to change the record.

backup all files before trying anything.

good luck!


-----Original Message-----
From: [] On
Behalf Of Scott Haneda
Sent: Friday, October 31, 2008 4:23 PM
Subject: Global change of ip

I have an A record change that needs to happen across many zones. I have
the old ipand of course the new ip. Can someone help me with a command
to find and replace across multiple files please.

I also will need to do a serial update as well, and that could be any
number and not cinsistant.

I am using unix not windows.


Iphone says hello.

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.