This patch ensures that PTR records added by FreeIPA are compliant with
RFC.

Advertising

Nack.
In my opinion the _ptrrecord_pre_callback should also handle PTR records
for IPv6 addresses.
You can check validity of IPv6 PTR record this way (pseudocode):
zone.replace(.ip6.arpa., '')
if (len(addr.split('.')) + len(zone.split('.')) != 32)
raise_error
Regards, Adam

Thanks for the review, I made the changes you suggested. Second patch is in
attachment.