That's exactly what I would've suggested. I think you can safely remove this method and replace it completely with Resolv::Hosts