Define a domains addresses sole in terms of another

Stephane Bortzmeyer bortzmeyer at nic.fr
Tue Jul 10 06:58:30 UTC 2007


On Mon, Jul 09, 2007 at 02:50:40PM -0700,
 Chris Buxton <cbuxton at menandmice.com> wrote 
 a message of 113 lines which said:

> Or you could simply ignore the problem. Create all your zones as
> normal, with IP addresses sprinkled throughout as normal. Then, if
> you need to change an address, use sed or perl. For example, to just
> change the address of the 'mail' A record, assuming you always use
> tabs between fields and omit class and TTL fields:
> 
> sed -i ".bak" 's/^mail	A	1.2.3.4/mail	A	4.3.2.1/' /path/to/master/ 
> zone-files
> 
> Or, using perl:
> 
> perl -pi -e 's{^mail	A	1.2.3.4}{mail	A	4.3.2.1}' /path/to/master/zone- 
> files

It seems extremely old-fashioned, compared with a zone file generated
by a program, using the data in a database. And it is very fragile (a
legal reformatting of the zone file can perturbate these scripts).



More information about the bind-users mailing list