AW: ipv6 PTR in zone file

Chris Thompson cet1 at cam.ac.uk
Tue Apr 12 11:16:40 UTC 2011


On Apr 12 2011, Marco Davids (SIDN) wrote:

>On 04/12/11 10:50, Walter.Jontofsohn at t-systems.com wrote:
>
>> you could use ipv6calc (ftp://ftp.bieringer.de/pub/linux/ipv6/ipv6calc) to calculate the reverse strings.
>
>Yes.
>
>Or do it 'the BIND way':
>
> dig  -x 2001:7b8:c05::80:1 | grep ip6.arpa | tail -1 | awk '{print $1}'

Oh, yuck. There is a perfectly good program shipped with BIND to do this:

$ type arpaname
arpaname is /usr/local/sbin/arpaname

$ arpaname 2001:7b8:c05::80:1
1.0.0.0.0.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.0.C.0.8.B.7.0.1.0.0.2.IP6.ARPA

-- 
Chris Thompson
Email: cet1 at cam.ac.uk



More information about the bind-users mailing list