virtualbox 上的 centOS“无法解析代理

centOS on virtualbox "Couldn't resolve proxy

所以我在 virtualBox 上从 hortonworks 安装了 sandbox(运行 centOS) 使用网络配置>>> bridged network 我编辑了 bashrc 以将 http_proxy 和 https_proxy 导出为

export http_proxy=http://host_name:port
export https_proxy=https://host_name:port

我能做到ping 但是当我使用 yumwgetcurl 我得到

14: PYCURL ERROR 5 - "Couldn't resolve proxy 'host_name'"

有人可以告诉我我做错了什么吗?

作为我的问题的答案,以防万一有人遇到同样的问题.. 我只是将 host_name 替换为 IP 地址,它工作正常