MDL-12796 iplookup rewrite