Improves the download speed of itunes on Mac

Source: Internet
Author: User


Increase the download speed of itunes on Mac after I bought an iPhone 4S for my wife. I started to download the software from iTunes on Mac. I found that the download speed was very fast, and the home was also 10 m optical fiber, the downloading speed of this small water pipe is absolutely intolerable, So Baidu once found that it may be a problem caused by domain name resolution. Apple has prepared a group of servers from a1.phobos.apple.com to a2000.phobos.apple.com for the App Store. If it is connected to a slow server, it must be a small pipe. The solution is to detect the fastest IP address, and then point all domain names to this IP address in the HOSTS file. I used a tool in Windows to check some information on the Internet, but I am not using Windows for Mac. It is not difficult to think about this. I wrote a script to detect the fastest IP address. The Code is as follows: www.2cto.com 1 #! /Bin/sh 2 3 # Find the fastest apple store hosts 4 5 printf "%-20s \ t %-16s \ t %-10s \ n" "Domain" "Ip "" avg Ping "6 # printf" Domain \ tIp \ tAvg Ping \ n "7 for (I = 1; I <2001; I ++); do 8 HOST = "a $ I .phobos.apple.com" 9 TEMP =$ (ping-c 4 $ HOST) 10 IP = $ (echo $ TEMP | grep-oE '[0-9] {1, 3 }\. [0-9] {1, 3 }\. [0-9] {1, 3 }\. [0-9] {1, 3} '| uniq) 11 TIME = $ (echo $ TEMP | grep-oE' \/([0-9] * \. [0-9] *) \/'| grep-oE' [0-9] * \. [0-9] * ') Www.2cto.com 12 printf "%-20s \ t %-16s \ t %-10s \ n" $ HOST $ IP $ TIME13 done has a problem with this speed-up method, if the IP address you point to is out of service, you may not be able to access the App Store of iTunes. In this case, you only need to find an available IP address, replace the content in HOSTS. After using this method, the download speed is improved, but it is not satisfactory. Later, in reference 4, we can see that the ping value alone does not reflect the speed of the network, so we need to study how to find the most suitable download server. During the test of www.2cto.com, I switched the DNS to Google Public DNS and found that the IP address returned by the same domain name a1.phobos.apple.com had changed, I guess Apple uses CDN in the deployment of the iTunes App Store. Although some ping results become faster after 8.8.8.8 is used, Mac system updates become particularly slow, which is caused by DNS resolution of IP Addresses abroad. It seems that the configuration of the online world is really complicated. A change may affect multiple aspects. To achieve an optimal one, it can only be dynamically adjusted. References: 1. How can I speed up downloading software or App update packages from the App Store in iTunes? Mod = viewthread & tid = 9127574, Google ultra-fast DNS server: 8.8.8.8 and 8.8.4.4http: // briian.com /? P = 66675, Google Public DNShttps: // developers.google.com/speed/public-dns/ Cocowool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.