service: refactor rdns editing to work on IPRanges larger than /24