curl设置代理sock5
curl -x socks5h://192.168.56.1:1080 https://www.google.com
centos7 设置DNS
# 查询网卡连接
nmcli connection show
# 查看使用的哪个网卡
ip addr
# 设置dns
nmcli con mod 'Wired connection 1' ipv4.dns "223.5.5.5"
# 生效
nmcli con up 'Wired connection 1
curl -x socks5h://192.168.56.1:1080 https://www.google.com
# 查询网卡连接
nmcli connection show
# 查看使用的哪个网卡
ip addr
# 设置dns
nmcli con mod 'Wired connection 1' ipv4.dns "223.5.5.5"
# 生效
nmcli con up 'Wired connection 1