Better fix for issue #2333, does localhost as well so we dont break local name resolution for things like puppet