我的博客已迁移到xdoujiang.com请去那边和我交流
一、通过windows的hosts文件(C:\Windows\System32\drivers\etc\hosts)
aaa.bbb.com 111.111.111.111
111.111.111.111 aaa.bbb.com

二、通过linux下的/etc/hosts(cat /etc/hosts)
aaa.bbb.com 111.111.111.111
111.111.111.111 aaa.bbb.com

三、通过curl命令直接绑定访问
curl -H "Host:aaa.bbb.com" http://111.111.111.111 > /dev/null