指定域名解析到指定IP:

vi /etc/hosts

119.147.6.237 api.weixin.qq.com

 

 

指定解析服务器

vi /etc/resolv.conf

nameserver 8.8.8.8

nameserver 61.139.2.69