Format of the IPv6 reversed zone

Mark Elkins mje at posix.co.za
Thu Jul 28 20:42:47 UTC 2011


On Thu, 2011-07-28 at 14:07 -0400, Khuu, Linh Contractor wrote:
> Hello,
>  
> I’m new to IPv6 configuring in BIND. I need help. The forward zone is
> simple enough with AAAA record, but the reversed zone is a bit
> confusing to me.
>  
> For example, I want to add a hostname of www.example.com to
> 2001:1930:c00::2. This IPv6 address is /48.
>  
> How can I add this IPv6 address in a reversed format?
>  
> $ORIGIN 0.0.0.0.0.0.0.c.0.3.9.1.1.0.0.2.ip6.arpa. IN SOA
> xxxx.xxxx.xxxx
>  
> @ NS dnstemp1.example.com
>  
> What should I put for the PTR??? 
>  
> Is the reversed for IPv6 in the ip6.arpa file or IP6.int file???


I have '2001:42a0::/32', in 'named.conf - I have...
zone "0.a.2.4.1.0.0.2.ip6.arpa" {
        type master;
        file "pri/db.0.a.2.4.1.0.0.2.ip6.arpa";
};

Top of the file could look like....
$TTL 7200
@               IN SOA  blah..... usual stuff..


Then - networks are all /64's - so - using the $ORIGIN variable...
do something like this per network.... 

; 2001:42a0:0:ff02::/64, Some description of this network
$ORIGIN 2.0.f.f.0.0.0.0.0.a.2.4.1.0.0.2.ip6.arpa.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0   IN  PTR  cisco.posix.co.za.
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0   IN  PTR  dns1.posix.co.za.

or simply delegate them off
; 2001:42a0:1:82::/64, another network
2.8.0.0.1.0.0.0.0.a.2.4.1.0.0.2.ip6.arpa. NS  dns1.posix.co.za.
                                          NS  dns2.posix.co.za.

'dig -x' is your friend for expanding the address!

eg - dig -x 2001:42a0:1:82:: +noall +question
...then cut'n'paste!
 
>  
> Thanks,
> Linh Khuu
> 
>  
>  
>  
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
  .  .     ___. .__      Posix Systems - Sth Africa.  e.164 VOIP ready
 /| /|       / /__       mje at posix.co.za  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6696 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20110728/7a024a86/attachment.bin>


More information about the bind-users mailing list