I think this will be expensive - you have to scan all reverse zones and search for the (closest) match. This will require a lot of command calls and parsing. You simply do not now how is the zone named - the zones may be created using any subnet rules.