-
All replies
-
Helpful answers
-
-
Jun 8, 2015 8:38 AM in response to ColeWorld98by Loner T,There is a much faster method from OSX Terminal. To delete lines containing apple.com and create a bak file with the original entries containing apple.com, triple click on each of the following lines and Copy (Command+C) and Paste (Command+V) and post the screen output.
sed -e'/apple.com/d' -i bak /private/etc/hosts
sdiff /private/etc/hosts /private/etc/hostsbak
If there are no issues, next step would be to repeat these steps for /etc/hosts file, as follows
sudo sed -e'/apple.com/d' -i bak /etc/hosts
sudo sdiff /private/etc/hosts /etc/hostsbak
Here is my test with a copy of /private/etc/hosts
$ sed -e'/apple.com/d' -i bak test_hosts
$ cat test_hosts
##
# 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
fe80::1%lo0 localhost
$ cat test_hostsbak
##
# 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
fe80::1%lo0 localhost
127.0.0.1 swcdn.apple.com