<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7000.16"></HEAD>
<BODY>
<P><FONT size=2 face=Arial>Hi I was trying to get the $generate directive to work like so </FONT></P>
<P><FONT size=2 face=Arial>11 IN PTR 14.cool.com.</FONT></P>
<P><FONT size=2 face=Arial>....</FONT></P>
<P><FONT size=2 face=Arial>30 IN PTR 33.cool.com.</FONT></P>
<P><FONT size=2 face=Arial>$GENERATE 11-30  ${3,0,d} PTR $.COOL.COM.<BR></FONT></P>
<P><FONT size=2 face=Arial>I've read the manual here <A href="http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch06.html#id2566761">http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch06.html#id2566761</A><TD></P>
<P><SPAN><STRONG class=command></STRONG></SPAN></P></TD><TD>
<P><SPAN>---</SPAN></P>
<P><SPAN>Syntax: <SPAN><STRONG>$GENERATE</STRONG></SPAN> <EM class=replaceable><CODE>range</CODE></EM> <EM class=replaceable><CODE>lhs</CODE></EM> [<SPAN class=optional><EM class=replaceable><CODE>ttl</CODE></EM></SPAN>] [<SPAN class=optional><EM class=replaceable><CODE>class</CODE></EM></SPAN>] <EM class=replaceable><CODE>type</CODE></EM> <EM class=replaceable><CODE>rhs</CODE></EM> [<SPAN class=optional> <EM class=replaceable><CODE>comment</CODE></EM> </SPAN>]</SPAN></P>
<P><SPAN><STRONG class=command>lhs</STRONG></SPAN> describes the owner name of the resource records to be created. Any single <SPAN><STRONG class=command>$</STRONG></SPAN> symbols within the <SPAN><STRONG class=command>lhs</STRONG></SPAN> side are replaced by the iterator value. To get a $ in the output you need to escape the <SPAN><STRONG class=command>$</STRONG></SPAN> using a backslash <SPAN><STRONG class=command>\</STRONG></SPAN>, e.g. <SPAN><STRONG class=command>\$</STRONG></SPAN>. The <SPAN><STRONG class=command>$</STRONG></SPAN> may optionally be followed by modifiers which change the offset from the iterator, field width and base. Modifiers are introduced by a <SPAN><STRONG class=command>{</STRONG></SPAN> immediately following the <SPAN><STRONG class=command>$</STRONG></SPAN> as <SPAN><STRONG class=command>${offset[,width[,base]]}</STRONG></SPAN>. e.g. <SPAN><STRONG class=command>${-20,3,d}</STRONG></SPAN> which subtracts 20 from the current value, prints the result as a decimal in a zero padded field of with 3. Available output forms are decimal (<SPAN><STRONG class=command>d</STRONG></SPAN>), octal (<SPAN><STRONG class=command>o</STRONG></SPAN>) and hexadecimal (<SPAN><STRONG class=command>x</STRONG></SPAN> or <SPAN><STRONG class=command>X</STRONG></SPAN> for uppercase). The default modifier is <SPAN><STRONG class=command>${0,0,d}</STRONG></SPAN>. If the <SPAN><STRONG class=command>lhs</STRONG></SPAN> is not absolute, the current <SPAN><STRONG class=command>$ORIGIN</STRONG></SPAN> is appended to the name.</P>
<P>For compatibility with earlier versions <SPAN><STRONG class=command>$$</STRONG></SPAN> is still recognized a indicating a literal $ in the output.</P></TD></FONT>
<P><FONT size=2 face=Arial>---</FONT></P>
<P><FONT size=2 face=Arial>The tricky part is ${3,0,d} waas not working. I bumped into a site that stated <SPAN><STRONG>$GENERATE</STRONG></SPAN> range rhs type lhs</FONT></P>
<P><FONT size=2 face=Arial><FONT face="Courier New">I then tried<EM> </EM><FONT face=Arial>$GENERATE 11-30  $ PTR ${3,0,d}.COOL.COM. and </FONT></FONT></FONT><FONT size=2 face=Arial><FONT face="Courier New"><FONT face=Arial>this worked.</FONT></FONT></FONT></P>
<P><FONT size=2 face=Arial><FONT face="Courier New">Hopefully this will help somebody.</P>
<P>Anybody here have the ability to update the manual?<BR></P></FONT></FONT>
<DIV><FONT color=#000000 size=2 face=Arial></FONT> </DIV></BODY></HTML>