So the goal of using Resolv::Hosts should be to eliminate this, because depending on the platform we're on this may not work