Make localhost work even if regular name resolution fails