CN106210155A - The method and apparatus connecting application server - Google Patents
The method and apparatus connecting application server Download PDFInfo
- Publication number
- CN106210155A CN106210155A CN201510213011.2A CN201510213011A CN106210155A CN 106210155 A CN106210155 A CN 106210155A CN 201510213011 A CN201510213011 A CN 201510213011A CN 106210155 A CN106210155 A CN 106210155A
- Authority
- CN
- China
- Prior art keywords
- application server
- server address
- list
- application
- applications client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of method and apparatus connecting application server, the method includes: by the applications client of local runtime, preset the application server address list corresponding to domain name to dns server acquisition request;If to described dns server acquisition request application server address list failure, then obtaining the application server address list that described applications client carries;Application server address is selected from the application server address list obtained;Application server address according to selecting connects with corresponding application server.The method and apparatus connecting application server that the present invention provides, can avoid causing cannot connect to the situation of application server because of dns server fault, providing convenience for domestic consumer, avoiding the loss caused because cannot connect to application server for application service provider.
Description
Technical field
The present invention relates to networking technology area, particularly relate to a kind of method and apparatus connecting application server.
Background technology
Can install in terminal various should be for realizing various function, some application that terminal is installed need even
Receive application server to carry out data interaction.At present terminal is connected to application server and typically requires and pass through
DNS (Domain Name System, domain name system) server carries out domain name mapping, thus obtains corresponding
Application server address, and then use this application server address to access this application server.
But, connect at present the method for application server and place one's entire reliance upon dns server, if DNS service
Device breaks down, and terminal just cannot connect to application server.And now terminal and application server are just all
Often work, bring inconvenience thus to the service provider belonging to user and application server.
Summary of the invention
Based on this, it is necessary to place one's entire reliance upon dns server for the method connecting at present application server,
The problem that dns server fault will cause cannot connect to application server, it is provided that a kind of connection application service
The method and apparatus of device.
A kind of method connecting application server, described method includes:
By the applications client of local runtime, preset answering corresponding to domain name to dns server acquisition request
Use list of server addresses;
If to described dns server acquisition request application server address list failure, then
Obtain the application server address list that described applications client carries;
Application server address is selected from the application server address list obtained;
Application server address according to selecting connects with corresponding application server.
A kind of device connecting application server, described device includes:
Domain name mapping request module, for by the applications client of local runtime, asking to dns server
Obtain the application server address list preset corresponding to domain name;
Acquisition module, if for failed to described dns server acquisition request application server address list,
Then obtain the application server address list that described applications client carries;
Application server address selects module, for selecting application from the application server address list obtained
Server address;
Link block, for connecting with corresponding application server according to the application server address selected.
The method and apparatus of above-mentioned connection application server, when having the demand connecting application server, first
First pass through applications client and attempt the request default domain name of dns server parsing, to obtain corresponding application service
Device address list, so compatible domain name mapping mode.When dns server breaks down, it is impossible to complete
Domain name mapping, the most now obtains the application server address list that applications client carries, therefrom selects application
Server address connects corresponding application server.Thus can avoid leading because of dns server fault
Cause cannot connect to the situation of application server, provide convenience for domestic consumer, for application service provider
Avoid the loss caused because cannot connect to application server.
Accompanying drawing explanation
Fig. 1 is the applied environment figure of application service system in an embodiment;
Fig. 2 is the composition structural representation of terminal in an embodiment;
Fig. 3 is the composition structural representation of application server in an embodiment;
Fig. 4 is the schematic flow sheet of the method connecting application server in an embodiment;
Fig. 5 is the step updating the application server address list that applications client carries in an embodiment
Schematic flow sheet;
Fig. 6 is the schematic flow sheet realizing connecting the method for application server in a concrete application scenarios;
Fig. 7 is the structured flowchart of the device connecting application server in an embodiment;
Fig. 8 is the structured flowchart of the device connecting application server in another embodiment;
Fig. 9 is the structured flowchart of the device connecting application server in further embodiment.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
As it is shown in figure 1, in one embodiment, it is provided that a kind of application service system 100, including terminal
102 and application server 104.Terminal 102 can be connected to application server 104, terminal 102 by network
DNS (Domain Name System, domain name system) server can be connected to by network.
As in figure 2 it is shown, in one embodiment, processor that terminal 102 includes being connected by system bus,
Non-volatile memory medium, built-in storage and network interface.The processor of terminal 102 have computing function and
Controlling the control function of whole terminal 102 work, this processor is configured to perform one and is applicable to terminal 102
Connect application server method.The non-volatile memory medium of terminal 102 includes: magnetic storage medium,
Flash-type storage medium and optical storage media etc..The non-volatile memory medium storage of terminal 102 has operation system
System and a kind of device connecting application server, the device of this connection application server is used for realizing a kind of connection
The method of application server.The network interface of terminal 102 is used under the instruction of processor and extranets cross winding
Change data.Terminal 102 includes desk computer and mobile terminal, mobile terminal include mobile phone, panel computer,
Intelligent watch, PDA (personal digital assistant) etc..
As it is shown on figure 3, in one embodiment, application server 104 includes being connected by system bus
Processor, non-volatile memory medium, built-in storage and network interface.The processor of application server 104
There is computing function and control the control function of whole application server 104 work, application server 104
Processor is configured to perform a kind of connection request processing method, please for processing the connection of self terminal 102
Ask.The non-volatile memory medium of application server 104 includes: magnetic storage medium, flash-type storage medium
With optical storage media etc..The non-volatile memory medium storage of application server 104 has operating system, data
Storehouse and connection request processing means, this connection request processing means is used for realizing a kind of connection request processing method.
The network interface of application server 104 is for exchanging data with external network under the instruction of processor.Each
Application server 104 can stand alone as terminal 102 and provide application service support.
As shown in Figure 4, in one embodiment, it is provided that a kind of method connecting application server, this reality
Execute the terminal 102 that example is applied in above-mentioned Fig. 1 and Fig. 2 in this way to illustrate.In this terminal 102
Operation has applications client, is performed each step of the method for this connection application server by this applications client
Suddenly.The method specifically includes following steps:
Step 402, by the applications client of local runtime, presets domain name to dns server acquisition request
Corresponding application server address list.
Specifically, on dns server, record has the mapping relations of default domain name and application server address, eventually
The end 102 applications client by terminal 102 local runtime, sends to dns server and carries default territory
The domain name mapping request of name, acquisition request dns server arrive according to this domain name mapping requesting query this preset
Application server address list corresponding to domain name.
In terminal 102 run applications client include instant messaging applications client, game applications client,
Client etc. is supported in webpage agent application client, reading applications client and motion.User can be by eventually
The installation kit that end 102 downloads applications client from network is installed on the terminal 102, such application client
End just may operate in terminal 102.
A certain terminal or the name of terminal set on the Internet that domain name is made up of the name of a string separation
Claim, for identifying the network site of terminal, such as www.abc123.com when data are transmitted.Preset domain name
For identifying the network site of application server 104, same default domain name can corresponding multiple application servers
104, each application server 104 is identified with corresponding application server address.Application server address
Can be IPv4 (fourth edition of Internet protocol (Internet Protocol, IP)) or IPv6 (the Internet
The sixth version of agreement).
Step 404, it is judged that to dns server acquisition request application server address list success or failure.
If success, after getting the application server address list of dns server feedback, perform step 408, if losing
Lose then execution step 406.
In one embodiment, step 404 includes: receive the feedback information of dns server feedback, it is judged that
Feedback information represents asks successfully or asks unsuccessfully.
In the present embodiment, unsuccessfully include to dns server acquisition request application server address list: receive
To dns server feedback for representing the failed feedback information of request.In the present embodiment, if feedback information
Representing asks successfully, concrete expression acquisition request application server address list success, then obtain feedback information
Application server address list entrained by, and then perform step 408.Ask unsuccessfully if feedback information represents,
Concrete expression acquisition request application server address list failure, then continue executing with step 406.
Specifically, in the present embodiment, feedback information can include request results flag bit and application server address
Table data section.Wherein request results flag bit is asked successfully or is asked for representing unsuccessfully, can be with presetting
Two kinds value respectively represent ask successfully with ask unsuccessfully.Application server address table data section is used for storing
Application server address list, if asking unsuccessfully, application server address table data section can be null value.
In one embodiment, step 404 includes: judge presetting from initiating request to dns server
The feedback information of dns server feedback whether is received within duration.If receiving feedback information, continue to sentence
The feedback information of disconnected feedback represents asks successfully or asks unsuccessfully.If not receiving feedback information, decision request
Obtain application server address list failure.In the present embodiment, to dns server acquisition request application service
The failure of device address list, including: do not receive within the preset duration from initiating request to dns server
The feedback information of dns server feedback.Exceed preset duration and do not receive feedback information, request timed out, say
Bright dns server fault.Preset duration can set as required, such as 1 second.
Step 406, obtains the application server address list that applications client carries.
Specifically, the application server address list that applications client carries, when applications client is published
Portable belt is in applications client.Entrained by the applications client of redaction is up-to-date application server ground
Location list.This application server address list includes the available application corresponding to each application server 104
Server address, available application server address refers to that this application server address is effective, it is possible to even
Receive corresponding application server.
Step 408, selects application server address from the application server address list obtained.
Specifically, terminal 102 can pass through applications client, from the application server address list obtained
In order or randomly choose an application server address.
In one embodiment, step 408 includes: acquisition current network ISP (Internet Service Provider,
ISP) type;Select and current network ISP from the application server address list obtained
The application server address of type matching.
Specifically, ISP type is used to identify the data of corresponding ISP, current network
Referring to the network that terminal 102 is used when performing step 408, current network ISP type then refers to currently
The ISP type of network.Current network can be cable network or mobile communications network, and cable network is such as
Dial-up network or ADSL (Asymmetric Digital Subscriber Line, asymmetrical digital subscriber
Circuit) network etc., mobile communications network such as GPRS (General Packet Radio Service, general point
Group wireless service) network.
In the present embodiment, application server address list includes answering corresponding to various default ISP types
With server address, to cover the application server address of all known network ISP types as far as possible.So
The application server address of coupling current network ISP type is selected from the application server address list obtained,
Just can get the application server address being best suitable for current network, improve and be successfully connected to application server
Probability.
Step 410, the application server address according to selecting connects with corresponding application server.
Specifically, terminal 102 is initiated to carry selectable application server address and end by applications client
The connection request of the terminal address of end 102, the application server address wherein selected is as destination address, eventually
End address is as source address.Connection request is sent in connection request entrained application by network route and takes
Business application server corresponding to device address so that this application server is set up and terminal according to this connection request
The connection of 102.
The method of above-mentioned connection application server, when having the demand connecting application server, first passes through
Applications client is attempted request dns server and is resolved default domain name, to obtain corresponding application server address
List, so compatible domain name mapping mode.When dns server breaks down, it is impossible to complete domain name solution
Analysis, the most now obtains the application server address list that applications client carries, therefrom selects application server
Address connects corresponding application server.Thus can avoid causing because of dns server fault cannot
It is connected to the situation of application server, provides convenience for domestic consumer, avoid for application service provider
The loss caused because cannot connect to application server.
As it is shown in figure 5, in one embodiment, the method for this connection application server also includes more new opplication
The step of the application server address list that client carries, specifically includes following steps:
Step 502, receives the application server address renewal that the application server connected feeds back after successful connection
List.
Specifically, after terminal 102 is successfully established connection by applications client with corresponding application server,
Both sides just can be communicated by the connection of this foundation.Such as when applications client be instant messaging application visitor
During the end of family, user just can carry out instant messaging by the instant messaging application server connected.
And, application server can with terminal 102 successful connection after, feed back application service to terminal 102
Device address updates list.In one embodiment, this application server address renewal list at least includes increasing newly
The available application server address added;In one embodiment, this application server address updates list also
Available application server address and the application server address of inefficacy newly increased can be included;A reality
Executing in example, this application server address updates list can also include all available application server address.
In one embodiment, application server address update each application server address in list respectively with respectively
From the ISP type preset corresponding.
In one embodiment, connection request carries the first List Identification, this first List Identification and application
The application server address list that client carries is corresponding, and application server address updates list correspondence secondary series
Table identifies, then the application server address received in step 502 updates list, and to be application server judging the
Feedback when one List Identification and the second List Identification do not mate.Application server 104 is judging the first list
Mark then can not be fed back application server address and update list when mating with the second List Identification.
Step 504, updates, according to application server address, the application server ground that applications client is carried by list
Location list is updated.
In one embodiment, if application server address updates the available application that list only includes newly increasing
Server address, then terminal 102 can add in the application server address list that applications client carries
Application server address updates the application server address in list, to obtain the application server address updated
List.
In one embodiment, if application server address updates the available application clothes that list includes newly increasing
Business device address and the application server address of inefficacy, the then application that terminal 102 can carry in applications client
List of server addresses adds application server address and updates the available application server newly increased in list
Address, rejects the application server address lost efficacy, to obtain the application server address list updated.
In one embodiment, if application server address updates list and includes all available application servers
Address, then terminal 102 can use application server address update list cover applications client carry should
Use list of server addresses.
In the present embodiment, after being connected with application server, application service can be got from application server
Device address updates list, thus the application server list carrying applications client is updated.So may be used
After being installed in the terminal of user in applications client, if application server address list changes,
The application server list that can carry applications client in terminal in time is updated, it is ensured that application client
End can be effectively connected to application server.
In one embodiment, the method for this connection application server also includes: periodically to applications client certainly
Application server address in the application server address list of band is attached test, filters out connecting test
Failed application server address.
Specifically, periodically refer to every prefixed time interval or every Preset Time point, such as little every 24
Time, or point in every evening 11.Application clothes in the application server address list that applications client is carried
Business device address is attached test, refers to according in the application server address list that applications client carries
Application server address is attempted connecting corresponding application server, if successful connection, is successfully tested, if connecting
Failed then test crash.Terminal 102 can disconnect with application server after obtaining test result immediately, continues
The next application server address of continuous test.Terminal 102 by application server address failed for connecting test from
The application server address list that applications client carries is rejected.
In the present embodiment, terminal 102 can spontaneous initiation connecting test, the application that applications client is carried
List of server addresses is updated, it is ensured that each application server address in this application server address list
It is available, thus ensures that terminal 102 is connectable to application server.
The principle of the method for above-mentioned connection application server is described with a concrete application scenarios below, should
Being mobile phone by terminal in scene 102, applications client is instant communication client, and application server 106 is
Instant messaging application server.Specifically, with reference to Fig. 6, user downloads the instant messaging application visitor of latest edition
Family end installation kit is installed on mobile phone and runs, this instant messaging applications client carry up-to-date i.e.
Time communication application service device address list.Mobile phone when attempting to connect to instant messaging application server, first to
The application of the instant messaging corresponding to dns server acquisition request instant communication server domain name in current network
List of server addresses.If owing to dns server fault cannot get instant messaging application server address
List, then mobile phone obtains the instant messaging application server address list that instant messaging applications client carries,
The instant messaging with current network ISP type matching is selected from this instant messaging application server address list
Application server address, thus according to the instant messaging application server address selected and corresponding instant messaging
Application server connects.
As it is shown in fig. 7, in one embodiment, it is provided that a kind of device 700 connecting application server, tool
There is the function of the method connecting application server realizing each embodiment above-mentioned.This connection application server
Device 700 includes: domain name mapping request module 701, acquisition module 702, application server address select mould
Block 703 and link block 704.
Domain name mapping request module 701, for by the applications client of local runtime, to dns server
Acquisition request presets the application server address list corresponding to domain name.
Specifically, on dns server, record has the mapping relations of default domain name and application server address, territory
Name analysis request module 701, for by applications client, sends to dns server and carries default domain name
Domain name mapping request, this default territory that acquisition request dns server arrives according to this domain name mapping requesting query
Application server address list corresponding to Ming.Applications client includes instant messaging applications client, game
Client etc. is supported in applications client, webpage agent application client, reading applications client and motion.
A certain terminal or the name of terminal set on the Internet that domain name is made up of the name of a string separation
Claim, for identifying the network site of terminal when data are transmitted.Default domain name is used for identifying application server 104
Network site, same default domain name can corresponding multiple application servers 104, each application server 104
It is identified with corresponding application server address.Application server address can be IPv4 or IPv6.
Acquisition module 702, if for failed to dns server acquisition request application server address list,
Then obtain the application server address list that applications client carries.
Specifically, acquisition module 702 is for judging to dns server acquisition request application server address row
Table success or failure.If acquisition module 702 is for arranging to dns server acquisition request application server address
Telogenesis merit, gets application server address list from dns server;If being additionally operable to dns server
Acquisition request application server address list failure, then obtain the application server address that applications client carries
List.
In one embodiment, acquisition module 702, for receiving the feedback information of dns server feedback, is sentenced
Disconnected feedback information represents asks successfully or asks unsuccessfully.If acquisition module 702 is additionally operable to receive DNS service
What device fed back is used for representing the feedback information that request is failed, then obtain the application server that applications client carries
Address list.
In the present embodiment, ask successfully if feedback information represents, concrete expression acquisition request application server ground
Location list success, then acquisition module 702 is for obtaining application server address row entrained in feedback information
Table.Ask unsuccessfully if feedback information represents, concrete expression acquisition request application server address list failure,
Then acquisition module 702 is for obtaining the application server address list that applications client carries.
Specifically, in the present embodiment, feedback information can include request results flag bit and application server address
Table data section.Wherein request results flag bit is asked successfully or is asked for representing unsuccessfully, can be with presetting
Two kinds value respectively represent ask successfully with ask unsuccessfully.Application server address table data section is used for storing
Application server address list, if asking unsuccessfully, application server address table data section can be null value.
In one embodiment, acquisition module 702 is additionally operable to judge from initiating request to dns server
The feedback information of dns server feedback whether is received within preset duration.Acquisition module 702 is additionally operable to certainly
The feedback letter of dns server feedback is not received within dns server initiates the preset duration asked
Breath, then obtain the application server address list that applications client carries.
If acquisition module 702 is additionally operable to receive feedback information, continues to judge that the feedback information of feedback represents and ask
Merit of hoping for success or ask unsuccessfully.If acquisition module 702 is additionally operable to not receive feedback information, decision request obtains
Application server address list failure.In the present embodiment, to dns server acquisition request application server ground
Location list failure, including: do not receive DNS within the preset duration from initiating request to dns server
The feedback information of server feedback.Exceed preset duration and do not receive feedback information, request timed out, DNS is described
Server failure.Preset duration can set as required, such as 1 second.
The application server address list that applications client carries, when applications client is published, Portable belt exists
In applications client.Entrained by the applications client of redaction is up-to-date application server address list.
This application server address list includes the available application server ground corresponding to each application server 104
Location, available application server address refers to that this application server address is effective, it is possible to be connected to corresponding
Application server.
Application server address selects module 703, should for selection from the application server address list obtained
Use server address.
Specifically, application server address selects module 703 to can be used for by applications client, from obtain
In application server address list in order or randomly choose an application server address.
In one embodiment, application server address selects module 703 to be additionally operable to obtain current network ISP
Type;The application clothes with current network ISP type matching are selected from the application server address list obtained
Business device address.
Specifically, ISP type is used to identify the data of corresponding ISP, current network
ISP type then refers to the ISP type of current network.Current network can be cable network or mobile radio communication
Network, cable network such as dial-up network or ADSL network etc., mobile communications network such as GPRS
Network.
In the present embodiment, application server address list includes answering corresponding to various default ISP types
With server address, to cover the application server address of all known network ISP types as far as possible.So
The application server address of coupling current network ISP type is selected from the application server address list obtained,
Just can get the application server address being best suitable for current network, improve and be successfully connected to application server
Probability.
Link block 704, for connecting with corresponding application server according to the application server address selected.
Specifically, link block 704 is for initiating to carry selectable application server by applications client
Address and the connection request of terminal address, the application server address wherein selected is as destination address, terminal
Address is as source address.Connection request is sent in connection request entrained application service by network route
Application server corresponding to device address so that this application server is set up according to this connection request and connected.
The device 700 of above-mentioned connection application server is when having the demand connecting application server, the most logical
Cross applications client and attempt the request default domain name of dns server parsing, to obtain corresponding application server ground
Location list, so compatible domain name mapping mode.When dns server breaks down, it is impossible to complete domain name
Resolve, the most now obtain the application server address list that applications client carries, therefrom select application service
Device address connects corresponding application server.Thus can avoid causing nothing because of dns server fault
Method is connected to the situation of application server, provides convenience for domestic consumer, avoids for application service provider
The loss that causes because cannot connect to application server.
As shown in Figure 8, in one embodiment, the device 700 connecting application server also includes: application
Server address updates list reception module 705 and more new module 706.
Application server address updates list reception module 705, is connecting for receiving the application server of connection
After success, the application server address of feedback updates list.
Application server can feed back application server address and update list after successful connection.An enforcement
In example, this application server address updates the available application server address that list at least includes newly increasing;
In one embodiment, this application server address updates the available application that list can also include newly increasing
Server address and the application server address of inefficacy;In one embodiment, this application server address is more
New list can also include all available application server address.In one embodiment, application server
Each application server address that address updates in list is corresponding with respective default ISP type respectively.
In one embodiment, connection request carries the first List Identification, this first List Identification and application
The application server address list that client carries is corresponding, and application server address updates list correspondence secondary series
Table identifies, then application server address renewal list reception module 705 is used for receiving application server in judgement
When first List Identification and the second List Identification do not mate, the application server address of feedback updates list.Application
Server 104 then can not feed back application service when judging the first List Identification and the second List Identification coupling
Device address updates list.
More new module 706, for updating, according to application server address, the application that applications client is carried by list
List of server addresses is updated.
In one embodiment, if application server address updates the available application that list only includes newly increasing
Server address, the most more new module 706 can be used for the application server address list carried in applications client
Middle addition application server address updates the application server address in list, to obtain the application service updated
Device address list.
In one embodiment, if application server address updates the available application clothes that list includes newly increasing
Business device address and the application server address of inefficacy, the most more new module 706 can be used for carrying in applications client
Application server address list in add application server address and update in list the available application newly increased
Server address, rejects the application server address lost efficacy, to obtain the application server address list updated.
In one embodiment, if application server address updates list and includes all available application servers
Address, the most more new module 706 may be used in application server address and update list covering applications client certainly
The application server address list of band.
In the present embodiment, after being connected with application server, application service can be got from application server
Device address updates list, thus the application server list carrying applications client is updated.So may be used
After being installed in the terminal of user in applications client, if application server address list changes,
The application server list that can carry applications client in terminal in time is updated, it is ensured that application client
End can be effectively connected to application server.
As it is shown in figure 9, in one embodiment, the device 700 connecting application server also includes: connect
Test module 707, the application service in the application server address list periodically applications client carried
Device address is attached test, filters out the application server address that connecting test is failed.
Specifically, periodically refer to every prefixed time interval or every Preset Time point, such as little every 24
Time, or point in every evening 11.Connecting test module 707 is for the application clothes carried according to applications client
Application server address in business device address list is attempted connecting corresponding application server, if successful connection,
It is successfully tested, if connection failure, test crash.Connecting test module 707 can be used for obtaining test result
After disconnect with application server immediately, continue the next application server address of test.Connecting test mould
Block 707 is for the application server carried from applications client by application server address failed for connecting test
Address list is rejected.
In the present embodiment, connecting test module 707 can be used for spontaneous initiation connecting test, to applications client
The application server address list carried is updated, it is ensured that each application in this application server address list
Server address is available, thus guarantees to be connected to application server.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating
In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.
Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,
The non-volatile memory medium such as ROM), or random store-memory body (Random Access Memory, RAM)
Deng.
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, the most right
The all possible combination of each technical characteristic in above-described embodiment is all described, but, if these skills
There is not contradiction in the combination of art feature, is all considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But can not therefore be construed as limiting the scope of the patent.It should be pointed out that, for this area
For those of ordinary skill, without departing from the inventive concept of the premise, it is also possible to make some deformation and change
Entering, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended power
Profit requires to be as the criterion.
Claims (10)
1. the method connecting application server, described method includes:
By the applications client of local runtime, preset answering corresponding to domain name to dns server acquisition request
Use list of server addresses;
If to described dns server acquisition request application server address list failure, then
Obtain the application server address list that described applications client carries;
Application server address is selected from the application server address list obtained;
Application server address according to selecting connects with corresponding application server.
Method the most according to claim 1, it is characterised in that described to described dns server please
Ask acquisition application server address list failure, including:
Receive described dns server feedback for representing the failed feedback information of request;Or,
Described DNS service is not received within preset duration from initiating request to described dns server
The feedback information of device feedback.
Method the most according to claim 1, it is characterised in that described from the application server ground obtained
Location list selects application server address, including:
Obtain current network ISP type;
The application service with current network ISP type matching is selected from the application server address list obtained
Device address.
Method the most according to claim 1, it is characterised in that described method also includes:
Receive the application server address renewal list that the application server connected feeds back after successful connection;
The application server ground that described applications client is carried by list is updated according to described application server address
Location list is updated.
Method the most according to claim 1, it is characterised in that described method also includes:
Application server address in the application server address list periodically carried applications client is carried out even
Connect test, filter out the application server address that connecting test is failed.
6. the device connecting application server, it is characterised in that described device includes:
Domain name mapping request module, for by the applications client of local runtime, asking to dns server
Obtain the application server address list preset corresponding to domain name;
Acquisition module, if for failed to described dns server acquisition request application server address list,
Then obtain the application server address list that described applications client carries;
Application server address selects module, for selecting application from the application server address list obtained
Server address;
Link block, for connecting with corresponding application server according to the application server address selected.
Device the most according to claim 6, it is characterised in that if described acquisition module is additionally operable to receive
To described dns server feed back for representing the failed feedback information of request, then obtain described application client
The application server address list that end carries;Or,
Described acquisition module does not connects within being additionally operable to the preset duration from initiating request to described dns server
Receive the feedback information of described dns server feedback, then obtain the application service that described applications client carries
Device address list.
Device the most according to claim 6, it is characterised in that described application server address selects mould
Block is additionally operable to obtain current network ISP type;Select from the application server address list obtained with current
The application server address of network ISP type matching.
Device the most according to claim 6, it is characterised in that described device also includes:
Application server address updates list reception module, is connecting into for receiving the application server of connection
After merit, the application server address of feedback updates list;
More new module, carries described applications client for updating list according to described application server address
Application server address list be updated.
Device the most according to claim 6, it is characterised in that described device also includes:
Connecting test module, answering in the application server address list periodically applications client carried
It is attached test with server address, filters out the application server address that connecting test is failed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510213011.2A CN106210155B (en) | 2015-04-29 | 2015-04-29 | Method and device for connecting application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510213011.2A CN106210155B (en) | 2015-04-29 | 2015-04-29 | Method and device for connecting application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106210155A true CN106210155A (en) | 2016-12-07 |
CN106210155B CN106210155B (en) | 2019-12-20 |
Family
ID=57458037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510213011.2A Active CN106210155B (en) | 2015-04-29 | 2015-04-29 | Method and device for connecting application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210155B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107343059A (en) * | 2017-07-17 | 2017-11-10 | 环球智达科技(北京)有限公司 | The method for obtaining server address |
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
CN107749286A (en) * | 2017-11-16 | 2018-03-02 | 青岛海信电器股份有限公司 | Display screen parameter read-in method and device |
CN107819893A (en) * | 2017-10-27 | 2018-03-20 | 中航信移动科技有限公司 | Network address Dynamic Configuration and mobile terminal |
CN108322559A (en) * | 2018-01-16 | 2018-07-24 | 吉浦斯信息咨询(深圳)有限公司 | Mobile device dynamic address cut-in method, system and medium |
CN110289940A (en) * | 2019-06-12 | 2019-09-27 | 四川商通实业有限公司 | Orient the method that payment client terminal automatically switches server |
CN111314500A (en) * | 2020-02-19 | 2020-06-19 | 深圳前海微众银行股份有限公司 | Method and device for determining access address |
CN111338653A (en) * | 2020-02-21 | 2020-06-26 | 苏宁云计算有限公司 | Data processing method and device, computer equipment and storage medium |
CN112000518A (en) * | 2020-08-13 | 2020-11-27 | 深圳本地宝新媒体技术有限公司 | Application program fault risk processing method, device and system, terminal and equipment |
CN114979073A (en) * | 2021-08-30 | 2022-08-30 | 中移互联网有限公司 | Address information acquisition system, method, electronic device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102316172A (en) * | 2010-07-05 | 2012-01-11 | 中国电信股份有限公司 | Method, system and SAG (service access gateway) equipment for analyzing DNS (domain name system) |
CN103167055A (en) * | 2011-12-14 | 2013-06-19 | 三星电子株式会社 | Domain name server address configuration method and apparatus |
CN103561121A (en) * | 2013-10-11 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for analyzing DNS and browser |
CN103888552A (en) * | 2012-12-24 | 2014-06-25 | 中国电信股份有限公司 | Fast Internet accessing method and system and terminal device |
CN103973835A (en) * | 2014-05-16 | 2014-08-06 | 北京金山网络科技有限公司 | Domain name system server selection method and device |
CN104065761A (en) * | 2011-09-29 | 2014-09-24 | 北京奇虎科技有限公司 | Application server selecting method and network connection method |
-
2015
- 2015-04-29 CN CN201510213011.2A patent/CN106210155B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102316172A (en) * | 2010-07-05 | 2012-01-11 | 中国电信股份有限公司 | Method, system and SAG (service access gateway) equipment for analyzing DNS (domain name system) |
CN104065761A (en) * | 2011-09-29 | 2014-09-24 | 北京奇虎科技有限公司 | Application server selecting method and network connection method |
CN103167055A (en) * | 2011-12-14 | 2013-06-19 | 三星电子株式会社 | Domain name server address configuration method and apparatus |
CN103888552A (en) * | 2012-12-24 | 2014-06-25 | 中国电信股份有限公司 | Fast Internet accessing method and system and terminal device |
CN103561121A (en) * | 2013-10-11 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for analyzing DNS and browser |
CN103973835A (en) * | 2014-05-16 | 2014-08-06 | 北京金山网络科技有限公司 | Domain name system server selection method and device |
Non-Patent Citations (1)
Title |
---|
RAAM: "Configuring Static DNS with DHCP on Debian/Ubuntu", 《HTTPS://RAAM.ORG/2009/CONFIGURING-STATIC-DNS-WITH-DHCPON-DEBIANUBUNTU》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107343059A (en) * | 2017-07-17 | 2017-11-10 | 环球智达科技(北京)有限公司 | The method for obtaining server address |
CN107396423A (en) * | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
CN107819893A (en) * | 2017-10-27 | 2018-03-20 | 中航信移动科技有限公司 | Network address Dynamic Configuration and mobile terminal |
CN107749286A (en) * | 2017-11-16 | 2018-03-02 | 青岛海信电器股份有限公司 | Display screen parameter read-in method and device |
CN108322559A (en) * | 2018-01-16 | 2018-07-24 | 吉浦斯信息咨询(深圳)有限公司 | Mobile device dynamic address cut-in method, system and medium |
CN110289940A (en) * | 2019-06-12 | 2019-09-27 | 四川商通实业有限公司 | Orient the method that payment client terminal automatically switches server |
CN111314500A (en) * | 2020-02-19 | 2020-06-19 | 深圳前海微众银行股份有限公司 | Method and device for determining access address |
CN111338653A (en) * | 2020-02-21 | 2020-06-26 | 苏宁云计算有限公司 | Data processing method and device, computer equipment and storage medium |
CN111338653B (en) * | 2020-02-21 | 2023-05-23 | 苏宁云计算有限公司 | Data processing method, device, computer equipment and storage medium |
CN112000518A (en) * | 2020-08-13 | 2020-11-27 | 深圳本地宝新媒体技术有限公司 | Application program fault risk processing method, device and system, terminal and equipment |
CN114979073A (en) * | 2021-08-30 | 2022-08-30 | 中移互联网有限公司 | Address information acquisition system, method, electronic device, and storage medium |
CN114979073B (en) * | 2021-08-30 | 2023-09-05 | 中移互联网有限公司 | Address information acquisition system, method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106210155B (en) | 2019-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106210155A (en) | The method and apparatus connecting application server | |
CN109156046B (en) | Home gateway and method for forwarding service thereof | |
US10887745B2 (en) | Method and device for sharing file between different terminals | |
US8989182B2 (en) | Providing a virtual domain name system (DNS) in a local area network (LAN) | |
CN102884764A (en) | Message receiving method, deep packet inspection device, and system | |
CN103109517A (en) | Double-stack terminal accessing service method, terminal and system | |
CN109819498A (en) | A kind of smart machine, the automatic distribution method and system of smart machine | |
CN103368977A (en) | Network connection method and terminal equipment | |
US7289471B2 (en) | Mobile router, position management server, mobile network management system, and mobile network management method | |
CN102123362A (en) | Method for automatically acquiring mobile phone number by mobile equipment | |
CN105959188B (en) | Method and device for controlling user terminal to be on-line | |
CN102547553B (en) | Method, system and device for accessing service based on wireless application protocol (WAP) | |
CN103312708A (en) | Lease file based IP (internet protocol) setting method and system | |
CN104506549A (en) | Method, device and system for establishing online game connection | |
CN103516567A (en) | Method and system for equipment discovery and server | |
US11528184B2 (en) | Processing method, device and apparatus for mesh network, and storage medium | |
CN104426816B (en) | A kind of virtual machine communication method and device | |
CN112770370B (en) | Method and device for intelligent equipment to access network and intelligent equipment | |
CN102025797A (en) | Address prefix processing method, device, system and network equipment | |
JP6378121B2 (en) | Gateway apparatus and communication method | |
US8456671B2 (en) | Communication system, information storage device, management device, and terminal device | |
CN111064798B (en) | Node network access method, device, client node and storage medium | |
US20080167050A1 (en) | Method and system for managing user preferences for one or more software applications runing on a mobile computing device | |
CN102349279A (en) | Methods and apparatus for discovery of peer-to-peer overlay networks | |
CN106470252B (en) | The method and communication terminal of application program inquiry IP address |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |