GENERATE with numbers going up AND down

sammy dit.dash at gmail.com
Fri Apr 4 16:33:40 UTC 2008


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