GENERATE with numbers going up AND down

Haim [Howard] Roman roman at jct.ac.il
Mon Apr 7 07:49:12 UTC 2008


I hope you find an answer. 


In the meantime, if this is a one-shot deal, how about using a clever
editor (e.g., emacs) or a simple script to generate.  If it clutters up
your zone file too much, you can put it in a separate files & include it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Haim (Howard) Roman
Computer Center, Jerusalem College of Technology
roman at jct.ac.il
Phone: 052-8-592-599 (6022 from within Machon Lev)



-------- Original Message  --------
Subject: GENERATE with numbers going up AND down
From: sammy <dit.dash at gmail.com>
To: comp-protocols-dns-bind at isc.org
Date: Fri Apr 04 2008 19:33:40 GMT+0300 (IDT)
> I want to use $GENERATE to have IP addresses go in one direction while
> the names
> from the $ variable go in the other. This is probably not that unusual
> eg what if you
> wanted to sequence DHCP addresses but grow them downwards from the top
> of the net
>
> What I was trying to use was
>
> $GENERATE 250-254  dhcp{255-$,2,d} A 192.9.70.$
>
> which I had hoped would create
>
> dhcp05  IN A 192.9.70.250
> dhcp04  IN A 192.9.70.251
> dhcp03  IN A 192.9.70.252
> dhcp02  IN A 192.9.70.253
> dhcp01  IN A 192.9.70.254
>
> But apparently BIND doesn't seem to like a $ in the formula/rhs/
> brackets
> Can this be done? If so, how?
>
> TIA
>
>   



More information about the bind-users mailing list