export HTTP_PROXY=http://proxy.example.com:port
export HTTPS_PROXY=http://proxy.example.com:port
~/.bashrc
source ~/.bashrc
go env -w GOPROXY=https://goproxy.cn,direct
nslookup
dig
若以上方法无效,可提供具体错误信息进一步排查。