CN103546590A - Method and device for choosing DNS (domain name server) - Google Patents

Method and device for choosing DNS (domain name server) Download PDF

Info

Publication number
CN103546590A
CN103546590A CN201310493322.XA CN201310493322A CN103546590A CN 103546590 A CN103546590 A CN 103546590A CN 201310493322 A CN201310493322 A CN 201310493322A CN 103546590 A CN103546590 A CN 103546590A
Authority
CN
China
Prior art keywords
dns server
domain name
response time
network
dns
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
CN201310493322.XA
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310493322.XA priority Critical patent/CN103546590A/en
Publication of CN103546590A publication Critical patent/CN103546590A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for choosing a DNS (domain name server). The method includes determining N DNSs to be chosen from, wherein N is a natural number larger than or equal to 2; sending a domain name analysis request to the N DNSs, and acquiring response time, to the domain name analysis request, of the N DNSs and IP (internet protocol) addresses which are acquired by analyzing a preset domain name carried in the domain name analysis request respectively; connecting the IP addresses acquired through analysis by the N DNSs, and acquiring IP response time of connection of the IP addresses; according to the response time, of each DNS, to the domain name analysis request and each corresponding IP response time, choosing the DNS from the N DNSs to be chosen from, and using the chosen DNS for domain name analysis. By the method and the device, user domain name analysis efficiency and safety are improved.

Description

A kind of system of selection of dns server and device
Technical field
The present invention relates to domain name mapping technical field, be specifically related to a kind of DNS(Domain Name System, domain name system) system of selection of server, and, a kind of choice device of dns server.
Background technology
Dns server refers to domain name and the corresponding IP address of preserving All hosts in network, and has the server that domain name is converted to IP address function.The process that domain name is mapped as to IP address is called " domain name mapping ", and DNS Protocol mainly completes domain name mapping, is about to the process that domain name is mapped as IP address.
At a lot of net environments (as partial wideband), user's dns server is often dynamically arranged to the dns server of operator, the domain name resolution efficiency of these dns servers may be lower, or exist DNS to kidnap problem, for example user wishes to access hao.360.cn, but resolve what but provide by dns server, is the IP of www.hao123.com.In addition, because trojan horse is also likely distorted user's dns server, cause DNS kidnap to occur, user can not be accessed specific IP address or by normal domain name mapping to fishing website or be subject on main frame that hacker controls.
More situation is that the dns server that user's the machine is used is not optimum, even loses efficacy, and makes user's the machine domain name resolution efficiency lowly or cannot carry out domain name mapping, has affected user's networking speed.
Summary of the invention
In view of above-mentioned existing domain name resolution efficiency is low and DNS kidnaps problem, the present invention has been proposed to provide a kind of system of selection of the dns server that overcomes the problems referred to above or address the above problem at least in part and the choice device of corresponding dns server.
According to one aspect of the present invention, a kind of system of selection of dns server is provided, comprising: determine N dns server of pending selection, wherein, N is more than or equal to 2 natural number; To described N dns server, send domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request; Connect the described IP address that a described N dns server parses, and obtain the IP response time that connects described IP address; Length according to dns server described in each to the response time of domain name analysis request, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
Alternatively, before N dns server of described definite pending selection, also comprise the validity of the dns server of surveying current use.
Alternatively, the validity of the dns server of the current use of described detection comprises: cleaning DNS buffer memory; The detection domain name of setting to the dns server request analysis of described current use; If asked unsuccessfully, determine that the dns server of current use is invalid, the dns server of current use is revised as to legal dns server; If asked successfully, in comparison of request result, whether there is the preset characters string of described default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
Alternatively, before N dns server of described definite pending selection, also comprise: Sampling network connection status, network connect configuration, internet security setting and network speed; According to testing result, provide respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And, according to the response for operation indicating, network state is repaired.
Alternatively, before N dns server of described definite pending selection, also comprise: call Network anomaly detection kit and receive Network anomaly detection order, wherein, in described Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, described a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program; According to described Network anomaly detection order, according to a plurality of Network anomaly detection programs described in setting rule invocation, carry out abnormal network of network abnormality detection; According to the result of described Network anomaly detection, described abnormal network is repaired.
Alternatively, N dns server of described definite pending selection comprises: by the first-selected dns server of current use, and the standby dns server of current use, and default alternative dns server is defined as N dns server of described pending selection.
Alternatively, the described N from described pending selection dns server selected dns server, the described dns server that use is selected carries out domain name mapping and comprises: if the dns server of described selection is not the first-selected dns server of described current use, the dns server of described selection is set to first-selected dns server, and the first-selected dns server of described current use is set to standby dns server; Described first-selected dns server after use arranges carries out domain name mapping; If the dns server of described selection is the first-selected dns server of described current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of described current use to carry out domain name mapping.
Alternatively, described to described N dns server transmission domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing of the default domain name of carrying in domain name analysis request is comprised: for the default domain name encapsulation DNS Protocol bag carrying in domain name analysis request; To a described N dns server, send described DNS Protocol bag successively, to ask a described N dns server to carry out domain name mapping to the described default domain name of carrying in described DNS Protocol bag; Obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request.
Alternatively, described according to dns server described in each response time to domain name analysis request, with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server to comprise: the second weights that are retrieved as the first weights that described dns server arranges the response time of domain name analysis request and arrange for the described IP response time; Response time according to dns server described in each to domain name analysis request, the IP response time described in corresponding each, described dns server is to the first weights corresponding to the response time of domain name analysis request, with the second weights corresponding to described IP response time, from N dns server of described pending selection, select dns server.
According to another aspect of the present invention, a kind of choice device of domain name system DNS server is also provided, comprising: range of choice determination module, for determining N dns server of pending selection, wherein, N is more than or equal to 2 natural number; The first response time acquisition module, for sending domain name mapping request to described N dns server, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request; The second response time acquisition module, the described IP address parsing for connecting a described N dns server, and obtain the IP response time that connects described IP address; Select module, for length to the response time of domain name analysis request according to dns server described in each, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
Alternatively, also comprise detecting module, before determining N dns server of pending selection at described range of choice determination module, survey the validity of the dns server of current use.
Alternatively, described detecting module comprises: cleaning module, for clearing up DNS buffer memory; Request module, the detection domain name of setting for the dns server request analysis to described current use; Executive Module, if for asking unsuccessfully, determines that the dns server of current use is invalid, and the dns server of current use is revised as to legal dns server; If asked successfully, in comparison of request result, whether there is the preset characters string of described default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
Alternatively, described device also comprises: network detection module, and before determining N dns server of pending selection at described range of choice determination module, Sampling network connection status, network connect configuration, internet security setting and network speed; Operation indicating module, for according to testing result, provides respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And network state is repaired module, for according to the response for operation indicating, for network state, repair.
Alternatively, described device also comprises: calling module, for before described range of choice determination module is determined N dns server of pending selection, call Network anomaly detection kit and receive Network anomaly detection order, wherein, in described Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, described a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program; Network anomaly detection module, for according to described Network anomaly detection order, carries out abnormal network of network abnormality detection according to a plurality of Network anomaly detection programs described in setting rule invocation; Abnormal network restoration module, for repairing described abnormal network according to the result of described Network anomaly detection.
Alternatively, described range of choice determination module is used for the first-selected dns server of current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of pending selection.
Alternatively, described selection module is used for: if the dns server of selecting is not the first-selected dns server of current use, the dns server of selection is set to first-selected dns server, and the first-selected dns server of current use is set to standby dns server; First-selected dns server after use arranges carries out domain name mapping; If the dns server of selecting is the first-selected dns server of current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of current use to carry out domain name mapping.
Alternatively, described the second response time acquisition module comprises following submodule: package module: for the default domain name encapsulation DNS Protocol bag carrying for domain name mapping request; The first request module: send DNS Protocol bag for N dns server to pending selection successively, to ask N dns server of pending selection to carry out domain name mapping to the default domain name of carrying in DNS Protocol bag; The first acquisition module: the response time for N dns server obtaining respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.
Alternatively, described selection module comprises following submodule: weights acquisition module: for being retrieved as dns server to the first weights of the response time setting of domain name mapping request and being the second weights that arrange the described IP response time; Second selects module: for the response time to domain name mapping request according to each dns server, each corresponding IP response time, dns server is to the first weights corresponding to the response time of domain name mapping request, with the second weights corresponding to IP response time, from N dns server of pending selection, select dns server.
According to the system of selection of a kind of dns server of the present invention and device, can choose the dns server of a plurality of pending selections, by obtaining each dns server to the length of the response time of domain name mapping request and the length that is connected the response time of the IP address that dns server parses, from the dns server of a plurality of pending selections, select optimum dns server, this dns server of selecting can carry out follow-up domain name mapping quickly and efficiently.Thus, solved that the dns server that traditional user may exist current use cannot carry out domain name mapping, domain name resolution efficiency is low, and DNS can not access or access specific IP address after being held as a hostage is the problem of false IP address, reach the effect that improves user's domain name resolution efficiency and fail safe.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 is according to the flow chart of steps of the system of selection of a kind of dns server of the embodiment of the present invention one;
Fig. 2 is according to the flow chart of steps of the system of selection of a kind of dns server of the embodiment of the present invention two;
Fig. 3 is according to the flow chart of steps of the system of selection of a kind of dns server of the embodiment of the present invention three;
Fig. 4 obtains the particular flow sheet that dns server is effectively resolved the length of time in embodiment illustrated in fig. 3;
Fig. 5 is according to the structured flowchart of the choice device of a kind of dns server of the embodiment of the present invention four;
Fig. 6 connects the surface chart of the operation indicating of configuration, internet security setting and network speed for network connection state, network in embodiment illustrated in fig. 2.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Embodiment mono-
With reference to Fig. 1, show a kind of flow chart of steps of system of selection of dns server according to an embodiment of the invention, the system of selection of this dns server specifically can comprise the following steps:
Step S101, determines N dns server of pending selection, and wherein, N is more than or equal to 2 natural number.
Step S102, to N dns server transmission domain name mapping request of pending selection, obtains respectively the response time of N dns server to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.
Step S103, connects N the IP address that dns server parses, and obtains the IP response time that connects IP address.
In specific implementation, because certain site has a plurality of servers, different IP address corresponding to server, therefore different dns servers may parse different IP addresses to the domain name of same website, and for user, therefore the different IP address response times are different, need to obtain and the response speed of the IP address that relatively each dns server parses.
Step S104, length according to each dns server to the response time of domain name mapping request, with the length of each IP response time of correspondence, from N dns server of pending selection, select dns server, use the dns server of selecting to carry out domain name mapping.
According to the system of selection of a kind of dns server of the present invention and device, can choose the dns server of a plurality of pending selections, by obtaining each dns server to the length of the response time of domain name mapping request and the length that is connected the response time of the IP address that dns server parses, from the dns server of a plurality of pending selections, select optimum dns server, this dns server of selecting can carry out follow-up domain name mapping quickly and efficiently.Thus, solved that the dns server that traditional user may exist current use cannot carry out domain name mapping, domain name resolution efficiency is low, and DNS can not access or access specific IP address after being held as a hostage is the problem of false IP address, reach the effect that improves user's domain name resolution efficiency and fail safe.
Embodiment bis-
With reference to Fig. 2, show a kind of flow chart of steps of system of selection of dns server according to an embodiment of the invention, the system of selection of this dns server specifically can comprise the following steps:
Step S201, network detects and repairs.
In specific implementation, the detection of step S201 network and reparation can comprise one or more in following three kinds of modes:
Mode 1: the validity of the dns server of the current use of detection and repair.
The dns server of the current use of user comprises first-selected dns server and standby dns server, and wherein standby server can be set to differently from preferred server, identical, or will not arrange.Once first-selected dns server loses efficacy, cannot carry out domain name mapping, and can carry out domain name mapping by standby dns server.
In specific implementation, the validity of surveying the DNS service of current use is whether first-selection and the standby dns server of the current use of detecting user exists DNS to kidnap phenomenon, or all loses efficacy, and can comprise following sub-step:
Sub-step S21, cleaning DNS buffer memory.
Due to before user, may access some domain names, dns server can be kept in DNS buffer memory the IP address resolution result of these domain names, when user accesses these domain names again, in order to raise the efficiency, the IP address resolution result in DNS buffer memory can be directly read, and parsing needn't be re-started.For example user is for the first time during request access www.so.com, this chance of user sends request to its set dns server, it is 182.118.31.240 that dns server obtains according to request analysis the IP address that www.so.com is corresponding, and this analysis result can be saved in the DNS buffer memory of user's the machine.When user is again during request access www.so.com, can first from DNS buffer memory, search the analysis result whether existing this domain name, if find to exist analysis result 182.118.31.240, directly read this result, needn't to dns server, send request again, and in fact likely the set dns server of user lost efficacy.Therefore, whether effective for the dns server of the current use of detecting user, need to first clear up DNS buffer memory.
Sub-step S22, the detection domain name of setting to the dns server request analysis of current use.
In specific implementation, in the situation that network is unimpeded, first need default one or more to survey domain name, in order to ensure the stability of surveying, conventionally choose more stable website, as www.baidu.com, hao.360.cn, www.sina.com etc., then can choose one of them dns server of surveying the current use of domain name request and resolve.
Sub-step S23, judges whether to ask successfully.
If asked unsuccessfully, determine that the dns server of current use is invalid, the dns server of current use is revised as to legal dns server; If asked successfully, in comparison of request result, whether there is the preset characters string of default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
In the situation that network is unimpeded, if user asks failure, illustrate that the dns server of the current use of user and standby dns server all have problem and cannot be resolved to specific IP, in order normally to resolve domain name, need to reselect and set dns server.In this step, can set in advance legal dns server white list list, wherein store legal dns server, legal dns server is such as being 360DNS server, 114DNS server, google dns server or open dns server etc.The legal dns server white list list that this sets in advance can be pre-stored in client database, also can be from the server of website (for example: cloud security server) download.
If user asks successfully, a kind of situation likely occurring is, user's dns server arranges by trojan horse and distorts the dns server into malice, normal domain name may be resolved to fishing website or be subject on main frame that hacker controls, make user by defraudation or the privacy that is stolen, have a strong impact on fail safe, therefore need further to judge whether user's DNS is held as a hostage.
In specific implementation, for judging whether user's DNS is held as a hostage, can extract the preset characters string of surveying in domain name, then relatively in analysis result, whether there is the preset characters string of surveying domain name, wherein, preset characters string is special, the exclusive information in website, as copyright information, the number of putting on record information etc.
Mode 2: network state detection and reparation
In specific implementation, can comprise following sub-step:
Sub-step S71: the network connection state of detection computations machine, network connect configuration, internet security setting and network speed.
Network connection state can comprise with lower at least one: netting twine connect whether abnormal, whether network interface card operating state abnormal.Whether abnormal for network interface card operating state, can enumerate the whole network interface cards in computer, and attempt to find the network interface card of current networking in computer, if cannot find networking network interface card, can think the disabled or NIC driver of network interface card existing problems, network interface card operating state is abnormal; And if can normally find networking network interface card, can think that network interface card operating state is normal.Whether for netting twine, connect extremely, the standard detection control code that can provide by NIC driver, detects the hardware state of network interface card, to judge whether netting twine is plugged, whether netting twine connects extremely, and this information can be understood as by system interface and obtains.
Network connects configuration and at least can comprise with lower at least one: whether IP address configuration abnormal, DynamicHost arranges whether agreement (DHCP) configuration abnormal, whether DNS configuration abnormal, whether Hosts configuration abnormal, whether browser exists agency, web page access whether extremely, whether hierarchical service provide program (LSP) abnormal.
Wherein, whether abnormal for DNS configuration, can from conventional network address, choose at random a network address, detect and whether can carry out domain name mapping to it.If can carry out domain name mapping, can think that DNS configuration is normal; And if cannot carry out domain name mapping, can think that DNS configuration exists abnormal.
Sub-step S72: according to testing result, provide respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network.
For example,, if DNS arrangement abnormalities can provide following operation indicating: " find DNS service existing problems, need to repair ", in specific implementation, prompting interface can be referring to Fig. 6.
Sub-step S73: according to the response for operation indicating, network state is repaired.
For example, if DNS arrangement abnormalities detected, and user is for the operation indicating of " finding DNS service existing problems; need to repair ", selected to repair, can first remove the Cache of DNS, then carried out domain name mapping inspection, if or can not resolve, can check registration table HKEY_LOCAL_MACHINE SYSTEM
CurrentControlSet Services Tcpip Parameters Interfaces in Adapter Name, and whether EnableDHCP is 1, if 1 is obtained DNS again, if not 1 is set to static DNS (114.114.114.114,8.8.8.8), to complete reparation.
Mode 3: Network anomaly detection and reparation
In specific implementation, can comprise following sub-step:
Sub-step S81: call Network anomaly detection kit and receive Network anomaly detection order.
Wherein, in Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, the plurality of Network anomaly detection program comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program.Certainly be not limited to this, in actual applications, those skilled in the art can also be according to actual needs by other Network anomaly detection integration procedure in Network anomaly detection kit.
Network hardware trace routine, network service trace routine and browser configuration detection program are according to the sorted program of abnormal network cause, and each program may be an independently program, also may wherein also comprise a plurality of subprograms.For example, network hardware trace routine comprises that Sampling network connects the whether normal program of the hardware using and/or the whether correct program of Sampling network attribute configuration; Network service trace routine comprise detect DHCP(Dynamic Host Configuration Protocol, DHCP) the whether normal program of service and/or detect the whether normal program of DNS service and/or detect the whether normal program of hosted file configuration; Browser configuration detection program comprises whether normally whether detect browser uses the program of proxy server and/or detect the whether normal program of browser FLASH plug-in unit and/or detect the browser program of accessed web page; The first repair procedure be LSP repair procedure for detection of and repair the Network Abnormal that LSP protocol anomaly causes, the second repair procedure is that powerful repair procedure connects by network the Network Abnormal reparation that returns to initial condition for carrying out.Certainly, in actual applications, those skilled in the art can reduce the subprogram in said procedure according to actual needs, or increase the program that other needs.
Network anomaly detection kit can be arranged on client, when network occurs when abnormal, can Network Abnormal automatically be detected by Network anomaly detection kit, and then generating network abnormality detection order receiving; Also can be that system detects Network Abnormal, to Network anomaly detection kit, send Network anomaly detection order; Can also be that user inputs Network anomaly detection order, as clicked detection button in Network anomaly detection kit etc.
Sub-step S82: Network anomaly detection kit, according to Network anomaly detection order, carries out abnormal network of network abnormality detection according to setting a plurality of Network anomaly detection programs of rule invocation.
Wherein, setting rule can suitably be arranged according to actual conditions by those skilled in the art, for example, calls successively a plurality of Network anomaly detection programs of integration according to integration order; Or, by receiving the corresponding Network anomaly detection program of instruction calls of user's input; Or, according to the information of the transmit leg of Network anomaly detection order, calling corresponding Network anomaly detection program etc., the present invention is not restricted this.
Sub-step S83: Network anomaly detection kit is repaired abnormal network according to the result of Network anomaly detection.
After detecting abnormal network cause, Network anomaly detection kit carries out corresponding Network Abnormal reparation for abnormal cause, for example detect the whether normal program of DNS service for checking whether DNS service works, adopt at random and choose the mode whether an inspection can carry out domain name mapping from conventional several network address, DNS is served to the Cache that DNS can be first removed in abnormal reparation, carry out again domain name mapping inspection, if or can not resolve, check HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Tcpip Parameters Interfaces Adapter Name, whether EnableDHCP is 1, if 1 is obtained DNS again, if not 1 can be set to static DNS (114.114.114.114, 8.8.8.8).
Step S202, determines N dns server of pending selection, and wherein, N is more than or equal to 2 natural number.
In specific implementation, can be by the first-selected dns server of above-mentioned current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of pending selection.Wherein, default alternative dns server is set to comparatively stable main flow dns server, for example national general dns server 114.114.114.114,114.114.115.115, dns server 8.8.8.8, the 8.8.8.4 etc. of large-scale company, default alternative dns server may comprise the first-selected dns server of current use and the standby dns server of current use.
Step S203, N the dns server to pending selection sends domain name mapping request, the response time t1 of N the dns server that obtains respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.
In specific implementation, can comprise following sub-step:
Sub-step S31, for the default domain name encapsulation DNS Protocol bag carrying in domain name mapping request.
Wherein, default domain name can be one or more, and each default domain name is packaged into separately to a DNS Protocol bag.
Sub-step S32, sends the DNS Protocol bag of all encapsulation, successively to ask N dns server of pending selection to carry out domain name mapping to the default domain name of carrying in DNS Protocol bag to N dns server of pending selection.
Sub-step S33, the response time t1 of N the dns server that obtains respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.Wherein, the time of response time t1 for receive dns server analysis result to user from user sends DNS Protocol bag.
Step S204, connects the IP address that N dns server of pending selection parses, and obtains the IP response time t2 that connects IP address.
N the dns server analysis result for more pending selection, can connect respectively the IP address that each dns server parses, and obtains the IP response time t2 of each IP address.For example, user can send Ping bag to the IP address parsing, calculate response time t2 corresponding to this IP address, particularly, be to utilize ICMP agreement, to IP server, send and inquire about and add up IP server response time, calculate transmitting time and the difference of response time).
Step S205, length according to the dns server of each pending selection to the response time of domain name mapping request, with the length of each IP response time of correspondence, from N dns server of pending selection, select dns server, use the dns server of selecting to carry out domain name mapping.
In specific implementation, can comprise following sub-step:
Sub-step S41, the second weight w 2 that is retrieved as the first weight w 1 that dns server arranges response time of domain name mapping request and arranges for the IP response time, wherein w1 and w2 can be rule of thumb or result or the Simulation results of repeatedly testing arrange.
Sub-step S42, length according to each dns server to the response time t1 of domain name mapping request, the length of each corresponding IP response time t2, dns server is to the first weight w 1 corresponding to the response time of domain name mapping request, with the second weight w 2 corresponding to IP response time, from N dns server of pending selection, select dns server.
For example, can establish effective parsing time t=w1*t1+w2*t2 of dns server, by calculating the length of effective parsing time t of the dns server of each pending selection, from N dns server of pending selection, select the shortest dns server of effective parsing time t.
Sub-step S43, is used the dns server of selecting to carry out domain name mapping.
Particularly, if the dns server of selecting is not the first-selected dns server of current use, the dns server of selection is set to first-selected dns server, and the first-selected dns server of current use is set to standby dns server, uses the first-selected dns server after arranging to carry out domain name mapping; If the dns server of selecting is the first-selected dns server of current use, do not change the setting of first-selected dns server and standby dns server, use the first-selected dns server of current use to carry out domain name mapping.
In the present embodiment, first, owing to having increased network, detect and repair, guaranteed that the dns server of the current use of user is legal effectively, and network communication is normal, thus each step that the dns server after can carrying out is smoothly selected; Secondly, because N dns server of pending selection not only comprises, the dns server of the current use of user also comprise default comparatively stable main flow dns server, guaranteed the reliability of the dns server of final selection; Again, due to when selecting to carry out the dns server of domain name mapping, can to the response time of domain name mapping request and IP response time, weights be set to dns server, be conducive to select optimum dns server.
Embodiment tri-
With reference to Fig. 3, show a kind of flow chart of steps of system of selection of dns server according to an embodiment of the invention, the system of selection of this dns server specifically can comprise the following steps:
Step S301, surveys the validity of the dns server of current use.
Particularly, comprise following sub-step:
Sub-step S51, cleaning DNS buffer memory.
Sub-step S52, default www.hao.360.cn and www.so.com are detection domain name, and ask http://www.so.com.
Sub-step S53, determines that according to request results whether the dns server of current use is effective, and carries out respective handling.
Comprise:
If asked unsuccessfully, first-selection and the standby dns server of determining current use are all invalid, the dns server of current use is revised as to legal dns server, for example, the first-selected dns server of current use is revised as to 114.114.114.114, and the standby dns server of current use is revised as 221.3.131.9.
If asked successfully, due in asked webpage, comprise copyright information " 360.CN " character string, can compare the copyright information that whether comprises asked webpage in request results "
Figure BDA0000398317700000142
360.CN " character string, if there is not this character string in request results, DNS is probably held as a hostage, and the dns server of current use is revised as to legal dns server; If there is this character string in request results, determine that the dns server of current use is effective.
Step S302, by the first-selected dns server of the current use of user's the machine, the standby dns server of current use, and five default alternative dns servers are defined as the dns server of pending selection.
Particularly, default five alternative dns server 114.114.114.114,8.8.8.8,208.67.222.222,202.108.22.5,61.172.240.42, and read user's first-selected dns server and standby dns server, using these dns servers jointly as the dns server of pending selection.
The first-selected dns server of supposing to read the current use of user's the machine is 114.114.114.114, standby dns server is 221.3.131.9,221.3.131.9,114.114.114.114,8.8.8.8,208.67.222.222,202.108.22.5, six dns servers of 61.172.240.42 is defined as to the dns server of pending selection.
Step S303, default three domain name www.hao.360.cn, www.so.com, www.163.com are domain name to be resolved, and respectively these three domain names are packaged into three DNS Protocol bags based on DNS Protocol.
Step S304, six dns servers to pending selection send domain name mapping request, obtain respectively the response time t1 of six dns servers to three default domain name mapping requests, and the IP address that three default domain name mappings are gone out, and IP address corresponding to three default domain names that parse to six dns servers respectively sends Ping bag, obtain the IP response time t2 of each IP address, thereby utilize t1 and t2 to calculate the length of effective parsing time t of each dns server.
For more clearly understanding this step, the present embodiment is used flow chart further at length to explain to this step.This step is obtained idiographic flow that dns server effectively resolves the time as shown in Figure 4.
With reference to Fig. 4, show step S304 and obtain the idiographic flow that dns server is effectively resolved the length of time, comprise following sub-step:
Sub-step S61, judges whether the dns server of six pending selections all completes domain name mapping, if not, carries out sub-step S62; If so, perform step S305.
Sub-step S62, judges whether the dns server of six pending selections does not complete the parsing to three default domain names one by one, if certain dns server does not complete, the dns server that does not complete parsing for each is carried out respectively sub-step S63; If certain dns server completes, the dns server that has completed parsing for each is carried out respectively sub-step S66.
Sub-step S63, the dns server that each is not completed to parsing, chooses DNS Protocol bag corresponding to a default domain name that this dns server do not resolve and sends to this dns server.
Sub-step S64, completes the parsing of default domain name and returns after analysis result until current dns server, obtains the IP address that current dns server parses, and calculates the length of current dns server to the response time t1 of domain name mapping request.
Sub-step S65, the IP address parsing to current dns server sends Ping bag, calculates the length of the IP response time t2 of this IP address, and returns and carry out sub-step S62.
Sub-step S66, each has been completed to the dns server of parsing, length according to current dns server to each IP response time t2 of the length of the response time t1 of three default domain name mapping requests and correspondence, ask for the length of effective parsing time t of current dns server, and return and carry out sub-step S61.
Particularly, first obtain the first weight w 1=0.5 of default dns server to the response time of domain name mapping request, the second weight w 2=0.5 of IP response time, determines that the computing formula of effective parsing time t is: t=0.5*t1+0.5*t2.Then calculate six pending selections dns server effectively resolve separately the length of time t.
Suppose to calculate six dns servers as follows to the length of the response time t1 of three default domain name mapping requests:
Figure BDA0000398317700000161
The length of supposing the IP response time t2 that calculates is as follows:
According to above-mentioned supposed data, as follows to the length result of calculation of effective parsing time t of each dns server:
Dns server Effective parsing time t
221.3.131.9 4.5s
114.114.114.114 4.0s
8.8.8.8 3.5s
208.67.222.222 4.0s
202.108.22.5 4.5s
61.172.240.42 4.5s
Step S305, selects dns server, uses the dns server of selecting to carry out domain name mapping.
According to above-mentioned supposed data, the effective parsing time t that calculates dns server 8.8.8.8 is the shortest, and this dns server is set to the first-selected dns server of user's the machine, and uses this dns server to carry out domain name mapping; The former first-selected dns server 114.114.114.114 of user's the machine is set to standby dns server.
Pass through the present embodiment, on the basis of dns server validity of determining the current use of user, having realized the optimization of dns server chooses, avoided in existing a lot of situation, the dns server that user's the machine is used is not optimum, thereby cause guaranteeing that the service that dns server provides is reliable, safety, situation that efficiency is high, reached assurance dns server effectively, reliable, safety, high efficiency effect.
Embodiment tetra-
With reference to Fig. 5, show a kind of structured flowchart of choice device of dns server according to an embodiment of the invention, the choice device of this dns server specifically can comprise with lower module:
Range of choice determination module 401, for determining N dns server of pending selection, wherein, N is more than or equal to 2 natural number;
The first response time acquisition module 402, for N the dns server to pending selection, send domain name mapping request, the response time of N the dns server that obtains respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request;
The second response time acquisition module 403, the IP address parsing for connecting N dns server of pending selection, and obtain the IP response time that connects IP address;
Select module 404, for the length to the response time of domain name mapping request according to the dns server of each pending selection, length with each IP response time of correspondence, from N dns server of pending selection, select dns server, use the dns server of selecting to carry out domain name mapping.
Further, in a preferred embodiment of the present invention, also comprise that network detects and repairs module, in specific implementation, the submodule of network detection and reparation module can comprise one or more in following three kinds of modes:
Mode 1:
Detecting module, for determine N dns server of pending selection at range of choice determination module before, surveys the validity of the dns server of current use, and detecting module also comprises following submodule:
Cleaning module, for clearing up DNS buffer memory;
Request module, the detection domain name of setting for the dns server request analysis to current use;
Executive Module, if for asking unsuccessfully, determines that the dns server of current use is invalid, and the dns server of current use is revised as to legal dns server; If asked successfully, in comparison of request result, whether there is the preset characters string of default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
Mode 2:
Network detection module, for determine N dns server of pending selection at range of choice determination module before, Sampling network connection status, network connect configuration, internet security setting and network speed;
Operation indicating module, for according to testing result, provides respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And,
Network state is repaired module, for according to the response for operation indicating, network state is repaired.
Mode 3:
Calling module, for before range of choice determination module is determined N dns server of pending selection, call Network anomaly detection kit and receive Network anomaly detection order, wherein, in Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program;
Network anomaly detection module, for according to Network anomaly detection order, carries out abnormal network of network abnormality detection according to setting a plurality of Network anomaly detection programs of rule invocation;
Abnormal network restoration module, for repairing abnormal network according to the result of Network anomaly detection.
Further, in a preferred embodiment of the present invention, the second response time acquisition module comprises following submodule:
Package module: for the default domain name encapsulation DNS Protocol bag carrying for domain name mapping request;
The first request module: send DNS Protocol bag for N dns server to pending selection successively, to ask N dns server of pending selection to carry out domain name mapping to the default domain name of carrying in DNS Protocol bag;
The first acquisition module: the response time for N dns server obtaining respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.
Further, in a preferred embodiment of the present invention, select module to comprise following submodule:
Weights acquisition module: for being retrieved as dns server to the first weights of the response time setting of domain name mapping request and being the second weights that arrange the described IP response time;
Second selects module: for the response time to domain name mapping request according to each dns server, each corresponding IP response time, dns server is to the first weights corresponding to the response time of domain name mapping request, with the second weights corresponding to IP response time, from N dns server of pending selection, select dns server.
Further, in a preferred embodiment of the present invention, range of choice determination module 401, for by the first-selected dns server of current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of pending selection.
Further, in a preferred embodiment of the present invention, select module 404 to select dns server the dns server of the N from pending selection, when the dns server that use is selected carries out domain name mapping: if the dns server of selecting is not the first-selected dns server of current use, the dns server of selection is set to first-selected dns server, and the first-selected dns server of current use is set to standby dns server; First-selected dns server after use arranges carries out domain name mapping; If the dns server of selecting is the first-selected dns server of current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of current use to carry out domain name mapping.
For the device embodiment of Fig. 5, because it is substantially similar to above-mentioned embodiment of the method, and there is the beneficial effect of corresponding embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
The dns server selection scheme providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment.Various general-purpose systems also can with based on using together with this teaching.According to description above, the desired structure of system that structure has the present invention program is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the dns server selection scheme of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The invention discloses the system of selection of A1, a kind of domain name system DNS server, comprising:
Determine N dns server of pending selection, wherein, N is more than or equal to 2 natural number;
To described N dns server, send domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request;
Connect the described IP address that a described N dns server parses, and obtain the IP response time that connects described IP address;
Length according to dns server described in each to the response time of domain name analysis request, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
A2, the method as described in claim A1, before N dns server of described definite pending selection, also comprise the validity of the dns server of surveying current use.
A3, the method as described in claim A2, the validity of the dns server of the current use of described detection comprises:
Cleaning DNS buffer memory;
The detection domain name of setting to the dns server request analysis of described current use;
If asked unsuccessfully, determine that the dns server of current use is invalid, the dns server of current use is revised as to legal dns server;
If asked successfully, in comparison of request result, whether there is the preset characters string of described default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
A4, the method as described in claim A1, before N dns server of described definite pending selection, also comprise:
Sampling network connection status, network connect configuration, internet security setting and network speed;
According to testing result, provide respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And,
According to the response for operation indicating, network state is repaired.
A5, the method as described in claim A1, before N dns server of described definite pending selection, also comprise:
Call Network anomaly detection kit and receive Network anomaly detection order, wherein, in described Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, described a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program;
According to described Network anomaly detection order, according to a plurality of Network anomaly detection programs described in setting rule invocation, carry out abnormal network of network abnormality detection;
According to the result of described Network anomaly detection, described abnormal network is repaired.
A6, the method as described in claim A1 to A5 any one, N dns server of described definite pending selection comprises:
By the first-selected dns server of current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of described pending selection.
A7, the method as described in claim A6, the described N from described pending selection dns server selected dns server, uses the described dns server of selecting to carry out domain name mapping and comprises:
If the dns server of described selection is not the first-selected dns server of described current use, the dns server of described selection is set to first-selected dns server, and the first-selected dns server of described current use is set to standby dns server; Described first-selected dns server after use arranges carries out domain name mapping;
If the dns server of described selection is the first-selected dns server of described current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of described current use to carry out domain name mapping.
A8, the method as described in claim A1 to A5 any one, described to described N dns server transmission domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing of the default domain name of carrying in domain name analysis request comprised:
For the default domain name encapsulation DNS Protocol bag carrying in domain name analysis request;
To a described N dns server, send described DNS Protocol bag successively, to ask a described N dns server to carry out domain name mapping to the described default domain name of carrying in described DNS Protocol bag;
Obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request.
A9, the method as described in claim A1 to A5 any one, described according to dns server described in each response time to domain name analysis request, with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server to comprise:
The second weights that are retrieved as the first weights that described dns server arranges response time of domain name analysis request and arrange for the described IP response time;
Response time according to dns server described in each to domain name analysis request, the IP response time described in corresponding each, described dns server is to the first weights corresponding to the response time of domain name analysis request, with the second weights corresponding to described IP response time, from N dns server of described pending selection, select dns server.
The choice device that the invention also discloses B10, a kind of domain name system DNS server, comprising:
Range of choice determination module, for determining N dns server of pending selection, wherein, N is more than or equal to 2 natural number;
The first response time acquisition module, for sending domain name mapping request to described N dns server, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request;
The second response time acquisition module, the described IP address parsing for connecting a described N dns server, and obtain the IP response time that connects described IP address;
Select module, for length to the response time of domain name analysis request according to dns server described in each, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
B11, the device as described in claim B10, described device also comprises detecting module, before determining N dns server of pending selection at described range of choice determination module, surveys the validity of the dns server of current use.
B12, the device as described in claim B11, described detecting module comprises:
Cleaning module, for clearing up DNS buffer memory;
Request module, the detection domain name of setting for the dns server request analysis to described current use;
Executive Module, if for asking unsuccessfully, determines that the dns server of current use is invalid, and the dns server of current use is revised as to legal dns server; If asked successfully, in comparison of request result, whether there is the preset characters string of described default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
B13, the device as described in claim B11, also comprise:
Network detection module, before determining N dns server of pending selection at described range of choice determination module, Sampling network connection status, network connect configuration, internet security setting and network speed;
Operation indicating module, for according to testing result, provides respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And,
Network state is repaired module, for according to the response for operation indicating, for network state, repairs.
B14, the device as described in claim B11, also comprise:
Calling module, for before described range of choice determination module is determined N dns server of pending selection, call Network anomaly detection kit and receive Network anomaly detection order, wherein, in described Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, described a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program;
Network anomaly detection module, for according to described Network anomaly detection order, carries out abnormal network of network abnormality detection according to a plurality of Network anomaly detection programs described in setting rule invocation;
Abnormal network restoration module, for repairing described abnormal network according to the result of described Network anomaly detection.
B15, the device as described in claim B11-B14 any one, described range of choice determination module is used for the first-selected dns server of current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of pending selection.
B16, the device as described in claim B15, described selection module is used for: if the dns server of selecting is not the first-selected dns server of current use, the dns server of selection is set to first-selected dns server, and the first-selected dns server of current use is set to standby dns server; First-selected dns server after use arranges carries out domain name mapping;
If the dns server of selecting is the first-selected dns server of current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of current use to carry out domain name mapping.
B17, the device as described in claim B11-B14 any one, described the second response time acquisition module comprises following submodule:
Package module: for the default domain name encapsulation DNS Protocol bag carrying for domain name mapping request;
The first request module: send DNS Protocol bag for N dns server to pending selection successively, to ask N dns server of pending selection to carry out domain name mapping to the default domain name of carrying in DNS Protocol bag;
The first acquisition module: the response time for N dns server obtaining respectively pending selection to domain name mapping request, and the IP address parsing to the default domain name of carrying in domain name mapping request.
B18, the device as described in claim B11-B14 any one, described selection module comprises following submodule:
Weights acquisition module: for being retrieved as dns server to the first weights of the response time setting of domain name mapping request and being the second weights that arrange the described IP response time;
Second selects module: for the response time to domain name mapping request according to each dns server, each corresponding IP response time, dns server is to the first weights corresponding to the response time of domain name mapping request, with the second weights corresponding to IP response time, from N dns server of pending selection, select dns server.

Claims (10)

1. a system of selection for domain name system DNS server, comprising:
Determine N dns server of pending selection, wherein, N is more than or equal to 2 natural number;
To described N dns server, send domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request;
Connect the described IP address that a described N dns server parses, and obtain the IP response time that connects described IP address;
Length according to dns server described in each to the response time of domain name analysis request, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
2. the method for claim 1, wherein before described N dns server determining pending selection, also comprise the validity of the dns server of surveying current use.
3. method as claimed in claim 2, wherein, the validity of the dns server of the current use of described detection comprises:
Cleaning DNS buffer memory;
The detection domain name of setting to the dns server request analysis of described current use;
If asked unsuccessfully, determine that the dns server of current use is invalid, the dns server of current use is revised as to legal dns server;
If asked successfully, in comparison of request result, whether there is the preset characters string of described default domain name, if do not exist, determine that the dns server of current use is held as a hostage, the dns server of current use is revised as to legal dns server.
4. the method for claim 1, wherein before described N dns server determining pending selection, also comprise:
Sampling network connection status, network connect configuration, internet security setting and network speed;
According to testing result, provide respectively the operation indicating that connects configuration, internet security setting and network speed for network connection state, network; And,
According to the response for operation indicating, network state is repaired.
5. the method for claim 1, wherein before described N dns server determining pending selection, also comprise:
Call Network anomaly detection kit and receive Network anomaly detection order, wherein, in described Network anomaly detection kit, be integrated with a plurality of Network anomaly detection programs, described a plurality of Network anomaly detection programs comprise following one of at least: network hardware trace routine, network service trace routine and browser configuration detection program;
According to described Network anomaly detection order, according to a plurality of Network anomaly detection programs described in setting rule invocation, carry out abnormal network of network abnormality detection;
According to the result of described Network anomaly detection, described abnormal network is repaired.
6. the method as described in claim 1 to 5 any one, wherein, describedly determine that N dns server of pending selection comprises:
By the first-selected dns server of current use, the standby dns server of current use, and default alternative dns server is defined as N dns server of described pending selection.
7. method as claimed in claim 6, wherein, the described N from described pending selection dns server selected dns server, uses the described dns server of selecting to carry out domain name mapping and comprises:
If the dns server of described selection is not the first-selected dns server of described current use, the dns server of described selection is set to first-selected dns server, and the first-selected dns server of described current use is set to standby dns server; Described first-selected dns server after use arranges carries out domain name mapping;
If the dns server of described selection is the first-selected dns server of described current use, do not change the setting of first-selected dns server and standby dns server; Use the first-selected dns server of described current use to carry out domain name mapping.
8. the method as described in claim 1 to 5 any one, wherein, described to described N dns server transmission domain name mapping request, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing of the default domain name of carrying in domain name analysis request comprised:
For the default domain name encapsulation DNS Protocol bag carrying in domain name analysis request;
To a described N dns server, send described DNS Protocol bag successively, to ask a described N dns server to carry out domain name mapping to the described default domain name of carrying in described DNS Protocol bag;
Obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request.
9. the method as described in claim 1 to 5 any one, wherein, described according to dns server described in each response time to domain name analysis request, and IP response time described in corresponding each, from N dns server of described pending selection, select dns server to comprise:
The second weights that are retrieved as the first weights that described dns server arranges response time of domain name analysis request and arrange for the described IP response time;
Response time according to dns server described in each to domain name analysis request, the IP response time described in corresponding each, described dns server is to the first weights corresponding to the response time of domain name analysis request, with the second weights corresponding to described IP response time, from N dns server of described pending selection, select dns server.
10. a choice device for domain name system DNS server, comprising:
Range of choice determination module, for determining N dns server of pending selection, wherein, N is more than or equal to 2 natural number;
The first response time acquisition module, for sending domain name mapping request to described N dns server, obtain respectively the response time of a described N dns server to domain name analysis request, and the IP address parsing to the default domain name of carrying in domain name analysis request;
The second response time acquisition module, the described IP address parsing for connecting a described N dns server, and obtain the IP response time that connects described IP address;
Select module, for length to the response time of domain name analysis request according to dns server described in each, length with the IP response time described in each of correspondence, from N dns server of described pending selection, select dns server, use the described dns server of selecting to carry out domain name mapping.
CN201310493322.XA 2013-10-18 2013-10-18 Method and device for choosing DNS (domain name server) Pending CN103546590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310493322.XA CN103546590A (en) 2013-10-18 2013-10-18 Method and device for choosing DNS (domain name server)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310493322.XA CN103546590A (en) 2013-10-18 2013-10-18 Method and device for choosing DNS (domain name server)

Publications (1)

Publication Number Publication Date
CN103546590A true CN103546590A (en) 2014-01-29

Family

ID=49969629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310493322.XA Pending CN103546590A (en) 2013-10-18 2013-10-18 Method and device for choosing DNS (domain name server)

Country Status (1)

Country Link
CN (1) CN103546590A (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973835A (en) * 2014-05-16 2014-08-06 北京金山网络科技有限公司 Domain name system server selection method and device
CN104301171A (en) * 2014-09-11 2015-01-21 赛尔网络有限公司 Network performance measuring method and system based on DNS authoritative server
CN105141712A (en) * 2015-08-24 2015-12-09 深圳市宏电技术股份有限公司 Method and device for resolving domain name resolution offline
CN105592173A (en) * 2014-10-23 2016-05-18 中国移动通信集团公司 Method and system for preventing DNS (Domain Name System) cache from being stained and local DNS server
CN105897836A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Back source request processing method and device
CN106027695A (en) * 2016-07-13 2016-10-12 成都知道创宇信息技术有限公司 Method for acquiring IP (Internet Protocol) used by recursive DNS (Domain Name System)
CN106302384A (en) * 2016-07-25 2017-01-04 中国联合网络通信集团有限公司 DNS message processing method and device
CN106603464A (en) * 2015-10-14 2017-04-26 北京国双科技有限公司 Network detection method, system and device
CN106790766A (en) * 2017-02-17 2017-05-31 郑州云海信息技术有限公司 A kind of dns server intelligent configuration method for client
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability
CN107736003A (en) * 2015-06-18 2018-02-23 微软技术许可有限责任公司 For the improved safety of domain name
CN108040124A (en) * 2017-12-27 2018-05-15 北京奇安信科技有限公司 The method and device of control mobile terminal application based on DNS-Over-HTTP agreements
WO2018113731A1 (en) * 2016-12-21 2018-06-28 北京奇虎科技有限公司 Method and device for reducing risk of dns hijacking
CN108769286A (en) * 2018-05-25 2018-11-06 Oppo(重庆)智能科技有限公司 Dns server configuration method and related product
CN108924012A (en) * 2018-08-24 2018-11-30 赛尔网络有限公司 Method, equipment, system and the medium of IPv6 name server liveness detection
CN108933693A (en) * 2017-05-26 2018-12-04 贵州白山云科技有限公司 A kind of Domain Name Service System fault handling method and system
CN109246227A (en) * 2018-09-26 2019-01-18 北京达佳互联信息技术有限公司 A kind of data request method, device, terminal device and storage medium
CN109660411A (en) * 2019-02-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method and device of optimization instant messaging network link connection
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN111193815A (en) * 2019-12-24 2020-05-22 腾讯科技(深圳)有限公司 Domain name resolution method, domain name resolution device, computer readable storage medium and computer equipment
CN111726428A (en) * 2020-06-12 2020-09-29 网宿科技股份有限公司 Method, device, equipment and storage medium for selecting authoritative server
CN111935029A (en) * 2020-09-18 2020-11-13 腾讯科技(深圳)有限公司 Gateway load balancing method and device, storage medium and electronic equipment
CN112583946A (en) * 2019-09-30 2021-03-30 北京金山云网络技术有限公司 Domain name management method, domain name resolution method and device
CN113891497A (en) * 2021-10-09 2022-01-04 维沃移动通信有限公司 Network repairing method and device
WO2022057662A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Server selection method and apparatus
CN113891497B (en) * 2021-10-09 2024-05-24 维沃移动通信有限公司 Network repair method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025795A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 DNS response message processing method, DNS server and system
CN102035696A (en) * 2010-12-22 2011-04-27 中国工商银行股份有限公司 Website access performance monitoring method, device and system
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name analysis method and domain name analysis server for realizing load balance of wide area network
CN103001801A (en) * 2012-11-30 2013-03-27 北京奇虎科技有限公司 Network repairing method and device
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN103152218A (en) * 2013-01-30 2013-06-12 北京奇虎科技有限公司 Method and device for inspecting and restoring computer network state

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025795A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 DNS response message processing method, DNS server and system
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name analysis method and domain name analysis server for realizing load balance of wide area network
CN102035696A (en) * 2010-12-22 2011-04-27 中国工商银行股份有限公司 Website access performance monitoring method, device and system
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN103001801A (en) * 2012-11-30 2013-03-27 北京奇虎科技有限公司 Network repairing method and device
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN103152218A (en) * 2013-01-30 2013-06-12 北京奇虎科技有限公司 Method and device for inspecting and restoring computer network state

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973835A (en) * 2014-05-16 2014-08-06 北京金山网络科技有限公司 Domain name system server selection method and device
CN104301171A (en) * 2014-09-11 2015-01-21 赛尔网络有限公司 Network performance measuring method and system based on DNS authoritative server
CN104301171B (en) * 2014-09-11 2018-06-26 赛尔网络有限公司 A kind of network for formance measuring method and system based on DNS authority server
CN105592173A (en) * 2014-10-23 2016-05-18 中国移动通信集团公司 Method and system for preventing DNS (Domain Name System) cache from being stained and local DNS server
CN105592173B (en) * 2014-10-23 2019-01-01 中国移动通信集团公司 A kind of method for preventing DNS cache from being contaminated, system and local dns server
CN107736003A (en) * 2015-06-18 2018-02-23 微软技术许可有限责任公司 For the improved safety of domain name
CN107736003B (en) * 2015-06-18 2021-08-20 微软技术许可有限责任公司 Method and apparatus for securing domain names
CN105141712A (en) * 2015-08-24 2015-12-09 深圳市宏电技术股份有限公司 Method and device for resolving domain name resolution offline
CN105141712B (en) * 2015-08-24 2019-01-18 深圳市宏电技术股份有限公司 A kind of offline domain name analytic method and device
CN106603464A (en) * 2015-10-14 2017-04-26 北京国双科技有限公司 Network detection method, system and device
CN105897836A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Back source request processing method and device
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN106856489B (en) * 2015-12-08 2020-09-08 阿里巴巴集团控股有限公司 Service node switching method and device of distributed storage system
CN106027695A (en) * 2016-07-13 2016-10-12 成都知道创宇信息技术有限公司 Method for acquiring IP (Internet Protocol) used by recursive DNS (Domain Name System)
CN106027695B (en) * 2016-07-13 2019-12-06 成都知道创宇信息技术有限公司 Method for obtaining IP used by recursive DNS
CN106302384A (en) * 2016-07-25 2017-01-04 中国联合网络通信集团有限公司 DNS message processing method and device
WO2018113731A1 (en) * 2016-12-21 2018-06-28 北京奇虎科技有限公司 Method and device for reducing risk of dns hijacking
CN106790766A (en) * 2017-02-17 2017-05-31 郑州云海信息技术有限公司 A kind of dns server intelligent configuration method for client
CN108933693B (en) * 2017-05-26 2021-06-22 贵州白山云科技股份有限公司 Domain name service system fault processing method and system
CN108933693A (en) * 2017-05-26 2018-12-04 贵州白山云科技有限公司 A kind of Domain Name Service System fault handling method and system
CN107707420B (en) * 2017-08-04 2021-04-09 郑州云海信息技术有限公司 Method for testing network cable plugging and unplugging stability
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability
CN108040124B (en) * 2017-12-27 2020-11-03 奇安信科技集团股份有限公司 Method and device for controlling mobile terminal application based on DNS-Over-HTTP protocol
CN108040124A (en) * 2017-12-27 2018-05-15 北京奇安信科技有限公司 The method and device of control mobile terminal application based on DNS-Over-HTTP agreements
CN108769286B (en) * 2018-05-25 2021-10-01 Oppo(重庆)智能科技有限公司 DNS server configuration method and related product
CN108769286A (en) * 2018-05-25 2018-11-06 Oppo(重庆)智能科技有限公司 Dns server configuration method and related product
CN108924012A (en) * 2018-08-24 2018-11-30 赛尔网络有限公司 Method, equipment, system and the medium of IPv6 name server liveness detection
CN109246227A (en) * 2018-09-26 2019-01-18 北京达佳互联信息技术有限公司 A kind of data request method, device, terminal device and storage medium
CN109660411A (en) * 2019-02-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method and device of optimization instant messaging network link connection
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN112583946A (en) * 2019-09-30 2021-03-30 北京金山云网络技术有限公司 Domain name management method, domain name resolution method and device
CN111193815A (en) * 2019-12-24 2020-05-22 腾讯科技(深圳)有限公司 Domain name resolution method, domain name resolution device, computer readable storage medium and computer equipment
CN111726428A (en) * 2020-06-12 2020-09-29 网宿科技股份有限公司 Method, device, equipment and storage medium for selecting authoritative server
CN111726428B (en) * 2020-06-12 2023-09-22 网宿科技股份有限公司 Authoritative server selection method, device, equipment and storage medium
WO2022057662A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Server selection method and apparatus
CN111935029A (en) * 2020-09-18 2020-11-13 腾讯科技(深圳)有限公司 Gateway load balancing method and device, storage medium and electronic equipment
CN111935029B (en) * 2020-09-18 2021-06-08 腾讯科技(深圳)有限公司 Gateway load balancing method and device, storage medium and electronic equipment
CN113891497A (en) * 2021-10-09 2022-01-04 维沃移动通信有限公司 Network repairing method and device
CN113891497B (en) * 2021-10-09 2024-05-24 维沃移动通信有限公司 Network repair method and device

Similar Documents

Publication Publication Date Title
CN103546590A (en) Method and device for choosing DNS (domain name server)
CN110830458B (en) Domain name access method, system, device and computer readable storage medium
CN104993953B (en) The method and apparatus for detecting network service state
CN103561120A (en) Method and device for detecting suspicious DNS and method and system for processing suspicious DNS
US8527945B2 (en) Method and system for integrating multiple scripts
CN103944906B (en) A kind of method guided for the HTTP flows of APP on iOS
US20160036845A1 (en) System for detecting the presence of rogue domain name service providers through passive monitoring
CN108989355A (en) A kind of leak detection method and device
CN102833258A (en) Website access method and system
CN106453436A (en) Method and device for detecting network security
CN104468860A (en) Method and device for recognizing risk of domain name resolution server
CN103117893A (en) Monitor method and device of network accessing behaviour and client device
CN105608159A (en) Data caching method and device
CN107689965A (en) Means of defence, the apparatus and system of the network equipment
CN103023905A (en) Device, method and system for detecting spamming links
CN111783096A (en) Method and device for detecting security vulnerability
CN102970282A (en) Website security detection system
CN109657434B (en) Application access method and device
CN106250761B (en) Equipment, device and method for identifying web automation tool
CN104252599A (en) Method and device for detecting cross-site scripting bug
CN112671574B (en) Front-end and back-end joint debugging method and device, proxy equipment and storage medium
CN105262858A (en) Method and device for detecting safety of Domain Name System (DNS) server
CN113422759B (en) Vulnerability scanning method, electronic device and storage medium
CN106657422B (en) Method, device and system for crawling website page and storage medium
CN104579819A (en) Network security detection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Ding Zhen

Inventor after: Liu Haijun

Inventor after: Tan Xiaosheng

Inventor before: Ding Zhen

Inventor before: Liu Haijun

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: DING ZHEN LIU HAIJUN TO: DING ZHEN LIU HAIJUN TAN XIAOSHENG

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140129