#!/bin/sh
#
sudo /bin/chmod 777 /etc/hosts
sudo /bin/rm -f /etc/hosts #first delete /etc/hosts
echo "
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.148.229 ccccc.aaa.com
192.168.148.230 ddd.aaa.com
192.168.148.228 eeee.corp.aaa.com
192.169.69.1 eeee.corp.aaa.com
127.0.0.1 sift.aaa.com
192.168.148.229 ccccc.aaa.com
192.168.148.230 ddd.aaa.com
192.168.148.228 eeee.corp.aaa.com
192.129.252.28 ffff.aaa.com
192.129.252.28 ggg.aaa.com
127.0.0.1 kkkk.aaa.com
192.239.199.189 hhhh.llll.aaa.com hhhh.llll.aaa.com hhh-nwk.llll.aaa.com
192.239.199.133 ccccc.aaa.com
192.239.199.134 jjj-ebam.aaa.com
192.239.199.19 eeee.corp.aaa.com
192.239.199.134 iiii.aaa.com mfg9
192.169.69.1 eeee.corp.aaa.com
192.54.2.2 bbb.cn
192.54.2.3 bbb.cn
" > /etc/hosts
(/usr/bin/osascript -e 'display dialog "成功更新hosts文件,即时生效,无须重启!" buttons {"OK"} default button "OK"')