Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dns:ipv6ptr [2009/05/01 18:46]
a example
dns:ipv6ptr [2009/05/25 00:34] (current)
Line 1: Line 1:
 +====== Writing Reverse Zone For IPv6 addresses ======
 +
 +===== Bind8/9 zonefile =====
 +
 +**Example subnet**
 <code bind|f 2001:15c0:66e9> <code bind|f 2001:15c0:66e9>
 ; ;
Line 39: Line 44:
         allow-transfer {xxxx};         allow-transfer {xxxx};
 }; };
 +</code>
 +
 +===== PTR calculation =====
 +
 +**Easy was for writting PTR records**
 +   * Using **ipv6calc**
 +<code>
 +$ ipv6calc 2001:15c0:66e9::1 --out revnibbles.arpa
 +No input type specified, try autodetection...found type: ipv6addr
 +1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.e.6.6.0.c.5.1.1.0.0.2.ip6.arpa.
 +</code>
 +   * Using **perl**
 +<code>
 +$ perl -e 'use Net::IP;$ip=new Net::IP("2a02:c0:100::2/128");print ($ip->reverse_ip()."\n");'
 +2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.c.0.0.2.0.a.2.ip6.arpa.
 +</code>
 +   * Using **sipcalc**
 +<code>
 +$ sipcalc -r 2a01:c08::14
 +-[ipv6 : 2a01:c08::14] - 0
 +
 +[IPV6 DNS]
 +Reverse DNS (ip6.arpa)  -
 +4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.0.c.0.1.0.a.2.ip6.arpa.
 </code> </code>
dns/ipv6ptr.1241196391.txt.gz ยท Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready