Vro dnsmasq replaces hosts and supports Android, iPhone, and PC

Source: Internet
Author: User

The download speed in the Apple App Store is sometimes fast and sometimes slow, because Apple's 2000 servers are distributed across the world.

By modifying hosts, you can specify a Fast IP address, such as a server in Hong Kong and Macao.

Method for obtaining a Fast IP Address:

Query the ping value of the domain name in ping.chinaz.com, and select a few to test the speed in your network.

 

It is easy to modify hosts on PC Windows and Linux. It can also be modified on Android with root permission, but cannot be modified on iPhone or iPad.

Applicable scenarios:

1. Unable to modify hosts: No root Android, IOS, etc.

2. Modification of hosts by multiple people is cumbersome. If the IP address becomes invalid, you must change it to the startup Android and iOS development teams.

Purpose:

Improves the download speed of Apple App Store and Google Play.

Solution:

Configure dnsmasq on the vro。 -- modify the hosts format and write it to the vro.

Dnsmasq supports wildcard domain names. For example, 2000 domain names are required in hosts:

# Apple App Store202.175.5.114A1.phobos.apple.com202.175.5.114A2.phobos.apple.com202.175.5.114A3.phobos.apple.com ......202.175.5.114A2000.phobos.apple.com

Dnsmasq only requires one entry:

 
# Apple App storeaddress=/.Phobos.apple.com/202.175.5.114

 

Software and Hardware requirements:

Because the system of a Home Router generally does not support modifying dnsmasq, it is necessary to install Open-source OS such as DD-WRT and openwrt on the router.

When purchasing a wired or wireless router, please purchase according to the list of DD-WRT and openwrt device support.

DD-WRT Support List: http://www.dd-wrt.com/wiki/index.php/Supported_Devices#TP-Link

Openwrt Support List: http://wiki.openwrt.org/toh/start#tp-link

Common routes:

DD-WRT support:

TP-link 841n (versions 3.x, 5.x, and 7.x). The 8. x scaling version is not supported. ¥129, wireless 300 m, wired 100 m.

TP-link 941n, ¥215, wireless 300 m, wired 100 m.

Openwrt support:

TP-link 1041n, ¥185, wireless 300 m, wired Gigabit.

Procedure:

1. Buy a router

2, to the dd-wrt.com to download OS firmware, In the router management interface 192.168.1.1 brush into the OS

3. Enter the following content in the new DD-wrt OS management interface 192.168.1.1 --> service --> "dnsmasq additional options" --> Application

Dnsmasq for common services:

# Android-> account & Sync -> Add account-> Google ## good, 114 dnsserver =/Android.clients.google.com/ 114.114 . 114.114  # Bad, because Google cn ip No SSL # address =/Android.clients.google.com/ 203.208 . 45.211  # Good, Google usa ip # address =/Android.clients.google.com/ 74.125 . 31.100  # Android -> Gtalk # Good, 114 dnsserver =/Mtalk.google.com/ 114.114 .114.114  # Bad, Google CN # address =/Mtalk.google.com/ 203.208 . 45.211  # Good, Google usa ip # address =/Mtalk.google.com/ 74.125 . 71.188  # Android -> Google Play-> Install  Address =/.C.android.clients.google.com/ 203.208 . 45.211 # Google photo # android -> Google Play-> APP logo and screenshot # Web -> Google playaddress =/.Ggpht.com/ 203.208 . 45.211  # Google user content # android -> Google +-> User avatar and feed IMG # Web -> Google + Address =/.Googleusercontent.com/ 203.208 . 45.211  # Google CN # Web ->Google dituaddress =/.Google.cn/ 203.208 . 45.211  Address =/Google.cn/ 203.208 . 45.211  Address =/G.cn/ 203.208 . 45.211  # Google static # Web -> Google Images searchaddress =/.Gstatic.com/ 203.208 . 45.211 # Web https -> Google Images searchaddress Encrypted-tbn1.google.com/ 203.208 . 45.211  # Web -> Google playaddress =/Play.google.com/ 203.208 . 45.211  Address =/Apis.google.com/ 203.208 . 45.211  # Web ->Gmailaddress =/Clients2.google.com/ 203.208 . 45.211  # Webaddress =/Google.com/ 203.208 . 45.211  Address =/Www.google.com/ 203.208 . 45.211  Address =/Www.google.com.hk/ 203.208 . 45.211  Address =/Accounts.google.com/203.208 . 45.211  Address =/Mail.google.com/ 203.208 . 45.211  Address =/Code.google.com/ 203.208 . 45.211  Address =/Translate.google.com/ 203.208 . 45.211  Address =/Translate.google.com.hk/ 203.208 .45.211  Address =/Docs.google.com/ 203.208 . 45.211  Address =/Profiles.google.com/ 203.208 . 45.211  Address =/Plus.google.com/ 203.208 . 45.211  Address =/Picasaweb.google.com/ 203.208 . 45.211 Address =/News.google.com/ 203.208 . 45.211  Address =/Ditu.google.com/ 203.208 . 45.211  # Apple App storeaddress =/.Phobos.apple.com/ 202.175 . 5.114 

References:

Http://code.google.com/p/dnsmasq-android-ios/

Http://code.google.com/p/smarthosts/

 

Todo:

The URI of the android Google + interface is unknown, so frequent disconnection occurs. The Web version is plus.google.com, which is easy to know.

:

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.