<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://plnx.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=BIND_IPv6_%24GENERATE</id>
	<title>BIND IPv6 $GENERATE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://plnx.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=BIND_IPv6_%24GENERATE"/>
	<link rel="alternate" type="text/html" href="https://plnx.nl/wiki/index.php?title=BIND_IPv6_$GENERATE&amp;action=history"/>
	<updated>2026-05-03T13:00:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://plnx.nl/wiki/index.php?title=BIND_IPv6_$GENERATE&amp;diff=15&amp;oldid=prev</id>
		<title>Pverha10: Created page with &quot;There is no $GENERATE command available on IPv6, therefore you must specify every forward and reverse entry in bind manually. You could however use the $INCLUDE statement to include a range you have generated with a script. I will post a script here to generate IPv6 forward and reverse files you can include in bind.  =generate-forward-ipv6.sh= &lt;pre&gt; #!/bin/sh # generate 250 of these lines: # ip20-042     IN      AAAA    2001:dead:beef:14::2a # where 20(0x14) is the vlani...&quot;</title>
		<link rel="alternate" type="text/html" href="https://plnx.nl/wiki/index.php?title=BIND_IPv6_$GENERATE&amp;diff=15&amp;oldid=prev"/>
		<updated>2025-05-17T07:42:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;There is no $GENERATE command available on IPv6, therefore you must specify every forward and reverse entry in bind manually. You could however use the $INCLUDE statement to include a range you have generated with a script. I will post a script here to generate IPv6 forward and reverse files you can include in bind.  =generate-forward-ipv6.sh= &amp;lt;pre&amp;gt; #!/bin/sh # generate 250 of these lines: # ip20-042     IN      AAAA    2001:dead:beef:14::2a # where 20(0x14) is the vlani...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There is no $GENERATE command available on IPv6, therefore you must specify every forward and reverse entry in bind manually. You could however use the $INCLUDE statement to include a range you have generated with a script.&lt;br /&gt;
I will post a script here to generate IPv6 forward and reverse files you can include in bind.&lt;br /&gt;
&lt;br /&gt;
=generate-forward-ipv6.sh=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# generate 250 of these lines:&lt;br /&gt;
# ip20-042     IN      AAAA    2001:dead:beef:14::2a&lt;br /&gt;
# where 20(0x14) is the vlanid and 42(0x2a) is the host part&lt;br /&gt;
if [ -z $1 ]; then&lt;br /&gt;
 echo &amp;quot;usage: $0 &amp;lt;vlanid&amp;gt;&amp;quot;&lt;br /&gt;
 exit&lt;br /&gt;
fi&lt;br /&gt;
vlanid=$1&lt;br /&gt;
counter=1&lt;br /&gt;
while [ $counter -le 250 ]; do&lt;br /&gt;
 printf &amp;quot;ip$vlanid-%03d\tIN\tAAAA\t2001:dead:beef:%x::%x\n&amp;quot; $counter $vlanid $counter;&lt;br /&gt;
 counter=`expr $counter + 1`&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=generate-reverse-ipv6.sh=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# generate these lines:&lt;br /&gt;
# $ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.1.0.0.f.e.e.b.d.a.e.d.1.0.0.2 PTR ipv6.example.com.&lt;br /&gt;
# 1.0 PTR ip20-042.example.com.&lt;br /&gt;
if [ -z $1 ]; then&lt;br /&gt;
 echo &amp;quot;usage: $0 &amp;lt;vlanid&amp;gt;&amp;quot;&lt;br /&gt;
 exit&lt;br /&gt;
fi&lt;br /&gt;
vlanid=$1&lt;br /&gt;
reversedottedhexvlan=&amp;quot;`printf &amp;quot;%04x\n&amp;quot; $vlanid | rev | sed -e &amp;#039;s/^./&amp;amp;./&amp;#039; | sed -e &amp;#039;s/^.../&amp;amp;./&amp;#039; | sed -e &amp;#039;s/^...../&amp;amp;./&amp;#039;`&amp;quot;&lt;br /&gt;
echo &amp;quot;\$ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.$reversedottedhexvlan.f.e.e.b.d.a.e.d.1.0.0.2.ip6.arpa.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
counter=1&lt;br /&gt;
while [ $counter -le 250 ]; do&lt;br /&gt;
reversedottedhostid=&amp;quot;`printf &amp;quot;%02x\n&amp;quot; $counter | rev | sed -e &amp;#039;s/^./&amp;amp;./&amp;#039;`&amp;quot;&lt;br /&gt;
printf &amp;quot;$reversedottedhostid PTR ip$vlanid-%03d.example.com.\n&amp;quot; $counter;&lt;br /&gt;
&lt;br /&gt;
counter=`expr $counter + 1`&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pverha10</name></author>
	</entry>
</feed>