fix to use resolve-hostname for cached resolver