Added the rev_domains function for ipv4 and ipv6. It allows
to ask addresses for the reverve domain names which are used
in the SOA Records.
There are subnet/supernet functions in ipv4 this was missing in
ipv6. I decided not to use the same api in ipv6, instead i added a
function called each_net which loops over all nets.