CN107888716A - A kind of sort method of domain name resolution server, terminal device and storage medium - Google Patents

A kind of sort method of domain name resolution server, terminal device and storage medium Download PDF

Info

Publication number
CN107888716A
CN107888716A CN201711265368.0A CN201711265368A CN107888716A CN 107888716 A CN107888716 A CN 107888716A CN 201711265368 A CN201711265368 A CN 201711265368A CN 107888716 A CN107888716 A CN 107888716A
Authority
CN
China
Prior art keywords
domain name
name resolution
resolution server
query
success rate
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
CN201711265368.0A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711265368.0A priority Critical patent/CN107888716A/en
Publication of CN107888716A publication Critical patent/CN107888716A/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]
    • 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/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applied to communication technical field, there is provided a kind of sort method of domain name resolution server, terminal device and storage medium, including:Obtain the address list of domain name resolution server, according to the predetermined time cycle, obtain the response time of each first domain name resolution server and query success rate in the address list, first domain name resolution server refers to the domain name resolution server that query event is treated in the address list, the first domain name resolution server in the address list is ranked up according to the response time of each first domain name resolution server and query success rate, reducing terminal device by the application inquires about the time of dns server, raising search efficiency.

Description

A kind of sort method of domain name resolution server, terminal device and storage medium
Technical field
The application belongs to communication technical field, more particularly to a kind of sort method of domain name resolution server, terminal device And storage medium.
Background technology
Computer domain name system (Domain Name System or Domain Name Service, DNS) by resolver and Name server forms.Name server saves the domain name of main frame and corresponding IP address in network, has and changes domain name For the function of IP address, i.e. DNS is the server for carrying out domain name mapping.
User is when using terminal equipment is surfed the Net, the domain name for being easy for user's memory of input, can not know between computer Other domain name, identification is IP address.So terminal device needs to initiate solution to the dns server of preservation by way of poll Analysis request is until successfully parsing domain name.However, this poll dns server in a manner of parsing domain name take it is longer, efficiency compared with It is low.
The content of the invention
In view of this, the embodiment of the present application provides a kind of sort method of domain name resolution server, terminal device and deposited Storage media, with solve the problems, such as current terminal device inquiry dns server it is time-consuming it is longer, efficiency is low.
The first aspect of the embodiment of the present application provides a kind of sort method of domain name resolution server, including:
Obtain the address list of domain name resolution server;
According to the predetermined time cycle, the response time of each first domain name resolution server in the address list is obtained And query success rate, first domain name resolution server refer to the domain name mapping that query event is treated in the address list Server;
According to the response time of each first domain name resolution server and query success rate in the address list One domain name resolution server is ranked up.
The second aspect of the embodiment of the present application provides a kind of terminal device, including:
Address list acquisition module, for obtaining the address list of domain name resolution server;
Data acquisition module, for according to the predetermined time cycle, obtaining each first domain name solution in the address list Response time and the query success rate of server are analysed, first domain name resolution server refers to treat in the address list The domain name resolution server of query event;
Order module, for the response time according to each first domain name resolution server and query success rate to described The first domain name resolution server in the list of location is ranked up.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program The step of realizing the methods described that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors On the one hand the step of methods described provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors Methods described the step of.
The embodiment of the present application by monitor in predetermined period of time treat query event domain name resolution server sound Between seasonable and query success rate, then domain name resolution server is ranked up according to the response time and query success rate, So terminal device is when needing to initiate query event, it is possible to which the forward domain name resolution server of prioritizing selection sequence is looked into Ask to parse domain name, be ranked up by the response time and query success rate that are then based on domain name resolution server, thus it is possible to Shorten query time, improve query success rate.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical scheme in the embodiment of the present application In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description are only some of the application Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of implementation process signal of the sort method for domain name resolution server that the embodiment of the application one provides Figure;
Fig. 2 is a kind of implementation process signal of the sort method for domain name resolution server that the another embodiment of the application provides Figure;
Fig. 3 is the schematic block diagram for the terminal device that the embodiment of the application one provides;
Fig. 4 is the schematic block diagram for the terminal device that the another embodiment of the application provides.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present application.However, it will be clear to one skilled in the art that there is no these specific The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
It should be appreciated that ought be in this specification and in the appended claims in use, special described by the instruction of term " comprising " Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As used in present specification and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical scheme described herein, illustrated below by specific embodiment.
Fig. 1 is the implementation process schematic diagram of the sort method for the domain name resolution server that the embodiment of the application one provides, such as This method may comprise steps of shown in figure:
Step S101, obtain the address list of domain name resolution server.
In the embodiment of the present application, current Virtual network operator would generally be distributed to after terminal device is even connected to the Net The multiple domain name resolution servers of terminal device (Domain Name System or Domain Name Service, DNS) are each Dns server has an individual address, and multiple dns servers form an address list, the dns server processing inquiry in address list The ability of event is different, for example, some dns server response ratios are very fast, some responses are slow, the query success rate ratio also having Higher, the query success rate also having is than relatively low.When terminal device receives domain name mapping request, inquiry will be sent accordingly Event is to the dns server in address list.
Step S102, according to the predetermined time cycle, obtain each first domain name resolution server in the address list Response time and query success rate, first domain name resolution server refer in the address list treat query event Domain name resolution server.
In the embodiment of the present application, the predetermined time cycle can pre-set, for example, setting the time cycle For 1 hour, just need to obtain each first domain name resolution server in the address list equivalent at interval of 1 hour Response time and query success rate, can also be set, for example, just needing to obtain the address column in each interval of one day the longer time The response time of each first domain name resolution server and query success rate in table.Certainly, in practical application, may be arranged as In the period that user even connects to the Net, according to the predetermined time cycle, each first domain name solution in the address list is obtained Analyse response time and the query success rate of server.When terminal device receives domain name mapping request, will send accordingly Query event is to the dns server in address list, during the response for the dns server that then can obtain treated query event Between and query success rate.The response time of each dns server can be the treated all query events of each dns server Average response time, by inquire about failure response time be arranged to fixed value, can also be calculate successful inquiring average sound Between seasonable, i.e., what inquiry failed is not counted in the response time.It should be noted that within the default time cycle, presumable DNS Server process crosses query event, and presumable dns server does not treat query event, by all treated query events Dns server be referred to as the first domain name resolution server.
Step S103, according to the response time of each first domain name resolution server and query success rate to the address column The first domain name resolution server in table is ranked up.
In the embodiment of the present application, because the performance of the dns server of not treated query event can not be known, So the dns server of untreated query event can keep original sequence in predetermined time cycle, and treat and look into The dns server of inquiry event is ranked up according to response time during processing query event and query success rate.To the first domain Name resolution server can be first according to the response time of each first domain name resolution server and query success rate when being ranked up It is determined that the priority that each first domain name resolution server is current;Then according to the current priority to the address list In the first domain name resolution server be ranked up.
Specifically, weight is set respectively for the response time and query success rate;
Response time and query success rate and the response time based on each first domain name resolution server and look into Ask the current priority of each first domain name resolution server of weight calculation corresponding to success rate;
The first domain name resolution server in the address list is ranked up according to the current priority.
In the embodiment of the present application, considering the parameter of dns server combination property includes response time, query success rate, In certain practical application, other parameters can also be set, weight is set respectively for each parameter, can specifically pass through below equation Realize:
Wherein, DiThe priority (combination property) of i-th of first domain name resolution servers is represented, m represents to consider DNS service The number of the parameter of device combination property, ajJ-th of parameter of dns server combination property, k are considered in expressionjRepresent j-th of parameter Weight.
In actual applications, the kjValue can be 0, represent calculating the excellent of first domain name resolution server During first level, the parameter corresponding to the weight that value is 0 is not considered.
The embodiment of the present application by monitor in predetermined period of time treat query event domain name resolution server sound Between seasonable and query success rate, then domain name resolution server is ranked up according to the response time and query success rate, So terminal device is when needing to initiate query event, it is possible to which the forward domain name resolution server of prioritizing selection sequence is looked into Ask to parse domain name, be ranked up by the response time and query success rate that are then based on domain name resolution server, thus it is possible to Shorten query time, improve query success rate.
Fig. 2 is the schematic flow sheet of the sort method for the domain name resolution server that the another embodiment of the application provides, and is such as schemed Shown this method may comprise steps of:
Step S201, obtain the address list of domain name resolution server;
The step is consistent with step S101 contents, specifically can refer to the description in step S101, will not be repeated here.
Step S202, using the current order of domain name resolution server in the address list as initial priority order.
In the embodiment of the present application, dns server in the address list of the dns server got from Virtual network operator Current order can be used as initial priority order, it is not intended that the dns server in initial priority order be by According to combination property sequence.
Step S203, when receiving query event, by the query event received according to initial priority order The domain name resolution server being sent in the address list, until being successfully received inquiry knot corresponding with the query event Fruit.
In the embodiment of the present application, can be by the query event received according to initial excellent when receiving query event First level order is sent to the dns server processing query event of initial priority grade highest (sequence first), if default In response time, Query Result corresponding to the query event of initial priority highest dns server return is have received, Then stop the query event.If within the default response time, the initial priority highest dns server is not received and is returned The Query Result corresponding with the query event returned, then continue the dns server to initial priority level high (sequence second) Continue to send the query event, if within the default response time, receive the high dns server of the initial priority level Query Result corresponding to the query event returned, then stop query event.If within the default response time, do not receive The Query Result corresponding with the query event that the high dns server of the initial priority level returns, then continue to initial The dns server of sequence the 3rd continues to send the query event ... ... in the manner described above in priority orders, until successfully connecing Query Result corresponding with the query event is received just to stop continuing to inquire about the query event.Or by the address list In dns server ask all over after can not still receive Query Result corresponding with the query event, also stop the query event.
Step S204, the domain name resolution server that query event is treated in the current time cycle is designated as the first domain name Resolution server, and record response time and the query success rate of each first domain name resolution server.
In the embodiment of the present application, in the current time cycle, presumable dns server treats query event, can The untreated query event that can have, is illustrated with:
First query event, after being polled to the 1st dns server, receive Query Result;
Second query event, after being polled to the 5th dns server, receive Query Result;
3rd query event, after being polled to the 3rd dns server, receive Query Result;
4th query event, after being polled to the 1st dns server, receive Query Result;
5th query event, after being polled to the 1st dns server, receive Query Result;
The dns server of treated query event (even if not returning to Query Result) is designated as the first domain name resolution service Device, then the first domain name resolution server is preceding 5 dns servers.Also need to record the first domain of treated query event simultaneously The response time of name resolution server and query success rate.Due to being to send query event according to initial priority order, so 1st domain name resolution server inquired about each query event, that is, inquired about 5 query events, wherein 3 have succeeded ( First, four, five query event), success rate 60%;2nd domain name resolution server was inquired about the second query event and the 3rd and looked into Inquiry event, but failed, success rate 0;3rd domain name resolution server inquired about the second query event and the 3rd inquiry Event, the 3rd query event successful inquiring, success rate 50%;……;All treat can be calculated according to aforesaid way to look into The query success rate of first domain name resolution server of inquiry event.The calculation of response time can include two kinds, Yi Zhongshi The average value of response time when only calculating successful inquiring, during one kind inquiry failure when the response time will be designated as default response Between, calculate the average value of the response time of treated all query events.As an example, with the 1st domain name resolution server Exemplified by, the response time of the first query event of processing is 0.2 second, processing the second query event failure, handles the 3rd query event Failure, the response time of the 4th query event of processing is 0.13 second, and the response time of the 5th query event of processing is 0.17 second, in advance If response time be 0.5 second.When calculating the response time of the 1st domain name resolution server, can calculate 0.2,0.13, 0.17 average value can also calculate 0.2,0.5,0.5,0.13,0.17 average value as the response time as the response time. Assuming that the 6th domain name resolution server also be present, then the 6th domain name resolution server do not respond to then the time also without inquiry into Power, keep original order constant.
Step S205, at the end of confirming the current time cycle, whether the number of first domain name resolution server is big In 1.
In the embodiment of the present application, the domain name resolution server for treating query event is possible to only one, i.e., the 1st Domain name resolution server can be successfully processed all query events received, and return to corresponding Query Result, such case Then without rearrangement, even if domain name resolution server below is not that more forward performance is better, but the 1st domain name mapping clothes When the performance of business device handles all query events enough, the performance of domain name resolution server below is with regard to unimportant.
Step S206, it is suitable based on the initial priority if the number of first domain name resolution server is more than 1 Sequence, determine described adjacent two according to the response time of two adjacent the first domain name resolution servers and success rate successively The order of one domain name resolution server.
Specifically, based on initial priority order, successively according to two adjacent the first domain name resolution servers Response time and success rate determine that the order of two adjacent first domain name resolution servers includes:
If AiT < Ai+1t、AiS < Ai+1s、AiT < T and AiS < S, then exchange AiAnd Ai+1Order;
Wherein, the AiRepresent i-th of first domain name resolution servers, AiT represents i-th of first domain name resolution servers Response time, AiS represents the query success rate of i-th of first domain name resolution servers, and T represents the first preset value, and S represents the Two preset values, i ∈ [1, n-1], n represent the number of the first domain name resolution server.
In the embodiment of the present application, i span is successively to n-1, equivalent to first comparing the 1st and the 2nd domain from 1 The response time of name resolution server and query success rate, if the response time of the 1st domain name resolution server and successful inquiring Rate is below response time and the query success rate of the 2nd domain name resolution server, and the sound of the 1st domain name resolution server It is less than the first preset value between seasonable, query success rate is less than the second preset value, then exchanges the 1st and the 2nd domain name resolution service The order of device, after it have exchanged the order of the 1st and the 2nd domain name resolution server, continue to compare the 2nd after exchange sequence Response time and query success rate ... ... with the 3rd domain name resolution server, equivalent to comparing while exchange sequence, After each exchange sequence, continue to compare with close on two after exchange sequence, i.e. AiRepresent in current sequence i-th first Domain name resolution server.For example, initial priority order is:Abcdef, the 1st and the 2nd order for exchanging a and b more afterwards, Be changed into bacdef, it is follow-up relatively the 2nd and the 3rd, compare for the 2nd a and the 3rd in the bacdef after exchange sequence C ... ..., sequence is so compared successively.
Certainly, in actual applications, it may be arranged as the AiRepresent in the initial priority order i-th the One domain name resolution server, so, equivalent to comparing while exchange sequence, after each exchange sequence, continue with initial excellent Two closed in first level order continue to compare, for example, initial priority order is:Abcdef, after the 1st and the 2nd comparison Exchange a and b order, be changed into bacdef, it is follow-up relatively the 2nd and the 3rd, compare in initial priority order abcdef The 2nd b and the 3rd c, exchange and the 2nd b and the 3rd c order ... ..., be so compared sequence successively.
It should be noted that the give-and-take conditions set:AiT < Ai+1t、AiS < Ai+1s、AiT < T and AiS < S, can be with It is changed to:AiT < Ai+1t、AiS < Ai+1S, i.e., response times of only more adjacent two domain name resolution servers and inquiry into Power, no longer compared with the first preset value and the second preset value.
According to the method to be sorted again after weight calculation priority, the setting of weight be user or developer rule of thumb It is configured, there may be irrational place, but it is the combination property based on whole domain name resolution servers to sort Sequence.Pass through the response time according to progressive mode successively more adjacent two domain name resolution servers and successful inquiring Rate, although being uniformly compared not in accordance with whole domain name resolution servers, artificial subjective experience value is eliminated, directly Compare the response time and query success rate is more directly perceived.When terminal device initiates query event, according to the domain name mapping after sequence Server initiates query event, can shorten query time, improve query success rate.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present application forms any limit with its function and internal logic It is fixed.
Fig. 3 is the schematic block diagram for the terminal device that the embodiment of the application one provides, and for convenience of description, is only shown and this Shen Please the related part of embodiment.
The terminal device 3 can be software unit, the hardware being built in the terminal devices such as mobile phone, computer, notebook Unit or the unit of soft or hard combination, the terminal devices such as mobile phone, computer, notebook can also be integrated into as independent suspension member In, it is also used as independent terminal device and exists.
The terminal device 3 includes:
Address list acquisition module 31, for obtaining the address list of domain name resolution server;
Data acquisition module 32, for according to the predetermined time cycle, obtaining each first domain name in the address list The response time of resolution server and query success rate, first domain name resolution server refer to handle in the address list Cross the domain name resolution server of query event;
Order module 33, for the response time according to each first domain name resolution server and query success rate to described The first domain name resolution server in address list is ranked up.
The data acquisition module 32 includes:
Initial priority generation unit 321, for the current order of domain name resolution server in the address list to be made For initial priority order;
Data query unit 322, for when receiving query event, by the query event received according to described initial Priority orders are sent to the domain name resolution server in the address list, until being successfully received and the query event pair The Query Result answered;
Data capture unit 323, for the domain name resolution server of query event will to be treated in the current time cycle The first domain name resolution server is designated as, and records response time and the query success rate of each first domain name resolution server.
Optionally, the order module 33 includes:
Quantity confirmation unit 331, at the end of confirming the current time cycle, first domain name resolution server Whether number is more than 1;
First sequencing unit 332, if the number for first domain name resolution server is more than 1, based on described first Beginning priority orders, the phase is determined according to the response time of two adjacent the first domain name resolution servers and success rate successively The order of two adjacent the first domain name resolution servers.
Optionally, first sequencing unit 332 is additionally operable to:
If AiT < Ai+1t、AiS < Ai+1s、AiT < T and AiS < S, then exchange AiAnd Ai+1Order;
Wherein, the AiRepresent i-th of first domain name resolution servers, AiT represents i-th of first domain name resolution servers Response time, AiS represents the query success rate of i-th of first domain name resolution servers, and T represents the first preset value, and S represents the Two preset values, i ∈ [1, n-1], n represent the number of the first domain name resolution server.
Optionally, the order module 33 also includes:
Priority determining unit 333, for the response time according to each first domain name resolution server and successful inquiring Rate determines the current priority of each first domain name resolution server;
Second sequencing unit 334, for according to the current priority to the first domain name solution in the address list Analysis server is ranked up.
Optionally, the priority determining unit 333 is additionally operable to:
For the response time and query success rate, weight is set respectively, and based on each first domain name resolution server Each first domain name of weight calculation corresponding to response time and query success rate and the response time and query success rate The current priority of resolution server.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, will the internal structure of the terminal device be divided into different functional units or module, to complete All or part of function described above.Each functional unit, module in embodiment can be integrated in a processing unit, Can also be that unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned collection Into unit can both have been realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function Unit, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above-mentioned dress Middle unit, the specific work process of module are put, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Fig. 4 is the schematic block diagram for the terminal device that the another embodiment of the application provides.As shown in figure 4, the end of the embodiment End equipment 4 includes:One or more processors 40, memory 41 and it is stored in the memory 41 and can be in the processing The computer program 42 run on device 40.The processor 40 realizes above-mentioned each domain name solution when performing the computer program 42 Analyse the step in the sort method embodiment of server, such as the step S101 to S103 shown in Fig. 1.Or the processor The function of each module/unit in above-mentioned terminal device embodiment is realized during the 40 execution computer program 42, such as shown in Fig. 3 The function of module 31 to 33.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the application.Described one Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided It is cut into address list acquisition module, data acquisition module, order module.
The address list acquisition module, for obtaining the address list of domain name resolution server;
The data acquisition module, for according to the predetermined time cycle, obtaining each first domain in the address list The response time of name resolution server and query success rate, first domain name resolution server refer to locate in the address list Managed the domain name resolution server of query event;
The order module, for the response time according to each first domain name resolution server and query success rate to institute The first domain name resolution server stated in address list is ranked up.
Other modules or unit can refer to the description in the embodiment shown in Fig. 3, will not be repeated here.
The terminal device includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure 4 be only an example of terminal device 4, does not form the restriction to terminal device 4, can be included more more or less than illustrating Part, either combine some parts or different parts, such as the terminal device can also include input equipment, defeated Go out equipment, network access equipment, bus etc..
The processor 40 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk of terminal device 4 or interior Deposit.The memory 41 can also be the External memory equipment of the terminal device 4, such as be equipped with the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is used to store needed for the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed terminal device and method, it can be passed through Its mode is realized.For example, terminal device embodiment described above is only schematical, for example, the module or list The division of member, only a kind of division of logic function can have an other dividing mode when actually realizing, for example, multiple units or Component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, show Show or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, the magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical scheme of the application, rather than its limitations;Although with reference to foregoing reality Example is applied the application is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application, all should Within the protection domain of the application.

Claims (10)

  1. A kind of 1. sort method of domain name resolution server, it is characterised in that including:
    Obtain the address list of domain name resolution server;
    According to the predetermined time cycle, obtain the response time of each first domain name resolution server in the address list and look into Success rate is ask, first domain name resolution server refers to the domain name resolution service that query event is treated in the address list Device;
    According to the response time of each first domain name resolution server and query success rate to the first domain in the address list Name resolution server is ranked up.
  2. 2. the sort method of domain name resolution server as claimed in claim 1, it is characterised in that described to obtain the address column The response time of each first domain name resolution server and query success rate include in table:
    Using the current order of domain name resolution server in the address list as initial priority order;
    When receiving query event, the query event received is sent to the address according to initial priority order Domain name resolution server in list, until being successfully received Query Result corresponding with the query event;
    The domain name resolution server that query event is treated in the current time cycle is designated as the first domain name resolution server, and Record response time and the query success rate of each first domain name resolution server.
  3. 3. the sort method of domain name resolution server as claimed in claim 1 or 2, it is characterised in that the basis each The response time of one domain name resolution server and query success rate are entered to the first domain name resolution server in the address list Row sequence includes:
    At the end of confirming the current time cycle, whether the number of first domain name resolution server is more than 1;
    If the number of first domain name resolution server is more than 1, based on initial priority order, successively according to adjacent Two the first domain name resolution servers response time and success rate determine two adjacent first domain name resolution services The order of device.
  4. 4. the sort method of domain name resolution server as claimed in claim 3, it is characterised in that described based on described initial excellent First level order, is determined described adjacent according to the response time of two adjacent the first domain name resolution servers and success rate successively The order of two the first domain name resolution servers includes:
    If AiT < Ai+1t、AiS < Ai+1s、AiT < T and AiS < S, then exchange AiAnd Ai+1Order;
    Wherein, the AiRepresent i-th of first domain name resolution servers, AiT represents the sound of i-th of first domain name resolution servers Between seasonable, AiS represents the query success rate of i-th of first domain name resolution servers, and T represents the first preset value, and S represents that second is pre- If value, i ∈ [1, n-1], n represent the number of the first domain name resolution server.
  5. 5. the sort method of domain name resolution server as claimed in claim 1 or 2, it is characterised in that the basis each The response time of one domain name resolution server and query success rate are entered to the first domain name resolution server in the address list Row sequence includes:
    Each first domain name resolution service is determined according to the response time of each first domain name resolution server and query success rate The current priority of device;
    The first domain name resolution server in the address list is ranked up according to the current priority.
  6. 6. the sort method of domain name resolution server as claimed in claim 5, it is characterised in that each first domain of basis The response time of name resolution server and query success rate determine that the current priority of each first domain name resolution server includes:
    For the response time and query success rate, weight is set respectively, and based on the response of each first domain name resolution server Each first domain name mapping of weight calculation corresponding to time and query success rate and the response time and query success rate The current priority of server.
  7. A kind of 7. terminal device, it is characterised in that including:
    Address list acquisition module, for obtaining the address list of domain name resolution server;
    Data acquisition module, for according to the predetermined time cycle, obtaining each first domain name mapping clothes in the address list The response time of business device and query success rate, first domain name resolution server refer to treat inquiry in the address list The domain name resolution server of event;
    Order module, for the response time according to each first domain name resolution server and query success rate to the address column The first domain name resolution server in table is ranked up.
  8. 8. terminal device as claimed in claim 7, it is characterised in that the data acquisition module includes:
    Initial priority generation unit, for using the current order of domain name resolution server in the address list as initial excellent First level order;
    Data query unit, for when receiving query event, by the query event received according to the initial priority Order is sent to the domain name resolution server in the address list, until being successfully received look into corresponding with the query event Ask result;
    Data capture unit, for the domain name resolution server that query event is treated in the current time cycle to be designated as into first Domain name resolution server, and record response time and the query success rate of each first domain name resolution server.
  9. 9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 6 described in the computing device during computer program The step of any one methods described.
  10. 10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer journey Sequence, realized when the computer program is executed by one or more processors such as the step of any one of claim 1 to 6 methods described Suddenly.
CN201711265368.0A 2017-12-05 2017-12-05 A kind of sort method of domain name resolution server, terminal device and storage medium Pending CN107888716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711265368.0A CN107888716A (en) 2017-12-05 2017-12-05 A kind of sort method of domain name resolution server, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711265368.0A CN107888716A (en) 2017-12-05 2017-12-05 A kind of sort method of domain name resolution server, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN107888716A true CN107888716A (en) 2018-04-06

Family

ID=61772640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711265368.0A Pending CN107888716A (en) 2017-12-05 2017-12-05 A kind of sort method of domain name resolution server, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN107888716A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810092A (en) * 2018-05-17 2018-11-13 Oppo广东移动通信有限公司 Network Access Method and device, electronic equipment, computer readable storage medium
CN108965059A (en) * 2018-07-26 2018-12-07 深圳市吉祥腾达科技有限公司 Router DNS forwarding performance test method
CN109510883A (en) * 2018-11-23 2019-03-22 Oppo广东移动通信有限公司 Domain name inquiry method, device, equipment and storage medium
CN109660425A (en) * 2018-12-13 2019-04-19 网宿科技股份有限公司 A kind of monitoring method determines method, monitoring device and storage medium
CN110913007A (en) * 2019-11-29 2020-03-24 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
CN111025010A (en) * 2019-11-25 2020-04-17 科华恒盛股份有限公司 Method and device for measuring active response time of equipment and terminal equipment
CN111092963A (en) * 2019-12-02 2020-05-01 珠海市魅族科技有限公司 Domain name service response method
CN111416883A (en) * 2020-03-11 2020-07-14 Oppo广东移动通信有限公司 Address query method, device, terminal and computer readable storage medium
CN112187883A (en) * 2020-09-11 2021-01-05 广州宸祺出行科技有限公司 Method and system for mobile terminal network request with standby domain name
CN112202760A (en) * 2020-09-28 2021-01-08 厦门美柚股份有限公司 Webpage access method, device, terminal and medium
CN112671943A (en) * 2020-12-17 2021-04-16 苏州极光无限信息技术有限公司 Method and device for detecting real domain name and storage medium
CN112671910A (en) * 2020-12-25 2021-04-16 互联网域名系统北京市工程研究中心有限公司 Optimized selection method of DNS forwarding server and storage medium
CN112823519A (en) * 2018-11-26 2021-05-18 深圳市欢太科技有限公司 Video decoding method, video decoding device, electronic equipment and computer readable storage medium
CN113051009A (en) * 2019-12-27 2021-06-29 西安诺瓦星云科技股份有限公司 Equipment ordering method, device and system and computer readable storage medium
CN114143288A (en) * 2020-08-14 2022-03-04 中国移动通信集团山东有限公司 Method and device for determining analysis path, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039352A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation System and method for designating a priority access order of domain name service servers
CN102572014A (en) * 2012-03-07 2012-07-11 华为终端有限公司 Message processing method and device and system thereof
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN106657426A (en) * 2015-11-04 2017-05-10 中兴通讯股份有限公司 Processing method and device for domain name parsing request, and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039352A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation System and method for designating a priority access order of domain name service servers
CN102572014A (en) * 2012-03-07 2012-07-11 华为终端有限公司 Message processing method and device and system thereof
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN106657426A (en) * 2015-11-04 2017-05-10 中兴通讯股份有限公司 Processing method and device for domain name parsing request, and server

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810092A (en) * 2018-05-17 2018-11-13 Oppo广东移动通信有限公司 Network Access Method and device, electronic equipment, computer readable storage medium
CN108810092B (en) * 2018-05-17 2021-09-14 Oppo广东移动通信有限公司 Network access method and device, electronic equipment and computer readable storage medium
CN108965059A (en) * 2018-07-26 2018-12-07 深圳市吉祥腾达科技有限公司 Router DNS forwarding performance test method
CN109510883A (en) * 2018-11-23 2019-03-22 Oppo广东移动通信有限公司 Domain name inquiry method, device, equipment and storage medium
CN112823519A (en) * 2018-11-26 2021-05-18 深圳市欢太科技有限公司 Video decoding method, video decoding device, electronic equipment and computer readable storage medium
CN112823519B (en) * 2018-11-26 2023-10-13 深圳市欢太科技有限公司 Video decoding method, device, electronic equipment and computer readable storage medium
CN109660425A (en) * 2018-12-13 2019-04-19 网宿科技股份有限公司 A kind of monitoring method determines method, monitoring device and storage medium
CN111025010A (en) * 2019-11-25 2020-04-17 科华恒盛股份有限公司 Method and device for measuring active response time of equipment and terminal equipment
CN111025010B (en) * 2019-11-25 2022-03-11 科华恒盛股份有限公司 Method and device for measuring active response time of equipment and terminal equipment
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
CN111092963A (en) * 2019-12-02 2020-05-01 珠海市魅族科技有限公司 Domain name service response method
CN111092963B (en) * 2019-12-02 2024-03-22 珠海市魅族科技有限公司 Domain name service response method
CN113051009A (en) * 2019-12-27 2021-06-29 西安诺瓦星云科技股份有限公司 Equipment ordering method, device and system and computer readable storage medium
CN113051009B (en) * 2019-12-27 2024-01-09 西安诺瓦星云科技股份有限公司 Device ordering method, device ordering system and computer readable storage medium
CN111416883B (en) * 2020-03-11 2023-03-03 Oppo广东移动通信有限公司 Address query method, device, terminal and computer readable storage medium
CN111416883A (en) * 2020-03-11 2020-07-14 Oppo广东移动通信有限公司 Address query method, device, terminal and computer readable storage medium
CN114143288A (en) * 2020-08-14 2022-03-04 中国移动通信集团山东有限公司 Method and device for determining analysis path, storage medium and computer equipment
CN112187883A (en) * 2020-09-11 2021-01-05 广州宸祺出行科技有限公司 Method and system for mobile terminal network request with standby domain name
CN112202760A (en) * 2020-09-28 2021-01-08 厦门美柚股份有限公司 Webpage access method, device, terminal and medium
CN112671943A (en) * 2020-12-17 2021-04-16 苏州极光无限信息技术有限公司 Method and device for detecting real domain name and storage medium
CN112671943B (en) * 2020-12-17 2022-07-15 苏州极光无限信息技术有限公司 Real domain name detection device
CN112671910A (en) * 2020-12-25 2021-04-16 互联网域名系统北京市工程研究中心有限公司 Optimized selection method of DNS forwarding server and storage medium
CN112671910B (en) * 2020-12-25 2023-03-24 深圳网基科技有限公司 Optimized selection method of DNS forwarding server and storage medium

Similar Documents

Publication Publication Date Title
CN107888716A (en) A kind of sort method of domain name resolution server, terminal device and storage medium
CN107682397B (en) Customer resources acquisition methods, device, terminal device and storage medium
CN104504077B (en) The statistical method and device of web page access data
CN109815657A (en) A kind of identity identifying method and terminal device based on alliance's chain
CN107748696A (en) The method and terminal device of a kind of task scheduling
CN107798038A (en) Data response method and data response apparatus
CN109962855A (en) A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device
CN107545315A (en) Order processing method and device
CN107612727A (en) Distributed health examination method, computing device and computer-readable storage medium
CN110198292A (en) Domain name recognition methods and device, storage medium and electronic device
CN109582452A (en) A kind of container dispatching method, dispatching device and electronic equipment
CN106878041A (en) Log information processing method, apparatus and system
CN104618403A (en) Access control method and device for security gateway
CN104484405A (en) Method and device for carrying out crawling task
CN110515969A (en) Data query processing method, electronic device, computer equipment and storage medium
CN108108190A (en) A kind of computational methods and Related product
CN111680904A (en) Acquisition method and device of purchase scheme and storage medium
CN110097302A (en) The method and apparatus for distributing order
CN109903191A (en) Travelling recommended method, device, storage medium and terminal based on machine learning
CN109726219A (en) The method and terminal device of data query
CN107645583A (en) A kind of contact sequencing method, mobile terminal and computer-readable recording medium
CN109936589A (en) Dynamic load balancing method, device and platform based on API hot value
CN107729218A (en) A kind of system and method for monitoring processing computing resource equipment
CN107528969A (en) Management method, managing device and the terminal device of telephone call time
CN109871962A (en) A kind of method and terminal device of terminal price assessment

Legal Events

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

Application publication date: 20180406

RJ01 Rejection of invention patent application after publication