Global change of ip
David Forrest
drf at maplepark.com
Fri Oct 31 20:46:39 UTC 2008
On Fri, 31 Oct 2008, Scott Haneda wrote:
> 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.
>
> Thanks.
>
> --
> Scott
> Iphone says hello.
>
seems like an ideal situation for "sed" as it can be globally applied.
There are a few things to watch out for; in some cases you will look for a
full IP and, in others, only a host IP, and the serial number could be
applied only to changed files (using "find" for a recent change) using the
current date/time period as a key. I don't see a problem using the
standard YYYYMMDD## scheme. If you use some non-incremental system,
remember that the serial number must be a higher (larger) number.
David Forrest e-mail: drf @ maplepark.com
Maple Park Development Corporation http://www.maplepark.com
St. Louis, Missouri
More information about the bind-users
mailing list