CN105610995A - Selection method of DNS server, selection device of the DNS server and terminal - Google Patents

Selection method of DNS server, selection device of the DNS server and terminal Download PDF

Info

Publication number
CN105610995A
CN105610995A CN201510579669.5A CN201510579669A CN105610995A CN 105610995 A CN105610995 A CN 105610995A CN 201510579669 A CN201510579669 A CN 201510579669A CN 105610995 A CN105610995 A CN 105610995A
Authority
CN
China
Prior art keywords
dns
dns server
response time
server
domain name
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.)
Pending
Application number
CN201510579669.5A
Other languages
Chinese (zh)
Inventor
王冬
任朝林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510579669.5A priority Critical patent/CN105610995A/en
Publication of CN105610995A publication Critical patent/CN105610995A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The invention provides a selection method of a DNS server, a selection device of the DNS server and a terminal. The selection method of the DNS server comprises the following steps of sending a domain name analysis request to the plurality of DNS servers; acquiring current response time of the plurality of DNS servers to the domain name analysis request, and combining historical response time of the plurality of DNS servers to calculate response-time weighted values of the plurality of DNS servers; according to the response-time weighted values, selecting a target DNS server in the plurality of DNS servers. Through the technical scheme of the invention, accuracy and reliability of target DNS server selection in the plurality of DNS servers are increased so that response time of the DNS servers is effectively reduced.

Description

The system of selection of dns server, the selecting arrangement of dns server and terminal
Technical field
The present invention relates to terminal technology field, in particular to a kind of selection of dns serverThe selecting arrangement of method, a kind of dns server and a kind of terminal.
Background technology
At present, in the prior art, to the individual DNS to be selected of definite N (N >=2)(DomainNameSystem, domain name analysis system) server sends respectively DNS name resolutionRequest, and the corresponding IP of record access (InternetProtocol, interconnected agreement between network) addressResponse time, in N dns server to be selected, determine according to the response time of IP addressTarget dns server.
But, when only N definite dns address being conducted interviews, due to the dns address of terminalBeing distributed voluntarily by network, is not what determine, and this scheme is only by once access is just definiteDns server performance, there is larger contingency, make to determine very accurately targetDns server, does not consider that the network configuration of diverse geographic location is to determining target in addition yetThe impact that dns server produces, therefore true in multiple dns servers by technique schemeFixed target dns server is not very accurate.
Therefore, how improving the accuracy of select target dns server and reliability becomes urgently and separatesProblem certainly.
Summary of the invention
The present invention, just based on the problems referred to above, has proposed a kind of new technical scheme, has improved multipleThe accuracy of select target dns server and reliability in dns server, thus effectively reduceThe response time of dns server.
In view of this, a first aspect of the present invention has proposed a kind of system of selection of dns server,Comprise: send domain name mapping request to multiple dns servers; Obtain described multiple dns serverTo the current response time of domain name analysis request, and going through in conjunction with described multiple dns serversThe history response time is calculated the response time weighted value of described multiple dns servers; According to described responseTime weight value is select target dns server in described multiple dns servers.
In this technical scheme, because the performance difference of different dns servers causes domain name solutionThe response time of analysing request is different, therefore, and can be by obtaining multiple dns servers to territoryThe current response time of name analysis request, and in conjunction with the historical responses time meter of multiple dns serversCalculate the response time weighted value of multiple dns servers, thus according to response time weighted value multipleSelect target dns server in dns server, i.e. shorter dns server of response time,In prior art, only more can determine response ratio faster exactly by obtaining a response timeDns server, has improved accuracy and the reliability of definite target dns server, thereby effectivelyGround has reduced the response time of target dns server, and then has improved user's experience.
In technique scheme, preferably, determine described current according to the type of accessing terminal to networkThe weighted value of response time, and the described historical responses time of obtaining described multiple dns serversWith corresponding weighted value; According to the weighted value of described current response time, described current response time,The weighted value of described historical responses time and described historical responses time, calculates described response time weightingValue.
In this technical scheme, due to terminal access different network types (for example, 2G network:Digital network, 3G network: High Speed IP data network, 4G network: all-IP data network) rightThere is certain influence the response time of dns server, therefore, and can be according to the class of accessing terminal to networkType is determined the weighted value of the current response time of multiple dns servers, to serve in conjunction with multiple DNSThe historical responses time of device and corresponding weighted value calculate the response time of multiple dns serversWeighted value, so, can calculate the response weighted value of multiple dns servers more exactly, fromAnd make in multiple dns servers select target dns server more accurately, reliable.
In above-mentioned arbitrary technical scheme, preferably, judge every in described multiple dns serverWhether the access times of individual dns server are less than preset times; When in described multiple dns serversThe access times of at least one dns server while being less than described preset times, by described at least oneThe minimum dns server of access times in individual dns server is as target dns server;When the access times of the described each dns server in described multiple dns servers be all greater than or etc.In the time of described preset times, carry out the described step that sends domain name mapping request to multiple dns serversSuddenly.
In this technical scheme, before sending domain name mapping request to multiple dns servers, logicalCross and judge whether the access times of the each dns server in multiple dns servers are less than default timeNumber, when the access times of at least one dns server in multiple dns servers are less than defaultWhen number of times, also just the terminal of at least one dns server of explanation access is fewer, by least oneThe dns server of the access times minimum in individual dns server is as target dns server,Can effectively avoid access amount to cause very long feelings of response time compared with large dns serverCondition, guaranteed the quick response of dns server, on the other hand, and when in multiple dns serversWhen the access times of each dns server are all more than or equal to preset times, can be according to responseTime weight value is select target dns server in multiple dns servers, has ensured furtherThe accuracy of select target dns server, reliability in multiple dns servers.
In above-mentioned arbitrary technical scheme, preferably, obtain the current geographic position at terminal place, andDetermine described multiple dns server according to described current geographic position.
In this technical scheme, because the network configuration of the dns server of diverse geographic location also canResponse time during to terminal access dns server exerts an influence, therefore, and can be by obtaining endThe current geographic position at end place, and determine multiple dns servers according to current geographic position, enterThe accuracy of multiple dns servers has been guaranteed to select in one step ground.
In above-mentioned arbitrary technical scheme, preferably, described in obtain described multiple dns server pairThe step of the current response time of domain name analysis request, specifically comprises: if receive from describedThe domain name mapping response of the arbitrary dns server in multiple dns servers, by described arbitrary DNSThe response time of server is as the described current response time of described arbitrary dns server; If notReceive the domain name mapping response from the arbitrary dns server in described multiple dns servers,The described current response time using the default response time as described arbitrary dns server.
In this technical scheme, when receiving from the arbitrary DNS service in multiple dns serversWhen the domain name mapping of device responds, can be directly using the response time of arbitrary dns server as appointingThe current response time of one dns server, otherwise, can will preset the response time as arbitraryThe current response time of dns server, add so that calculate the response time of multiple dns serversWeights. And, using the dns server that does not receive domain name mapping response not as next this terminalThe dns server of select target dns server, that is to say and will not receive domain name mapping responseDns server get rid of outside multiple dns servers.
A second aspect of the present invention has proposed a kind of selecting arrangement of dns server, comprising: sendUnit, for sending domain name mapping request to multiple dns servers; Computing unit, for obtainingThe current response time of described multiple dns server to domain name analysis request, and described in combinationDescribed in the historical responses Time Calculation of multiple dns servers, the response time of multiple dns servers addsWeights; Selected cell, for according to described response time weighted value at described multiple dns serversMiddle select target dns server.
In this technical scheme, because the performance difference of different dns servers causes domain name solutionThe response time of analysing request is different, therefore, and can be by obtaining multiple dns servers to territoryThe current response time of name analysis request, and in conjunction with the historical responses time meter of multiple dns serversCalculate the response time weighted value of multiple dns servers, thus according to response time weighted value multipleSelect target dns server in dns server, i.e. shorter dns server of response time,In prior art, only more can determine response ratio faster exactly by obtaining a response timeDns server, has improved accuracy and the reliability of definite target dns server, thereby effectivelyGround has reduced the response time of target dns server, and then has improved user's experience.
In technique scheme, preferably, described computing unit comprises: acquiring unit, and for rootDetermine the weighted value of described current response time according to the type of accessing terminal to network, and obtain described manyDescribed historical responses time and the corresponding weighted value of individual dns server; Described computing unit is concreteBe used for, according to the weighted value of described current response time, described current response time, described historical soundBetween seasonable and the weighted value of described historical responses time, calculate described response time weighted value.
In this technical scheme, due to terminal access different network types (for example, 2G network:Digital network, 3G network: High Speed IP data network, 4G network: all-IP data network) rightThere is certain influence the response time of dns server, therefore, and can be according to the class of accessing terminal to networkType is determined the weighted value of the current response time of multiple dns servers, to serve in conjunction with multiple DNSThe historical responses time of device and corresponding weighted value calculate the response time of multiple dns serversWeighted value, so, can calculate the response weighted value of multiple dns servers more exactly, fromAnd make in multiple dns servers select target dns server more accurately, reliable.
In above-mentioned arbitrary technical scheme, preferably, also comprise: judging unit, described in judgingWhether the access times of the each dns server in multiple dns servers are less than preset times; TheOne determining unit, for the visit of at least one dns server when described multiple dns serversAsk when number of times is less than described preset times, by the access times in described at least one dns serverMinimum dns server is as target dns server; Described transmitting element specifically for, work as instituteThe access times of stating the described each dns server in multiple dns servers are all more than or equal to instituteWhile stating preset times, carry out the described step that sends domain name mapping request to multiple dns servers.
In this technical scheme, before sending domain name mapping request to multiple dns servers, logicalCross and judge whether the access times of the each dns server in multiple dns servers are less than default timeNumber, when the access times of at least one dns server in multiple dns servers are less than defaultWhen number of times, also just the terminal of at least one dns server of explanation access is fewer, by least oneThe dns server of the access times minimum in individual dns server is as target dns server,Can effectively avoid access amount to cause very long feelings of response time compared with large dns serverCondition, guaranteed the quick response of dns server, on the other hand, and when in multiple dns serversWhen the access times of each dns server are all more than or equal to preset times, can be according to responseTime weight value is select target dns server in multiple dns servers, has ensured furtherThe accuracy of select target dns server, reliability in multiple dns servers.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the second determining unit, for obtainingThe current geographic position at terminal place, and determine described multiple DNS according to described current geographic positionServer.
In this technical scheme, because the network configuration of the dns server of diverse geographic location also canResponse time during to terminal access dns server exerts an influence, therefore, and can be by obtaining endThe current geographic position at end place, and determine multiple dns servers according to current geographic position, enterThe accuracy of multiple dns servers has been guaranteed to select in one step ground.
In above-mentioned arbitrary technical scheme, preferably, described computing unit comprises: the 3rd determining unit,If for receiving the domain name mapping from arbitrary dns server of described multiple dns serversResponse, the institute using the response time of described arbitrary dns server as described arbitrary dns serverState the current response time; If do not receive from the arbitrary DNS clothes in described multiple dns serversThe domain name mapping response of business device, using the default response time as described in described arbitrary dns serverThe current response time.
In this technical scheme, when receiving from the arbitrary DNS service in multiple dns serversWhen the domain name mapping of device responds, can be directly using the response time of arbitrary dns server as appointingThe current response time of one dns server, otherwise, can will preset the response time as arbitraryThe current response time of dns server, add so that calculate the response time of multiple dns serversWeights. And, using the dns server that does not receive domain name mapping response not as next this terminalThe dns server of select target dns server, that is to say and will not receive domain name mapping responseDns server get rid of outside multiple dns servers.
A third aspect of the present invention has proposed a kind of terminal, comprising: any one institute in technique schemeThe selecting arrangement of the dns server of stating, therefore, this terminal have with technique scheme in arbitraryThe identical technique effect of selecting arrangement of the dns server described in, does not repeat them here.
By technical scheme of the present invention, improve select target DNS in multiple dns serversThe accuracy of server and reliability, thereby the response time of effectively having reduced dns server.
Brief description of the drawings
Fig. 1 shows the stream of the system of selection of dns server according to an embodiment of the inventionJourney schematic diagram;
Fig. 2 shows the system of selection of dns server according to another embodiment of the inventionSchematic flow sheet;
Fig. 3 shows the knot of the selecting arrangement of dns server according to an embodiment of the inventionStructure schematic diagram;
Fig. 4 shows the structural representation of terminal according to an embodiment of the invention;
Fig. 5 shows the selecting arrangement of dns server according to another embodiment of the inventionStructural representation;
Fig. 6 shows showing of dns server according to an embodiment of the invention and terminal interactionIntention.
Detailed description of the invention
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with attachedFigure and detailed description of the invention are further described in detail the present invention. It should be noted that, notIn the situation of conflict, the feature in the application's embodiment and embodiment can combine mutually.
Set forth in the following description a lot of details so that fully understand the present invention, still,The present invention can also adopt other to be different from other modes described here and implement, therefore, and the present inventionProtection domain be not subject to the restriction of following public specific embodiment.
Fig. 1 shows the stream of the system of selection of dns server according to an embodiment of the inventionJourney schematic diagram.
As shown in Figure 1, the system of selection of dns server according to an embodiment of the invention,Comprise:
Step 102, sends domain name mapping request to multiple dns servers;
Step 104, obtains the current sound of described multiple dns server to domain name analysis requestBetween seasonable, and in conjunction with multiple DNS described in the historical responses Time Calculation of described multiple dns serversThe response time weighted value of server;
Step 106, selects in described multiple dns servers according to described response time weighted valueTarget dns server.
In this technical scheme, because the performance difference of different dns servers causes domain name solutionThe response time of analysing request is different, therefore, and can be by obtaining multiple dns servers to territoryThe current response time of name analysis request, and in conjunction with the historical responses time meter of multiple dns serversCalculate the response time weighted value of multiple dns servers, thus according to response time weighted value multipleSelect target dns server in dns server, i.e. shorter dns server of response time,In prior art, only more can determine response ratio faster exactly by obtaining a response timeDns server, has improved accuracy and the reliability of definite target dns server, thereby effectivelyGround has reduced the response time of target dns server, and then has improved user's experience.
In technique scheme, preferably, determine described current according to the type of accessing terminal to networkThe weighted value of response time, and the described historical responses time of obtaining described multiple dns serversWith corresponding weighted value; According to the weighted value of described current response time, described current response time,The weighted value of described historical responses time and described historical responses time, calculates described response time weightingValue.
In this technical scheme, due to terminal access different network types (for example, 2G network:Digital network, 3G network: High Speed IP data network, 4G network: all-IP data network) rightThere is certain influence the response time of dns server, therefore, and can be according to the class of accessing terminal to networkType is determined the weighted value of the current response time of multiple dns servers, to serve in conjunction with multiple DNSThe historical responses time of device and corresponding weighted value calculate the response time of multiple dns serversWeighted value, so, can calculate the response weighted value of multiple dns servers more exactly, fromAnd make in multiple dns servers select target dns server more accurately, reliable.
In above-mentioned arbitrary technical scheme, preferably, judge every in described multiple dns serverWhether the access times of individual dns server are less than preset times; When in described multiple dns serversThe access times of at least one dns server while being less than described preset times, by described at least oneThe minimum dns server of access times in individual dns server is as target dns server;When the access times of the described each dns server in described multiple dns servers be all greater than or etc.In the time of described preset times, carry out the described step that sends domain name mapping request to multiple dns serversSuddenly.
In this technical scheme, before sending domain name mapping request to multiple dns servers, logicalCross and judge whether the access times of the each dns server in multiple dns servers are less than default timeNumber, when the access times of at least one dns server in multiple dns servers are less than defaultWhen number of times, also just the terminal of at least one dns server of explanation access is fewer, by least oneThe dns server of the access times minimum in individual dns server is as target dns server,Can effectively avoid access amount to cause very long feelings of response time compared with large dns serverCondition, guaranteed the quick response of dns server, on the other hand, and when in multiple dns serversWhen the access times of each dns server are all more than or equal to preset times, can be according to responseTime weight value is select target dns server in multiple dns servers, has ensured furtherThe accuracy of select target dns server, reliability in multiple dns servers.
In above-mentioned arbitrary technical scheme, preferably, obtain the current geographic position at described terminal place,And determine described multiple dns server according to described current geographic position.
In this technical scheme, because the network configuration of the dns server of diverse geographic location also canResponse time during to terminal access dns server exerts an influence, therefore, and can be by obtaining endThe current geographic position at end place, and determine multiple dns servers according to current geographic position, enterThe accuracy of multiple dns servers has been guaranteed to select in one step ground.
In above-mentioned arbitrary technical scheme, preferably, described in obtain described multiple dns server pairThe step of the current response time of domain name analysis request, specifically comprises: if receive from describedThe domain name mapping response of the arbitrary dns server in multiple dns servers, by described arbitrary DNSThe response time of server is as the described current response time of described arbitrary dns server; If notReceive the domain name mapping response from the arbitrary dns server in described multiple dns servers,The described current response time using the default response time as described arbitrary dns server.
In this technical scheme, when receiving from the arbitrary DNS service in multiple dns serversWhen the domain name mapping of device responds, can be directly using the response time of arbitrary dns server as appointingThe current response time of one dns server, otherwise, can will preset the response time as arbitraryThe current response time of dns server, add so that calculate the response time of multiple dns serversWeights. And, using the dns server that does not receive domain name mapping response not as next this terminalThe dns server of select target dns server, that is to say and will not receive domain name mapping responseDns server get rid of outside multiple dns servers.
Fig. 2 shows the system of selection of dns server according to another embodiment of the inventionSchematic flow sheet.
As shown in Figure 2, the system of selection of dns server according to another embodiment of the invention,Comprise:
Step 202, in the time of terminal access webpage, obtains IP address corresponding to webpage domain name.
Whether step 204, store the IP address corresponding with webpage domain name in the buffer area of sense terminals,If so, enter step 208, otherwise enter step 206.
Step 206, if do not store the IP address corresponding with webpage domain name in the buffer area of terminal, obtainsGet the current geographic position at terminal place, and determine multiple dns servers according to current geographic position.
Step 208, if store the IP address corresponding with webpage domain name, directly in the buffer area of terminalAccording to corresponding IP address access dns server.
Step 210, judges that the access times of the arbitrary dns server in multiple dns servers areThe no preset times that is less than, when being, enters step 212 in judged result, otherwise, enter step214。
Step 212, by the dns server minimum access times at least one dns serverAs target dns server.
Step 214, if do not exist access times to be less than preset times in multiple dns serversDns server, sends domain name mapping request to multiple dns servers.
Step 216, determines the weighted value of current response time according to the type of accessing terminal to network, withAnd obtain the historical responses time of multiple dns servers and corresponding weighted value.
Step 218, during according to the weighted value of current response time, current response time, historical responsesBetween and the corresponding weighted value of historical responses time, the response time of calculating multiple dns servers addsWeights.
Step 220, according to response time weighted value select target DNS in multiple dns serversServer.
Describe the response time weighted value of the multiple dns servers of calculating of the present invention below in detail:
In this embodiment, the type of accessing terminal to network is 2G network, and terminal takes to multiple DNSBusiness device sends domain name mapping request, and arbitrary dns server in multiple dns server to this eventuallyThe current response time of the domain name mapping request that end sends is t1,n, in addition, arbitrary dns server pairThe historical responses time of the terminal of access 2G network is t1,1、t1,2…t1,n-1, arbitrary dns serverThe historical responses time of the terminal to access 3G network is t2,1、t2,2…t2,m, arbitrary DNS serviceThe historical responses time of the terminal of device to access 4G network is t3,1、t3,2…t3,p, 2G network, 3GThe weighted value of network, 4G network is respectively α1、α2And α3,0<α123< 1, use withLower formula calculates the response time weighted value of arbitrary dns server t r e s p = ( t 1 , 1 + t 1 , 2 + ... t 1 , n ) &times; &alpha; 1 + ( t 2 , 1 + t 2 , 2 + ... t 2 , m ) &times; &alpha; 2 + ( t 3 , 1 + t 3 , 2 + ... t 3 , p ) &times; &alpha; 3 n + m + p , Wherein, trespRepresentThe response time weighted value of arbitrary dns server, t1,nRepresent that under 2G network, the n time access is arbitraryThe response time (being the current response time) of dns server, t2,mRepresent the m time access under 3GThe response time of arbitrary dns server, t3,pRepresent the p time arbitrary dns server of access under 4GResponse time.
In terminal after multiple dns servers send domain name mapping requests, if other-end passes through2G network sends domain name mapping request to arbitrary dns server, and arbitrary dns server is to otherThe current response time of the domain name mapping request of terminal is t1,n+1, also can use following formula pairThe response time weighted value of arbitrary dns server is upgraded, tresp1Represent the response time weighted value of the arbitrary dns server after upgrading.
Fig. 3 shows the knot of the selecting arrangement of dns server according to an embodiment of the inventionStructure schematic diagram.
As shown in Figure 3, the selecting arrangement of dns server according to an embodiment of the invention300, comprising: transmitting element 302, computing unit 304, selected cell 306, wherein, describedSend unit 302 for sending domain name mapping request to multiple dns servers; Computing unit 304,For obtaining the current response time of described multiple dns server to domain name analysis request, andIn conjunction with the sound of multiple dns servers described in the historical responses Time Calculation of described multiple dns serversWeighted value between seasonable; Selected cell 306, for according to described response time weighted value described multipleSelect target dns server in dns server.
In this technical scheme, because the performance difference of different dns servers causes domain name solutionThe response time of analysing request is different, therefore, and can be by obtaining multiple dns servers to territoryThe current response time of name analysis request, and in conjunction with the historical responses time meter of multiple dns serversCalculate the response time weighted value of multiple dns servers, thus according to response time weighted value multipleSelect target dns server in dns server, i.e. shorter dns server of response time,In prior art, only more can determine response ratio faster exactly by obtaining a response timeDns server, has improved accuracy and the reliability of definite target dns server, thereby effectivelyGround has reduced the response time of target dns server, and then has improved user's experience.
In above-mentioned arbitrary technical scheme, preferably, described computing unit 304 comprises: acquiring unit3042, determine the power of described current response time for access the type of described network according to described terminalHeavily be worth, and obtain described historical responses time and the corresponding weight of described multiple dns serversValue; Described computing unit 304 specifically for, according to described current response time, described current responseThe weighted value of the weighted value of time, described historical responses time and described historical responses time, calculates instituteState response time weighted value.
In this technical scheme, due to terminal access different network types (for example, 2G network:Digital network, 3G network: High Speed IP data network, 4G network: all-IP data network) rightThere is certain influence the response time of dns server, therefore, and can be according to the class of accessing terminal to networkType is determined the weighted value of the current response time of multiple dns servers, to serve in conjunction with multiple DNSThe historical responses time of device and corresponding weighted value calculate the response time of multiple dns serversWeighted value, so, can calculate the response weighted value of multiple dns servers more exactly, fromAnd make in multiple dns servers select target dns server more accurately, reliable.
In above-mentioned arbitrary technical scheme, preferably, also comprise: judging unit 308, for judgementWhether the access times of the each dns server in described multiple dns server are less than preset times;The first determining unit 310, at least one the DNS service when described multiple dns serversWhen the access times of device are less than described preset times, by the visit in described at least one dns serverAsk that the dns server of least number of times is as target dns server; Described transmitting element 302 is concreteBe used for, when the access times of the described each dns server in described multiple dns servers all largeIn or while equaling described preset times, carry out described send domain name mappings to multiple dns servers pleaseThe step of asking.
In this technical scheme, before sending domain name mapping request to multiple dns servers, logicalCross and judge whether the access times of the each dns server in multiple dns servers are less than default timeNumber, when the access times of at least one dns server in multiple dns servers are less than defaultWhen number of times, also just the terminal of at least one dns server of explanation access is fewer, by least oneThe dns server of the access times minimum in individual dns server is as target dns server,Can effectively avoid access amount to cause very long feelings of response time compared with large dns serverCondition, guaranteed the quick response of dns server, on the other hand, and when in multiple dns serversWhen the access times of each dns server are all more than or equal to preset times, can be according to responseTime weight value is select target dns server in multiple dns servers, has ensured furtherThe accuracy of select target dns server, reliability in multiple dns servers.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the second determining unit 312, forObtain the current geographic position at described terminal place, and determine described many according to described current geographic positionIndividual dns server.
In this technical scheme, because the network configuration of the dns server of diverse geographic location also canResponse time during to terminal access dns server exerts an influence, therefore, and can be by obtaining endThe current geographic position at end place, and determine multiple dns servers according to current geographic position, enterThe accuracy of multiple dns servers has been guaranteed to select in one step ground.
In above-mentioned arbitrary technical scheme, preferably, described computing unit 304 comprises: the 3rd determinesUnit 3044, if for receiving the arbitrary dns server from described multiple dns serversDomain name mapping response, using the response time of described arbitrary dns server as described arbitrary DNSThe described current response time of server; If do not receive from described multiple dns serversThe domain name mapping response of arbitrary dns server, will preset the response time as described arbitrary DNS clothesThe described current response time of business device.
In this technical scheme, when receiving from the arbitrary DNS service in multiple dns serversWhen the domain name mapping of device responds, can be directly using the response time of arbitrary dns server as appointingThe current response time of one dns server, otherwise, can will preset the response time as arbitraryThe current response time of dns server, add so that calculate the response time of multiple dns serversWeights. And, using the dns server that does not receive domain name mapping response not as next this terminalThe dns server of select target dns server, that is to say and will not receive domain name mapping responseDns server get rid of outside multiple dns servers.
Fig. 4 shows the structural representation of terminal according to an embodiment of the invention.
As shown in Figure 4, terminal 400 according to an embodiment of the invention, comprising: above-mentioned technologyThe selecting arrangement 300 of the dns server in scheme described in any one, therefore, these terminal 400 toolsHave with technique scheme in the identical skill of selecting arrangement 300 of dns server described in any oneArt effect, does not repeat them here.
Fig. 5 shows the selecting arrangement of dns server according to another embodiment of the inventionStructural representation; Fig. 6 shows dns server according to an embodiment of the invention and terminalMutual schematic diagram.
Describe technical scheme of the present invention in detail below in conjunction with Fig. 5 and Fig. 6:
As shown in Figure 5, the selecting arrangement of dns server according to another embodiment of the invention500, comprising: location-based service module 502, for obtaining the current geographic position at terminal place, withDetermine multiple dns servers to be selected according to current geographic position; Parsing module 504 for toMultiple dns servers to be selected send domain name mapping request, receive the territory from dns serverName analysis response (as shown in Figure 6), and obtain multiple dns servers to domain name mapping requestThe current response time; Computing module 506 is for according to current response time and multiple dns serverThe response time weighted value of the multiple dns servers of historical responses Time Calculation, when according to responseBetween weighted value select target dns server in multiple dns servers.
More than be described with reference to the accompanying drawings technical scheme of the present invention, improved and obtained target DNSThe accuracy of server and reliability, thereby the response time of effectively having reduced dns server.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, forThose skilled in the art, the present invention can have various modifications and variations. All in essence of the present inventionWithin god and principle, any amendment of doing, be equal to replacement, improvement etc., all should be included in the present inventionProtection domain within.

Claims (11)

1. a system of selection for dns server, is characterized in that, comprising:
Send domain name mapping request to multiple dns servers;
Obtain the current response time of described multiple dns server to domain name analysis request, andIn conjunction with the sound of multiple dns servers described in the historical responses Time Calculation of described multiple dns serversWeighted value between seasonable;
According to described response time weighted value select target DNS clothes in described multiple dns serversBusiness device.
2. the system of selection of dns server according to claim 1, is characterized in that, instituteState in conjunction with multiple dns servers described in the historical responses Time Calculation of described multiple dns serversThe step of response time weighted value, specifically comprises:
Determine the weighted value of described current response time according to the type of accessing terminal to network, and obtainDescribed historical responses time and the corresponding weighted value of described multiple dns servers;
According to the weighted value of described current response time, described current response time, described historical responsesThe weighted value of time and described historical responses time, calculates described response time weighted value.
3. the system of selection of dns server according to claim 1, is characterized in that,Before the described step that sends domain name mapping request to multiple dns servers, comprising:
Whether the access times that judge the each dns server in described multiple dns server are less thanPreset times;
When the access times of at least one dns server in described multiple dns servers are less than instituteWhile stating preset times, by DNS the clothes minimum access times in described at least one dns serverBusiness device is as target dns server;
When the access times of the described each dns server in described multiple dns servers are all greater thanOr while equaling described preset times, carry out describedly sending domain name mapping requests to multiple dns serversStep.
4. the system of selection of dns server according to claim 3, is characterized in that,Whether the described access times that judge the each dns server in described multiple dns server are less thanBefore the step of preset times, comprising:
Obtain the current geographic position at terminal place, and determine described many according to described current geographic positionIndividual dns server.
5. according to the system of selection of the dns server described in any one in claim 1 to 4, itsBe characterised in that, described in obtain the current sound of described multiple dns server to domain name analysis requestStep between seasonable, specifically comprises:
If receive the domain name mapping from the arbitrary dns server in described multiple dns serversResponse, the institute using the response time of described arbitrary dns server as described arbitrary dns serverState the current response time;
If do not receive the domain name solution from the arbitrary dns server in described multiple dns serversAnalyse response, the described current response time using the default response time as described arbitrary dns server.
6. a selecting arrangement for dns server, is characterized in that, comprising:
Transmitting element, for sending domain name mapping request to multiple dns servers;
Computing unit, for obtaining described multiple dns server working as domain name analysis requestThe front response time, and in conjunction with multiple described in the historical responses Time Calculation of described multiple dns serversThe response time weighted value of dns server;
Selected cell, for according to described response time weighted value at described multiple dns serversSelect target dns server.
7. the selecting arrangement of dns server according to claim 6, is characterized in that, instituteStating computing unit comprises:
Acquiring unit, for determining the power of described current response time according to the type of accessing terminal to networkHeavily be worth, and obtain described historical responses time and the corresponding weight of described multiple dns serversValue;
Described computing unit specifically for, according to described current response time, described current response timeThe weighted value of weighted value, described historical responses time and described historical responses time, calculate described soundWeighted value between seasonable.
8. the selecting arrangement of dns server according to claim 6, is characterized in that, alsoComprise:
Judging unit, for judging the visit of each dns server of described multiple dns serversAsk whether number of times is less than preset times;
The first determining unit, at least one the DNS service when described multiple dns serversWhen the access times of device are less than described preset times, by the visit in described at least one dns serverAsk that the dns server of least number of times is as target dns server;
Described transmitting element specifically for, as the described each DNS in described multiple dns serversWhen the access times of server are all more than or equal to described preset times, carry out described to multiple DNSServer sends the step of domain name mapping request.
9. the selecting arrangement of dns server according to claim 8, is characterized in that, alsoComprise:
The second determining unit, for obtaining the current geographic position at terminal place, and according to described currentDescribed multiple dns server is determined in geographical position.
10. according to the selecting arrangement of the dns server described in any one in claim 6 to 9,It is characterized in that, described computing unit comprises:
The 3rd determining unit, if for receiving arbitrary from described multiple dns serversThe domain name mapping response of dns server, using the response time of described arbitrary dns server as instituteState the described current response time of arbitrary dns server;
If do not receive the domain name solution from the arbitrary dns server in described multiple dns serversAnalyse response, the described current response time using the default response time as described arbitrary dns server.
11. 1 kinds of terminals, is characterized in that, comprising: as any one institute in claim 6 to 10The selecting arrangement of the dns server of stating.
CN201510579669.5A 2015-09-11 2015-09-11 Selection method of DNS server, selection device of the DNS server and terminal Pending CN105610995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510579669.5A CN105610995A (en) 2015-09-11 2015-09-11 Selection method of DNS server, selection device of the DNS server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510579669.5A CN105610995A (en) 2015-09-11 2015-09-11 Selection method of DNS server, selection device of the DNS server and terminal

Publications (1)

Publication Number Publication Date
CN105610995A true CN105610995A (en) 2016-05-25

Family

ID=55990529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510579669.5A Pending CN105610995A (en) 2015-09-11 2015-09-11 Selection method of DNS server, selection device of the DNS server and terminal

Country Status (1)

Country Link
CN (1) CN105610995A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790766A (en) * 2017-02-17 2017-05-31 郑州云海信息技术有限公司 A kind of dns server intelligent configuration method for client
CN107071089A (en) * 2017-05-18 2017-08-18 腾讯科技(深圳)有限公司 Dispatch control method, device and system
CN108718347A (en) * 2018-05-18 2018-10-30 腾讯科技(深圳)有限公司 A kind of domain name analytic method, system, device and storage medium
CN109600415A (en) * 2018-10-23 2019-04-09 平安科技(深圳)有限公司 The method, apparatus and computer equipment of target data are obtained from multiple source servers
CN110708365A (en) * 2019-09-23 2020-01-17 杭州迪普科技股份有限公司 Data receiver selection method and device
CN110913007A (en) * 2019-11-29 2020-03-24 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
WO2022057662A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Server selection method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827136A (en) * 2010-03-30 2010-09-08 联想网御科技(北京)有限公司 Defense method for domain name system server buffer infection and network outlet equipment
CN102057724A (en) * 2008-06-11 2011-05-11 爱立信电话股份有限公司 Enhanced APN resolution
CN102572001A (en) * 2011-01-04 2012-07-11 中兴通讯股份有限公司 Domain name system (DNS) and method for providing load balancing
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN103685603A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Domain name system analyzing method and device
CN103973835A (en) * 2014-05-16 2014-08-06 北京金山网络科技有限公司 Domain name system server selection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102057724A (en) * 2008-06-11 2011-05-11 爱立信电话股份有限公司 Enhanced APN resolution
CN101827136A (en) * 2010-03-30 2010-09-08 联想网御科技(北京)有限公司 Defense method for domain name system server buffer infection and network outlet equipment
CN102572001A (en) * 2011-01-04 2012-07-11 中兴通讯股份有限公司 Domain name system (DNS) and method for providing load balancing
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN103685603A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Domain name system analyzing method and device
CN103973835A (en) * 2014-05-16 2014-08-06 北京金山网络科技有限公司 Domain name system server selection method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790766A (en) * 2017-02-17 2017-05-31 郑州云海信息技术有限公司 A kind of dns server intelligent configuration method for client
CN107071089A (en) * 2017-05-18 2017-08-18 腾讯科技(深圳)有限公司 Dispatch control method, device and system
WO2018210265A1 (en) * 2017-05-18 2018-11-22 腾讯科技(深圳)有限公司 Scheduling control method, apparatus, and system
CN107071089B (en) * 2017-05-18 2020-09-15 腾讯科技(深圳)有限公司 Scheduling control method, device and system
CN108718347A (en) * 2018-05-18 2018-10-30 腾讯科技(深圳)有限公司 A kind of domain name analytic method, system, device and storage medium
CN109600415A (en) * 2018-10-23 2019-04-09 平安科技(深圳)有限公司 The method, apparatus and computer equipment of target data are obtained from multiple source servers
CN110708365A (en) * 2019-09-23 2020-01-17 杭州迪普科技股份有限公司 Data receiver selection method and device
CN110913007A (en) * 2019-11-29 2020-03-24 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
CN110913007B (en) * 2019-11-29 2022-03-29 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
WO2022057662A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Server selection method and apparatus

Similar Documents

Publication Publication Date Title
CN105610995A (en) Selection method of DNS server, selection device of the DNS server and terminal
US8065417B1 (en) Service provider registration by a content broker
Wang et al. Estimating the performance of hypothetical cloud service deployments: A measurement-based approach
US11562015B2 (en) Methods and apparatus for estimating total unique audiences
US20110119370A1 (en) Measuring network performance for cloud services
CN107071089A (en) Dispatch control method, device and system
US20160132774A1 (en) Method and system for predicting a geographic location of a network entity
CN103716251A (en) Load balancing method and equipment for content distribution network
CN104994133A (en) Mobile Web webpage access user experience perception evaluating method based on network KPI
KR20090035612A (en) Systems and methods of automated retrieval of location information from a user device for use with server systems
CN107196968B (en) Crawler identification method
KR101696508B1 (en) Enhancement of positioning quality of service
CN104113870B (en) Network test method and mobile terminal
KR101985045B1 (en) Increasing the accuracy of information returned for context signals
KR20210054601A (en) Object selection method and apparatus
CN103873604A (en) Network access method based on analysis of CDN data
US20210184940A1 (en) Prediction of a performance indicator
CN105991708B (en) Application server selection method, device and system
Dahunsi et al. Measuring mobile broadband performance in Nigeria: 2G and 3G
FI129839B (en) Method for determining a performance indicator of a wireless telecommunications network
US8289868B2 (en) Network device and method of measuring upstream bandwidth employed thereby
CN111625359B (en) Method and device for determining CDN usage of user and terminal equipment
JP6471110B2 (en) Suspected failure location estimation apparatus, failure location estimation method, and failure location estimation program
CN111082977B (en) Method and device for acquiring IP address and terminal equipment
CN106034124B (en) A kind of flow statistical method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525