[AusNOG] IPv6 rDNS Zone File
Beeson, Ayden
ABeeson at csu.edu.au
Fri Sep 19 15:14:08 EST 2014
Sure can, our named server has done this:
$ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.1.0.0.2.0.0.0.d.2.5.0.4.2.ip6.arpa.
1.0.0 PTR gw-200-1100.csumain.csu.edu.au.
8.2.2 PTR netwwqa01.csumain.csu.edu.au.
For the zone 0.0.1.1.0.0.2.0.0.0.d.2.5.0.4.2.ip6.arpa
The full address of that host is:
[cid:image001.gif at 01CFD41C.5BECEBA0]<http://ipamqa01.csumain.csu.edu.au/nictool/zone.cgi?&nt_zone_record_id=282&nt_zone_id=19&nt_group_id=1&edit_record=1#RECORD>8.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.1.0.0.2.0.0.0.d.2.5.0.4.2.ip6.arpa
The named server knows the zone (2405:2d00:200:1100::/64) and knows the host PTR (2405:2d00:200:1100::228) so it knows it can trim all the extra 0’s from the PTR and save wasting space in the zone file for each entry, interestingly it has inserted an $ORIGIN above that with the rest, so it looks like it would still need them there if you didn’t have an origin entry specifying the full path to it. Not quite as cool as I thought it might have been acting but its still much better than having a tonne of full length entries.
As for the zones, I found it much neater to split all my zones down to the /64’s as we allocated them. It means I can have a more traditional split up zone file layout that lines up with the networks as they are defined, while also meaning I can check out individual zone contents without having to dump the lot.
I can also then do lots of other cool stuff like turning on dynamic updates on some zones and not others, plus a lot of other cool things.
We were using plain text files until recently, we are in the process of changing over to a proper IPAM / DNS management system given IPv6 is effectively (though not completely) impossible to properly manage without some sort of automation tool to assist to prevent typos etc.
PS – If you are interested, the tools we are using for this are phpipam (https://sourceforge.net/projects/phpipam/) to track IP allocations and subnets and nictool (http://www.nictool.com/) to handle DNS zone maintenance. I have created some integration scripts (Perl in this case) between them that goes and automatically creates the zones and host records as they are assigned in phpipam, I’ve also got some cool puppet modules to generate the DNS and DHCP server configuration as well as initialise the empty zone files when needed, with Nictool (via an nsupdate delta changes insert / delete export module) and DHCP then both able to insert into DNS via keys and allow statements.
Thanks,
Ayden Beeson
From: Damien Gardner Jnr [mailto:rendrag at rendrag.net]
Sent: Friday, 19 September 2014 2:35 PM
To: Beeson, Ayden
Cc: Mark Prior; Daniel Watson; ausnog at ausnog.net
Subject: Re: [AusNOG] IPv6 rDNS Zone File
Can you explain what you mean by trimming off excess 0's? I've found it to need exactly the right amount of 0's in the zone file, or nothing works.. Makes it interesting as you go from :000f to :0010 etc if you forget and just add a digit etc ;)
I have to admit I've been changing $ORIGIN partways through the file as I get to each /64 just to cut down on the amount of typing I have to do.. (But then I've always just used plain text files for my own stuff.. Now the perl script we had sitting behind powerdns, running the rdns at PFN was a work of art and saved so much time ;)
Cheers,
DG
On 19 September 2014 13:34, Beeson, Ayden <ABeeson at csu.edu.au<mailto:ABeeson at csu.edu.au>> wrote:
In addition, IPv6 forward zones should always use AAAA records for v6 addresses, not A records.
The other thing is you can trim off the extra 0's from the IPv6 reverse entries, our named server seems to be doing that automatically, other than that it should be fine though you might be better off with smaller zone files specific to /64's though that is really up to you.
Thanks,
Ayden Beeson
-----Original Message-----
From: AusNOG [mailto:ausnog-bounces at lists.ausnog.net<mailto:ausnog-bounces at lists.ausnog.net>] On Behalf Of Mark Prior
Sent: Friday, 19 September 2014 1:31 PM
To: Daniel Watson; ausnog at ausnog.net<mailto:ausnog at ausnog.net>
Subject: Re: [AusNOG] IPv6 rDNS Zone File
Why do you have CNAME, MX and especially an A RR in a reverse file? It's for mapping an IP address to a name.
Mark.
On 19/09/2014 12:19, Daniel Watson wrote:
> Hii Guys
>
> We are now using cPanel for our rDNS as it seems to be a bit easier
>
> I was wondering if anybody can confirm if I am doing this correctly
> for
> IPv6 tho, I know IPV4 works fine
>
> Our allocation is 2406:8900::/32
>
> Zone file is: 0.0.9.8.6.0.4.2.ip6.arpa.db
>
> Zone file consists of
>
> ; cPanel first:11.44.1.18 (update_time):1410954627
> Cpanel::ZoneFile::VERSION:1.3 hostname:server.glovine.com.au<http://server.glovine.com.au>
> latest:11.44.1.18
>
> ; Zone file for 0.0.9.8.6.0.4.2.ip6.arpa
>
> $TTL 14400
>
> 0.0.9.8.6.0.4.2.ip6.arpa. 86400 IN SOA
> ad1.glodns.com.au<http://ad1.glodns.com.au>. serverman.glovine.com.au<http://serverman.glovine.com.au>. (
>
> 2014091702<tel:2014091702> ;Serial
> Number
>
> 86400 ;refresh
>
> 7200 ;retry
>
> 3600000 ;expire
>
> 86400 ;minimum
>
> )
>
> 0.0.9.8.6.0.4.2.ip6.arpa. 86400 IN NS ad1.glodns.com.au<http://ad1.glodns.com.au>.
>
> 0.0.9.8.6.0.4.2.ip6.arpa. 86400 IN NS ad2.glodns.com.au<http://ad2.glodns.com.au>.
>
> 0.0.9.8.6.0.4.2.ip6.arpa. 14400 IN A 103.18.205.2
>
> localhost 14400 IN A 127.0.0.1
>
> 0.0.9.8.6.0.4.2.ip6.arpa. 14400 IN MX 0
> 0.0.9.8.6.0.4.2.ip6.arpa.
>
> mail 14400 IN CNAME 0.0.9.8.6.0.4.2.ip6.arpa.
>
> www 14400 IN CNAME 0.0.9.8.6.0.4.2.ip6.arpa.
>
> ftp 14400 IN CNAME 0.0.9.8.6.0.4.2.ip6.arpa.
>
> 3.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0 14400 IN PTR ipv6.morgara.com<http://ipv6.morgara.com>.
>
> TIA
>
> Regards,
>
> Daniel Watson
>
> Network Administrator / Network Operations Manager
>
> E Daniel at GloVine.com.au<mailto:Daniel at GloVine.com.au>
>
> W www.GloVine.com.au<http://www.GloVine.com.au>
>
>
>
> _______________________________________________
> AusNOG mailing list
> AusNOG at lists.ausnog.net<mailto:AusNOG at lists.ausnog.net>
> http://lists.ausnog.net/mailman/listinfo/ausnog
>
_______________________________________________
AusNOG mailing list
AusNOG at lists.ausnog.net<mailto:AusNOG at lists.ausnog.net>
http://lists.ausnog.net/mailman/listinfo/ausnog
Charles Sturt University
| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ONTARIO | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |
LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.
Charles Sturt University in Australia http://www.csu.edu.au The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Numbers: 00005F (NSW), 01947G (VIC), 02960B (ACT)). TEQSA Provider Number: PV12018
Charles Sturt University in Ontario http://www.charlessturt.ca 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: www.peqab.ca<http://www.peqab.ca>
Consider the environment before printing this email.
_______________________________________________
AusNOG mailing list
AusNOG at lists.ausnog.net<mailto:AusNOG at lists.ausnog.net>
http://lists.ausnog.net/mailman/listinfo/ausnog
--
Damien Gardner Jnr
VK2TDG. Dip EE. GradIEAust
rendrag at rendrag.net<mailto:rendrag at rendrag.net> - http://www.rendrag.net/
--
We rode on the winds of the rising storm,
We ran to the sounds of thunder.
We danced among the lightning bolts,
and tore the world asunder
[cid:csu-logo728.bmp]<http://www.csu.edu.au/>
| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ONTARIO | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |
________________________________
LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.
Charles Sturt University in Australia<http://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Number: 00005F (National)). TEQSA Provider Number: PV12018
Charles Sturt University in Ontario<http://www.charlessturt.ca/> 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: www.peqab.ca<http://www.peqab.ca>
[cid:anniversay51d1.bmp]
Consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20140919/064703eb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 121 bytes
Desc: image001.gif
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20140919/064703eb/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csu-logo728.bmp
Type: image/bmp
Size: 37976 bytes
Desc: csu-logo728.bmp
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20140919/064703eb/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anniversay51d1.bmp
Type: image/bmp
Size: 53864 bytes
Desc: anniversay51d1.bmp
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20140919/064703eb/attachment-0003.bin>
More information about the AusNOG
mailing list