Transferred from: http://blog.csdn.net/chenggong2dm/article/details/7024717
Due to the high latency of telecom unicom visits (and sometimes inaccessible phenomena), the Web game server must be made into two lines.
There are many ways to implement a double line, even from the bottom of the package,
But here we have a simple way to implement a two-line:dnspod+ server-side socket binding domain name way .
Encyclopedia Information:
Founded in March 2006, dnspod is a free and intelligent DNS product. Dnspod can be a telecommunications, Netcom, Education Network Server Web site to provide intelligent analysis, so that telecommunications users access to telecommunications servers, Netcom users to access the server Netcom, education network users access to education network server, to achieve the effect of interoperability.
Dnspod was founded in March 2006, is the earliest to provide free intelligent DNS Products website, is committed to providing a variety of web sites with high-quality multi-line intelligent DNS free resolution.
dnspod to stability, security, powerful, intelligent free, high-speed advantages won the majority of Stationmaster and enterprise users love, so that more and more enterprise stations, local portals, game stations and so on are in use Dnspod, they like the dnspod to bring them stability , affordability, access speed and a very high user experience, using ordinary DNS (such as domain name registrars provide) is not "use", but can not be avoided because of instability caused by the site often not open, because the function of the limitations can not achieve the function that you want to achieve, because the user experience is not good enough, such as lost customers. So choosing a good DNS service provider can bring great and unexpected benefits to your website and avoid unnecessary losses.
Function: In addition to intelligent DNS resolution, ordinary DNS resolution can also meet the user's stability, high-speed and other needs. Relative competitor's products, dnspod in addition to the real-time effective, not limit the number of users added domain names and records, but also the first to provide IPV6 support and dynamic Domain name resolution function, in addition to support DNS polling, URL forwarding, API interface, batch modification management and other advanced features. And all features are provided free of charge.
Use dnspod webmaster know, dnspod not only with strong technical advantage, but also rely on high-quality service to win the market, for hundreds of thousands of free users and thousands of VIP users set up corresponding technical support! Do users and dnspod at any time can communicate, have problems in time to solve!
Rice Chat, American Regiment, 58 with the city, 115 network disk, 360, Starbucks, 114, 4399, VeryCD, Innovation Workshop under the full range of products, 7k7k, Huajun download, play games, Chinaz, CSDN, Storm video and other well-known sites are using Dnspod service!
First of all, dnspod settings:
You need to set the route type separately, and also by a default line. Of course, your server needs to have two IP, a telecom, a netcom:
www A default 120.31.62.xxx
www A Telecom 121.9.243.xxx
www A unicom 120.31.62.xxx
Again, the settings in the program:
program, in fact, nothing to say, is to listen to the domain name, not listening to IP.
Summarize:
Find each place, each kind of line of people (Great Wall Broadband, CRC, Gehua cable etc ...) Help test a bit, originally can not login, can log in, originally very slow, now speed acceptable. Proving that this simple two-line solution is still possible.
The most distant-
The furthest distance in the world
Not Antarctica to the North Pole.
But I'm in the wall, you're outside the wall.
The furthest distance in the world
I'm not in the wall, you're outside the wall.
But I'm in telecom you're in Netcom
-----To be a programmer in China, you should not only master FQ, but also learn the double line. Thank the Motherland for my training here.
Set up a dual-line server (dual-line game server)