CN103685603B - Domain name system resolution and equipment - Google Patents

Domain name system resolution and equipment Download PDF

Info

Publication number
CN103685603B
CN103685603B CN201310703067.7A CN201310703067A CN103685603B CN 103685603 B CN103685603 B CN 103685603B CN 201310703067 A CN201310703067 A CN 201310703067A CN 103685603 B CN103685603 B CN 103685603B
Authority
CN
China
Prior art keywords
network request
domain name
storehouse
name
connection setup
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.)
Active
Application number
CN201310703067.7A
Other languages
Chinese (zh)
Other versions
CN103685603A (en
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.)
Qianxin Technology Group Co Ltd
Original Assignee
Beijing Qianxin Technology 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 Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology Co Ltd
Priority to CN201310703067.7A priority Critical patent/CN103685603B/en
Publication of CN103685603A publication Critical patent/CN103685603A/en
Application granted granted Critical
Publication of CN103685603B publication Critical patent/CN103685603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of domain name system resolution and equipment.Wherein, this method includes:Monitor network request, generation domain name mapping storehouse;Counted for the network request in domain name mapping storehouse, calculate each initiation address to the connection setup time of different name servers, and store into domain name mapping storehouse;When new network request is initiated, the name server most short with the initiation address connection setup time of new network request is searched into domain name mapping storehouse, and new network request is connected on the name server found.It can be reached in the shortest time using the embodiment of the present invention and network request is connected to name server, save user time, improve the beneficial effect of Consumer's Experience.

Description

Domain name system resolution and equipment
Technical field
The present invention relates to the Internet, applications field, more particularly to a kind of domain name system resolution and equipment.
Background technology
With the development of information-intensive society, requirement of the people for the connection speed such as network speed or closing of the circuit speed Improve therewith.The domain name system of intelligence is utilized in the prior art(Domain Name System, hereinafter referred to as DNS)Parsing pair It is attached between the originating end and server of network request.Intelligent DNS is according to the network interconnection agreement of the visitor of domain name (Internet Protocol, hereinafter referred to as IP)Belong to which area or which operator's dynamically distributes most can establish soon The name server of connection.For example, Pekinese user and the user in Guangzhou log in same network address, then parsed according to intelligent DNS, Pekinese user is connected to Pekinese's name server, the user in Guangzhou is connected to the name server in Guangzhou.For another example Intelligent DNS parses the difference according to operator(Such as mobile or telecommunications)The phone of user is connected to the domain name of corresponding operator Server, to ensure connection speed.But the parsing of this intelligent DNS of prior art can not guarantee Client-initiated Network request is connected to can establish the name server being connected with it in shortest time.For example, a certain user is according to intelligent DNS Parsing, its IP address is Pekinese's IP address.But in practice, the user is in the intersection in Beijing and Hebei province, relative to Pekinese's name server, the name server in the user distance Hebei is closer to if the network request to be connected to the domain in Hebei The time that name server needs is shorter.
To sum up, prior art, which can not ensure exactly to be connected to network request, establishes a connection time most short domain name Server, user time is wasted, reduce Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the domain name system resolution of problem and corresponding domain name system analyzing device.
According to one aspect of the present invention, there is provided a kind of domain name system resolution, including:Network request is monitored, it is raw Into domain name mapping storehouse;The network request in storehouse is parsed to domain name to count, and calculates each initiation address to not same area The connection setup time of name server, and store to domain name and parse in storehouse;When new network request is initiated, to domain name Parse and the name server most short with the initiation address connection setup time of the new network request is searched in storehouse, and by described in New network request is connected on the name server found.
Alternatively, the content stored in domain name parsing storehouse updates with the time.
Alternatively, each initiation address is calculated to the connection setup time of different name servers, and is stored to described In domain name mapping storehouse, including:Each initiation address is calculated to the connection setup time of different name servers;According to each connection The duration of settling time is ranked up;Built according to ranking results for the shorter at least one connection of each initiation address choice duration Stored between immediately.
Alternatively, entered according to ranking results for each initiation address choice duration shorter at least one connection setup time Row storage, including:Stored according to ranking results for a most short connection setup time of each initiation address choice duration.
Alternatively, the new network request is connected on the name server found, including:If this connection is lost Lose, according to the ranking results, the initiation address that the new network request is searched in domain name parses storehouse takes to domain name The secondary short connection setup time of business device;The new network request is again connected on the name server of lookup;Repetition is held The row lookup and attended operation, until the new network request successful connection.
Alternatively, domain name system analysis method also includes:If be not present in domain name parsing storehouse with it is described new The record for initiating address matching of network request, according to the geographical location information and/or application network of the new network request Information determines name server;The new network request is connected on the name server of determination.
Alternatively, the application network information includes the application network species divided according to operator.
According to another aspect of the present invention, a kind of domain name system analyzing device is additionally provided, including:Monitoring module, match somebody with somebody It is set to monitoring network request, generation domain name mapping storehouse;Computing module, it is configured to enter the network request in domain name parsing storehouse Row statistics, each initiation address is calculated to the connection setup time of different name servers;Memory module, it is configured to described The result of calculation of the computing module is stored in domain name mapping storehouse;Searching modul, when being configured to new network request initiation, to institute State and the name server most short with the initiation address connection setup time of the new network request is searched in domain name mapping storehouse;Even Connection module, it is configured to the new network request being connected on the name server found.
Alternatively, the computing module is additionally configured to:Calculate connection of each initiation address to different name servers Settling time;It is ranked up according to the duration of each connection setup time;According to ranking results address choice duration is initiated to be each Shorter at least one connection setup time is stored.
Alternatively, it is most short one of each initiation address choice duration that the memory module, which is additionally configured to according to ranking results, Individual connection setup time is stored.
Alternatively, the searching modul is additionally configured to:If this connection failure, according to the ranking results, in the domain That the new network request is searched in name parsing storehouse initiates address to the secondary short connection setup time of name server;The company Connection module is additionally configured to:The new network request is again connected on the name server of lookup;Repeat described look into Look for and attended operation, until the new network request successful connection.
Alternatively, if the searching modul is additionally configured to be not present and the new network request in domain name parsing storehouse The record for initiating address matching, determined according to the geographical location information of the new network request and/or application network information Name server;The link block is additionally configured to the new network request being connected on the name server of determination.
In embodiments of the present invention, network request, generation domain name mapping storehouse are monitored, and is directed to each in domain name mapping storehouse Network request, calculate its connection setup time to different name servers and storage.After storage, the embodiment of the present invention ensures Same initiation address(Such as conventional IP address)New network request when initiating, can be searched according to the result of calculation of storage To the name server most short with the network request settling time.And then new network request is quickly and efficiently connected to domain On name server, solve exactly not being connected to network request in the prior art and establish a connection time most short domain name The problem of on server.In addition, in embodiments of the present invention, network request is monitored, and domain is generated according to the network request of monitoring Name parsing storehouse, strengthen the real-time in the domain name mapping storehouse of generation.Further, comprehensively the IP initiated can be asked by overlay network, The Connection Time of user network request is reduced, and is automatically analyzed according to the change of the information such as user geographical position and is sent out with current location The network request Connection Time most short name server risen.It can be reached network in the shortest time using the embodiment of the present invention Request is connected to name server, saves user time, improves the beneficial effect of Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the process chart of domain name system resolution according to an embodiment of the invention;
Fig. 2 shows the process chart of domain name system resolution in accordance with a preferred embodiment of the present invention;And
Fig. 3 shows the structural representation of domain name system analyzing device according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Referred in correlation technique, when network request is connected into name server, can not ensure exactly please by network Ask to be connected to and establish a connection time most short name server, waste user time, reduce Consumer's Experience.
In order to solve the above technical problems, the embodiments of the invention provide a kind of domain name system resolution.Fig. 1 shows root According to the process chart of the domain name system resolution of one embodiment of the invention.Referring to Fig. 1, the flow comprises at least step S102 to step S106.
Step S102, network request, generation domain name mapping storehouse are monitored.
Step S104, counted for the network request in domain name mapping storehouse, calculate each initiation address to difference The connection setup time of name server, and store into domain name mapping storehouse.
Step S106, when new network request is initiated, searched into domain name mapping storehouse with the initiation of new network request Location connection setup time most short name server, and new network request is connected on the name server found.
In embodiments of the present invention, network request, generation domain name mapping storehouse are monitored, and is directed to each in domain name mapping storehouse Network request, calculate its connection setup time to different name servers and storage.After storage, the embodiment of the present invention ensures Same initiation address(Such as conventional IP address)New network request when initiating, can be searched according to the result of calculation of storage To the name server most short with the network request settling time.And then new network request is quickly and efficiently connected to domain On name server, solve exactly not being connected to network request in the prior art and establish a connection time most short domain name The problem of on server.In addition, in embodiments of the present invention, network request is monitored, and domain is generated according to the network request of monitoring Name parsing storehouse, strengthen the real-time in the domain name mapping storehouse of generation.Further, comprehensively the IP initiated can be asked by overlay network, The Connection Time of user network request is reduced, and is automatically analyzed according to the change of the information such as user geographical position and is sent out with current location The network request Connection Time most short name server risen.It can be reached network in the shortest time using the embodiment of the present invention Request is connected to name server, saves user time, improves the beneficial effect of Consumer's Experience.
As shown in the step S102 in Fig. 1, monitoring of the embodiment of the present invention receives network request, and according to the net received Network request generation domain name mapping storehouse., please for the network in domain name mapping storehouse according to step S104 after generating domain name mapping storehouse Ask and counted, when the connection of initiation address to the different name servers of each network request is established in calculating domain name mapping storehouse Between and store, can be according to the initiation address of each network request of storage to not same area when being initiated so as to new network request The name server that the connection setup time selection of name server is suitable is attached.With calculating the initiation of each network request Location to after the connection setup time of different server, be when new network request is initiated, can be efficiently and rapidly by network Request is connected to corresponding to most short connection setup time on name server, when the embodiment of the present invention is established to the connection calculated Between be ranked up.After sequence, the shorter at least one connection foundation of address choice duration is initiated to be each according to ranking results Time is stored.In the embodiment of the present invention, the quantity of the initiation address of network request is difficult to estimate, can be up to ten thousand, can To be up to ten million or even more than one hundred million, when analyzing the network request monitored, to improve in domain name mapping storehouse in storage The real-time of appearance, guarantee it is efficient and rational rapidly network request is connected to establish a connection the time it is most short domain name clothes It is engaged on device, the content stored in domain name mapping storehouse updates with the time.
The scheduled time(Such as 1 day or 12 hours)Network request interior, that collection monitoring of the embodiment of the present invention arrives, according to monitoring To network request domain name mapping storehouse is updated.Such as, according to the record stored in current domain name mapping storehouse, with network request To establish Connection Time most short name server be Pekinese's name server for initiation address.But in actual motion, with the net The Connection Time most short name server for Hebei is established in the initiation address of network request.If can not be to domain name mapping library storage Record is upgraded in time, then when the new network request of the initiation address is initiated every time, according to what is stored in domain name mapping storehouse The network request is connected to Pekinese's name server by record, can not rapidly and efficiently carry out the connection of network request.According to this Inventive embodiments, dns database is updated according to the network request monitored in the scheduled time.When with network request When initiating address and establishing Connection Time most short name server and change, the embodiment of the present invention can be in time by after renewal Data are preserved to domain name mapping storehouse.As above in example, it can upgrade in time and establish the Connection Time most with the initiation address of network request Short name server is the name server in Hebei, is avoided when name server changes, can not upgrade in time network The initiation address of request is established the shortest time of connection with name server and stored.After storage, the embodiment of the present invention Step S106 as shown in fig. 1 is performed, when new network request is initiated, is searched into domain name mapping storehouse and new network request The most short connection setup time of the name server of matching, and the new network request of the initiation address is connected to what is found On name server.
For example, monitoring Pekinese's network request, in the domain name mapping storehouse of the embodiment of the present invention, calculating respectively should Network request initiates address and Pekinese's name server, the name server in Hebei, the name server in Hunan and wide The connection setup time of each different name servers such as the name server in state.Afterwards, result of calculation is ranked up, obtained The time of the name server foundation connection for initiating address and Hebei of the network request is most short.It is then new when the initiation address Network request initiate when, in domain name mapping storehouse search matched with the initiation address of the network request name server it is most short Connection setup time.In this example, the time of the name server foundation connection for initiating address and Hebei of the network request is most short, Then the network request is connected on the name server in the Hebei.
For another example monitoring the network request that a Virtual network operator is telecommunications, stored according to embodiments of the present invention The sequence of Connection Time is established to same IP network request, it is most short to establish the Connection Time with the initiation address of the network request Name server is that operator is mobile name server, then it is mobile the network request to be connected into the Virtual network operator Name server, ensure that the Connection Time of network request is most short.
It should be noted that the Virtual network operator referred in this example is used only as example, can be any net in practice Network operator, however it is not limited to Virtual network operator mentioned above.
As described above, new network request is connected to and initiates address with it and establish Connection Time most short domain name service After device, step S106 is finished.If new network request is connected to and initiates address with it and establish Connection Time most short domain Name server failure, according to above-mentioned ranking results, the embodiment of the present invention searches the hair of new network request in domain name mapping storehouse Address is played to the secondary short connection setup time of name server.After finding, new network request is again connected into lookup Name server on.The embodiment of the present invention repeats above-mentioned lookup and attended operation, until new network request connects Success.For example, monitoring a network request, and according to calculating, obtain establishing connection with the initiation address of the network request Time first three name server that sorts from short to long is:Name server, Pekinese's name server and the Hunan in Hebei Name server.When the new network request of the initiation address is initiated, according to the initiation with the network request found The shortest time of connection is established in address, and the network request is connected on the name server in Hebei.After connection failure, according to The ranking results stored in domain name mapping storehouse, obtain corresponding with the secondary short time for initiating address foundation connection of the network request For Pekinese's name server, then the network request is again connected to Pekinese's name server.If still connection failure, Continue above-mentioned lookup and attended operation, until the network request and name server successful connection.
In addition, in the embodiment of the present invention, network request is monitored, and domain name mapping is generated according to the network request monitored Storehouse.It is not present for the network request not monitored, in domain name mapping storehouse new with the initiation address identical of the network request Network request matching record.When receiving new network request, the embodiment of the present invention is according to the ground of new network request Reason positional information and/or application network information determine name server.Wherein, application network information includes being divided according to operator Application network species.For example, when receiving new network request, the network request new with this is not present in domain name mapping storehouse Initiate address matching record, then according to the geographical location information of the network request, such as the initiation address bit of the network request In Beijing, the network request is connected to corresponding Pekinese name server.For another example when network request is in domain name mapping storehouse In be not present it is corresponding record, the operator belonged to according to the network request(Such as movement, UNICOM or telecommunications)Please by the network Ask and be connected on the name server of determination.
Now the domain name system resolution of the present invention is illustrated with specific embodiment.
Embodiment one
Fig. 2 shows the process chart of domain name system resolution in accordance with a preferred embodiment of the present invention, is used for Support any one above-mentioned domain name system resolution, above-mentioned domain name system resolution is illustrated must become apparent from it is understandable.Ginseng See Fig. 2, the preferred embodiment comprises at least step S202 to step S220.
Step S202, network request is monitored.
When user browses webpage, the IP corresponding to inquiry first at recurrence name server.Secondly, corresponding to inquiring After IP, webpage login is carried out using the IP.Therefore, in this example, name server is utilized(Such as conventional Google 8.8.8.8 recurrence name server either Chinese 114.114.114.114 recurrence name server or other recurrence domain names Server)Monitor network request.
Step S204, generation or renewal domain name mapping storehouse.
Specifically, domain name mapping storehouse is generated according to the network request monitored in step S202.Also, the scheduled time(Such as 1 day Or 12 hours)Network request interior, that this preferred embodiment Statistical monitor arrives, is updated to domain name mapping storehouse, improves domain name The real-time in storehouse is parsed, ensures, in new network request initiation, to be rapidly and efficiently connected with name server.
Step S206, calculate connection setup time and store.
Each network request in the domain name mapping storehouse that is generated in step S204 is counted, calculating each network please That asks initiates address to the connection setup time of different name servers, and stores.
Step S208, new network request is received.
Step S210, judge in parsing database with the presence or absence of the initiation for having the network request with being received in step S208 Address records accordingly.If so, step S212 is performed, if it is not, performing step S220.
Step S212, most short connection setup time is searched, and is attached.
Specifically, the name server matched with the initiation address of new network request is searched into domain name mapping storehouse most Short connection setup time, and new network request is connected on the name server found.
Step S214, successful connection is judged whether.If so, flow terminates.If it is not, continue executing with step S216.
Step S216, the selection shortest time in remaining connection setup time in lists.
If according to step S214, new network request is connected to the name server failure found, then is tied according to sequence Fruit, that new network request is searched in domain name mapping storehouse initiates address to the secondary short connection setup time of name server.
Step S218, judgement server corresponding with the shortest time selected in step S216 whether successful connection.If so, Flow terminates.Step S216 is performed if it is not, returning.
Judge the shortest time with being selected in step S216(New network request is searched in domain name mapping storehouse to domain name The secondary short connection setup time of server)Corresponding server whether successful connection.If so, then flow terminates.If it is not, then repeat Step S216 search operation and step S218 attended operation are performed, until new network request successful connection.
If the initiation address being not present in database with new network request step S220, is parsed according to step S210 The record matched somebody with somebody, then according to the geographical location information of new network request and/or application network information(Such as the difference of operator)Really Determine name server, flow terminates.
It is real based on same inventive concept, the present invention based on the domain name system resolution that each preferred embodiment provides above Apply example and a kind of domain name system analyzing device is provided, for realizing above-mentioned domain name system resolution.
Fig. 3 shows the structural representation of domain name system analyzing device according to an embodiment of the invention.Referring to Fig. 3, The domain name system analyzing device of the embodiment of the present invention comprises at least:Monitoring module 310, computing module 220, memory module 330, look into Look for module 340 and link block 350.
Between function and each several part of now introducing each device or composition of the domain name system analyzing device of the embodiment of the present invention Annexation:
Monitoring module 310, it is configured to monitor network request, generation domain name mapping storehouse.
Computing module 320, it is coupled with monitoring module 310, is configured to unite to the network request in domain name mapping storehouse Meter, each initiation address is calculated to the connection setup time of different name servers.
Memory module 330, it is coupled with computing module 320, is configured to store the meter of computing module in domain name mapping storehouse Calculate result.
Searching modul 340, it is coupled with memory module 330, when being configured to new network request initiation, to domain name mapping storehouse The middle lookup name server most short with the initiation address connection setup time of new network request.
Link block 350, it is coupled with searching modul 340, is configured to for new network request to be connected to the domain found On name server.
In embodiments of the present invention, network request, generation domain name mapping storehouse are monitored, and is directed to each in domain name mapping storehouse Network request, calculate its connection setup time to different name servers and storage.After storage, the embodiment of the present invention ensures Same initiation address(Such as conventional IP address)New network request when initiating, can be searched according to the result of calculation of storage To the name server most short with the network request settling time.And then new network request is quickly and efficiently connected to domain On name server, solve exactly not being connected to network request in the prior art and establish a connection time most short domain name The problem of on server.In addition, in embodiments of the present invention, network request is monitored, and domain is generated according to the network request of monitoring Name parsing storehouse, strengthen the real-time in the domain name mapping storehouse of generation.Further, comprehensively the IP initiated can be asked by overlay network, The Connection Time of user network request is reduced, and is automatically analyzed according to the change of the information such as user geographical position and is sent out with current location The network request Connection Time most short name server risen.It can be reached network in the shortest time using the embodiment of the present invention Request is connected to name server, saves user time, improves the beneficial effect of Consumer's Experience.
As shown in figure 3, monitoring module 310 monitors network request, and domain name mapping storehouse is generated according to network request.Monitoring After module 310 generates domain name mapping storehouse, computing module 320 is triggered.After computing module 320 is toggled, to domain name mapping Network request in storehouse is counted, and calculates the initiation address of each network request in domain name mapping storehouse to different name servers Connection setup time.The memory module 330 being coupled with computing module 320 stores the calculating that computing module 320 is calculated As a result, when being initiated so as to new network request, link block 350 can arrive according to the initiation address of each network request of storage The name server that the connection setup time selection of different name servers is suitable is attached.
Computing module 320 calculate each network request initiate address to different server connection setup time it Afterwards, it is when new network request is initiated, it is corresponding network request efficiently and rapidly can be connected to most short connection setup time Name server on, computing module 320 is ranked up to the connection setup time calculated.After sequence, memory module 330 Deposited according to ranking results for the initiation address choice duration of each network request shorter at least one connection setup time Storage.In the embodiment of the present invention, the quantity of the initiation address of network request is difficult to estimate, can be up to ten thousand, can be up to ten million Individual or even more than one hundred million, when analyzing the network request monitored, to improve the real-time of storage content in domain name mapping storehouse, Guarantee efficient and rational be rapidly connected to network request to establish a connection on time most short name server, this hair In bright embodiment, the content stored in domain name mapping storehouse updates with the time.
The scheduled time(Such as 1 day or 12 hours)Network request interior, that collection monitoring of the embodiment of the present invention arrives, according to monitoring To network request domain name mapping storehouse is updated.Such as, according to the record stored in current domain name mapping storehouse, with network request To establish Connection Time most short name server be Pekinese's name server for initiation address.But in actual motion, with the net The Connection Time most short name server for Hebei is established in the initiation address of network request.If can not be to domain name mapping library storage Record is upgraded in time, then when the same new network request for initiating address is initiated every time, is stored according in domain name mapping storehouse Record new network request is connected to Pekinese's name server, can not rapidly and efficiently carry out the connection of network request.Root According to the embodiment of the present invention, dns database is updated according to the network request monitored in the scheduled time.Asked when with network When the initiation address asked is established Connection Time most short name server and changed, the embodiment of the present invention can in time will renewal Data afterwards are preserved to domain name mapping storehouse.As above in example, when can upgrade in time with the foundation connection of the initiation address of network request Between most short name server be Hebei name server, avoid when name server changes, the nothing of memory module 330 Method upgrade in time network request initiation address and name server establish connection shortest time and stored.Store it Afterwards, when new network request is initiated, searching modul 340 is searched and the initiation address of new network request into domain name mapping storehouse The most short connection setup time for the name server matched somebody with somebody, and new network request is connected to what is found by link block 350 On name server.
For example, Pekinese's network request is monitored, and in the domain name mapping storehouse of the embodiment of the present invention, computing module 320 calculate the initiation address of the network request and Pekinese's name server, the name server in Hebei, the domain name in Hunan respectively The connection setup time of each different name servers such as server and the name server in Guangzhou.Afterwards, to result of calculation Be ranked up, obtain the network request the name server for initiating address and Hebei establish connection time it is most short, by storing Module 330 is stored.When the new network request of same initiation address is initiated, searching modul 340 is in domain name mapping storehouse Search the most short connection setup time of the name server matched with the initiation address.In this example, the initiation of the network request The time that the name server in location and Hebei establishes connection is most short, then the network request is connected to the name server in the Hebei On.
For another example monitoring the network request that a Virtual network operator is telecommunications, stored according to embodiments of the present invention The sequence of Connection Time is established to same initiation address, Connection Time most short domain name is established with the initiation address of the network request Server is that operator is mobile name server, then the network request is connected into the Virtual network operator for mobile domain name Server, ensure that the Connection Time of network request is most short.
It should be noted that the Virtual network operator referred in this example is used only as example, can be any net in practice Network operator, however it is not limited to Virtual network operator mentioned above.
As described above, new network request is connected to after establishing a connection time most short name server, If new network request be connected to establish a connection the time it is most short name server failure, according to above-mentioned ranking results, look into When looking for module 340 to search the secondary short connection of the initiation address of new network request to name server in domain name mapping storehouse establishing Between.After finding, new network request is again connected into lookup with the link block 350 that searching modul 340 is coupled On name server.Searching modul 340 and link block 350 in the embodiment of the present invention repeat above-mentioned lookup and company Operation is connect, until new network request successful connection.For example, monitoring a network request, and according to calculating, obtain with being somebody's turn to do Connection Time first three name server that sorts from short to long is established in the initiation address of network request:The domain name service in Hebei The name server of device, Pekinese's name server and Hunan.When new network request is initiated, according to finding and this The shortest time initiated address and establish connection of network request, the network request is connected on the name server in Hebei.Even After connecing failure, according to the ranking results stored in domain name mapping storehouse, obtain establishing connection with the initiation address of the network request The secondary short time corresponding to be Pekinese's name server, then the network request is again connected to Pekinese's name server. If still connection failure, continue above-mentioned lookup and attended operation, until the network request and name server successful connection.
In addition, in the embodiment of the present invention, monitoring module 310 monitors network request, and is given birth to according to the network request monitored Into domain name mapping storehouse.For the network request not monitored, it is not present with the initiation of the network request in domain name mapping storehouse The record of location matching.When receiving the new network request of the initiation address, searching modul 340 is according to new network request Geographical location information and/or application network information determine name server.Wherein, application network information includes being drawn according to operator The application network species divided.For example, when receiving new network request, being not present in domain name mapping storehouse please with the new network That asks initiates the record of address matching, then is located at Beijing according to the geographical location information of the network request, such as network request, will The network request is connected to corresponding Pekinese name server.For another example when network request is not present in domain name mapping storehouse Corresponding record, the operator belonged to according to the network request(Such as movement, UNICOM or telecommunications)The network request is connected to On the name server of determination.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach Following beneficial effect:
In embodiments of the present invention, network request, generation domain name mapping storehouse are monitored, and is directed to each in domain name mapping storehouse Network request, calculate its connection setup time to different name servers and storage.After storage, the embodiment of the present invention ensures Same initiation address(Such as conventional IP address)New network request when initiating, can be searched according to the result of calculation of storage To the name server most short with the network request settling time.And then new network request is quickly and efficiently connected to domain On name server, solve exactly not being connected to network request in the prior art and establish a connection time most short domain name The problem of on server.In addition, in embodiments of the present invention, network request is monitored, and domain is generated according to the network request of monitoring Name parsing storehouse, strengthen the real-time in the domain name mapping storehouse of generation.Further, comprehensively the IP initiated can be asked by overlay network, The Connection Time of user network request is reduced, and is automatically analyzed according to the change of the information such as user geographical position and is sent out with current location The network request Connection Time most short name server risen.It can be reached network in the shortest time using the embodiment of the present invention Request is connected to name server, saves user time, improves the beneficial effect of Consumer's Experience.
The embodiment of the invention also discloses A1, a kind of domain name system resolution, including:
Monitor network request, generation domain name mapping storehouse;
The network request in storehouse is parsed to domain name to count, and calculates each initiation address to different domain name service The connection setup time of device, and store to domain name and parse in storehouse;
When new network request is initiated, the initiation address searched in storehouse with the new network request is parsed to domain name Connection setup time most short name server, and the new network request is connected on the name server found.
A2, the method according to A1, domain name parse the content stored in storehouse and updated with the time.
A3, the method according to A1 or A2, wherein, calculate connection of each initiation address to different name servers Settling time, and store to domain name and parse in storehouse, including:
Each initiation address is calculated to the connection setup time of different name servers;
It is ranked up according to the duration of each connection setup time;
Stored according to ranking results for each initiation address choice duration shorter at least one connection setup time.
A4, the method according to A3, wherein, it is shorter at least for each initiation address choice duration according to ranking results One connection setup time is stored, including:
Stored according to ranking results for a most short connection setup time of each initiation address choice duration.
A5, the method according to A3 or A4, wherein, the new network request is connected to the domain name service found On device, including:
If this connection failure, according to the ranking results, searching the new network in domain name parses storehouse please That asks initiates address to the secondary short connection setup time of name server;
The new network request is again connected on the name server of lookup;
The lookup and attended operation are repeated, until the new network request successful connection.
A6, the method according to A1 to any one of A5, wherein, in addition to:
If the record matched with the initiation address of the new network request is not present in storehouse in domain name parsing, according to institute The geographical location information and/or application network information for stating new network request determine name server;
The new network request is connected on the name server of determination.
A7, the method according to A6, wherein, the application network information includes the application network divided according to operator Species.
The embodiment of the invention also discloses B8, a kind of domain name system analyzing device, including:
Monitoring module, it is configured to monitor network request, generation domain name mapping storehouse;
Computing module, it is configured to count the network request in domain name parsing storehouse, calculates each initiation ground Connection setup time of the location to different name servers;
Memory module, it is configured to store the result of calculation of the computing module in domain name parses storehouse;
Searching modul, when being configured to new network request initiation, parse in storehouse and search and the new net to domain name Address connection setup time most short name server is initiated in network request;
Link block, it is configured to the new network request being connected on the name server found.
B9, the equipment according to B8, wherein, the computing module is additionally configured to:
Each initiation address is calculated to the connection setup time of different name servers;
It is ranked up according to the duration of each connection setup time;
Stored according to ranking results for each initiation address choice duration shorter at least one connection setup time.
B10, the equipment according to B9, wherein, the memory module is additionally configured to be initiated to be each according to ranking results A most short connection setup time of address choice duration is stored.
B11, the equipment according to B9 or B10, wherein,
The searching modul is additionally configured to:
If this connection failure, according to the ranking results, searching the new network in domain name parses storehouse please That asks initiates address to the secondary short connection setup time of name server;
The link block is additionally configured to:
The new network request is again connected on the name server of lookup;
The lookup and attended operation are repeated, until the new network request successful connection.
B12, the equipment according to B8 to any one of B11, wherein, if the searching modul is additionally configured to domain name solution The record matched with the initiation address of the new network request is not present in storehouse in analysis, according to the geography of the new network request Positional information and/or application network information determine name server;
The link block is additionally configured to the new network request being connected on the name server of determination.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power Profit requirement, summary and accompanying drawing)Disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor(DSP)To realize one in domain name system analyzing device according to embodiments of the present invention The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein Some or all equipment or program of device(For example, computer program and computer program product).Such realization The program of the present invention can store on a computer-readable medium, or can have the form of one or more signal.This The signal of sample can be downloaded from internet website and obtained, and either provided on carrier signal or carried in the form of any other For.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.

Claims (12)

1. a kind of domain name system resolution, including:
Network request is monitored, according to the network request monitored generation in real time or renewal domain name mapping storehouse;
The network request in storehouse is parsed to domain name to count, and calculates each initiation address to different name servers Connection setup time, and store to domain name and parse in storehouse;Wherein, it is described calculate it is each initiation address taken to different domain names The connection setup time of business device, including user's geographical location information and/or network operator information according to network request, respectively Analysis calculates the initiation address of each network request to the connection setup time of multiple different name servers;
When new network request is initiated, parse in storehouse to domain name and searched and the new network according to the result of calculation of storage Address connection setup time most short name server is initiated in request, and the new network request is connected into what is found On name server.
2. the content according to the method for claim 1, stored in domain name parsing storehouse updates with the time.
3. method according to claim 1 or 2, wherein, each initiation address is calculated to the company of different name servers Settling time is connect, and stores to domain name and parses in storehouse, including:
Each initiation address is calculated to the connection setup time of different name servers;
It is ranked up according to the duration of each connection setup time;
Stored according to ranking results for each initiation address choice duration shorter at least one connection setup time.
4. wherein, it is according to the method for claim 3, that each initiation address choice duration is shorter extremely according to ranking results A few connection setup time is stored, including:
Stored according to ranking results for a most short connection setup time of each initiation address choice duration.
5. according to the method for claim 3, wherein, the new network request is connected to the name server found On, including:
If this connection failure, according to the ranking results, the new network request is searched in domain name parses storehouse Address is initiated to the secondary short connection setup time of name server;
The new network request is again connected on the name server of lookup;
The lookup and attended operation are repeated, until the new network request successful connection.
6. method according to claim 1 or 2, wherein, in addition to:
If the record matched with the initiation address of the new network request is not present in storehouse in domain name parsing, according to described new Network request geographical location information and/or application network information determine name server;
The new network request is connected on the name server of determination.
7. according to the method for claim 6, wherein, the application network information includes applying net according to what operator divided Network species.
8. a kind of domain name system analyzing device, including:
Monitoring module, it is configured to monitor network request, according to the real-time generation of the network request monitored or more new domain name Parse storehouse;
Computing module, it is configured to count the network request in domain name parsing storehouse, calculates each initiation address and arrive The connection setup time of different name servers;Wherein, the computing module, it is additionally configured to user's geography according to network request Positional information and/or network operator information, respectively analysis calculate the initiation address of each network request to multiple not same areas The connection setup time of name server;
Memory module, it is configured to store the result of calculation of the computing module in domain name parses storehouse;
Searching modul, when being configured to new network request initiation, parse in storehouse to domain name and looked into according to the result of calculation of storage Look for the name server most short with the initiation address connection setup time of the new network request;
Link block, it is configured to the new network request being connected on the name server found.
9. equipment according to claim 8, wherein, the computing module is additionally configured to:
Each initiation address is calculated to the connection setup time of different name servers;
It is ranked up according to the duration of each connection setup time;
Stored according to ranking results for each initiation address choice duration shorter at least one connection setup time.
10. equipment according to claim 9, wherein, it is each hair that the memory module, which is additionally configured to according to ranking results, Playing address choice duration most short connection setup time is stored.
11. the equipment according to claim 9 or 10, wherein,
The searching modul is additionally configured to:
If this connection failure, according to the ranking results, the new network request is searched in domain name parses storehouse Address is initiated to the secondary short connection setup time of name server;
The link block is additionally configured to:
The new network request is again connected on the name server of lookup;
The lookup and attended operation are repeated, until the new network request successful connection.
12. according to the equipment described in any one of claim 8 to 10, wherein, if the searching modul is additionally configured to domain name The record matched with the initiation address of the new network request is not present in storehouse in parsing, according to the ground of the new network request Reason positional information and/or application network information determine name server;
The link block is additionally configured to the new network request being connected on the name server of determination.
CN201310703067.7A 2013-12-19 2013-12-19 Domain name system resolution and equipment Active CN103685603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310703067.7A CN103685603B (en) 2013-12-19 2013-12-19 Domain name system resolution and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310703067.7A CN103685603B (en) 2013-12-19 2013-12-19 Domain name system resolution and equipment

Publications (2)

Publication Number Publication Date
CN103685603A CN103685603A (en) 2014-03-26
CN103685603B true CN103685603B (en) 2018-01-02

Family

ID=50321872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310703067.7A Active CN103685603B (en) 2013-12-19 2013-12-19 Domain name system resolution and equipment

Country Status (1)

Country Link
CN (1) CN103685603B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245952A (en) * 2015-08-25 2016-01-13 四川长虹电器股份有限公司 Method and system for improving network speed of intelligent Android TV set
CN105610995A (en) * 2015-09-11 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Selection method of DNS server, selection device of the DNS server and terminal
CN105376342B (en) * 2015-10-12 2018-11-23 北京京东尚科信息技术有限公司 For determining the device and method of user partition in internet and using the server of described device
CN106453685A (en) * 2016-11-15 2017-02-22 中国移动通信集团江苏有限公司 Method for resolving with public DNS (Domain Name System) server, system and server
CN106888268A (en) * 2017-03-24 2017-06-23 杭州迪普科技股份有限公司 A kind of analysis method and device of domain name
CN109587012B (en) * 2019-01-11 2020-07-03 厦门美图之家科技有限公司 Network type identification method and device
CN109660411B (en) * 2019-02-25 2022-03-01 北京云中融信网络科技有限公司 Method and device for optimizing link connection of instant messaging network
CN110290229A (en) * 2019-06-05 2019-09-27 广东美的制冷设备有限公司 Domain name analytic method, device, electronic equipment and the storage medium of household appliance
CN110247999B (en) * 2019-07-11 2022-05-06 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance and storage medium
CN110636150B (en) * 2019-10-24 2023-04-18 北京小米移动软件有限公司 Domain name resolution method, domain name resolution device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317775B1 (en) * 1995-11-03 2001-11-13 Cisco Technology, Inc. System for distributing load over multiple servers at an internet site
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN102546854A (en) * 2012-01-10 2012-07-04 上海西默通信技术有限公司 Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server
CN102572014A (en) * 2012-03-07 2012-07-11 华为终端有限公司 Message processing method and device and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317775B1 (en) * 1995-11-03 2001-11-13 Cisco Technology, Inc. System for distributing load over multiple servers at an internet site
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN102546854A (en) * 2012-01-10 2012-07-04 上海西默通信技术有限公司 Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server
CN102572014A (en) * 2012-03-07 2012-07-11 华为终端有限公司 Message processing method and device and system thereof

Also Published As

Publication number Publication date
CN103685603A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685603B (en) Domain name system resolution and equipment
CN102624920B (en) A kind of method of being conducted interviews by proxy server and device
CN104618506B (en) A kind of content distribution network system of crowdsourcing, method and apparatus
CN102647482B (en) Method and system for accessing website
TWI740029B (en) Distributed search and index updating method, system, server and computer equipment
CN111314472B (en) Domain name resolution method, domain name resolution server and terminal equipment
CN104378452B (en) A kind of method, apparatus and system for domain name mapping
US9135576B2 (en) System for and method of generating and visualizing sharing event cascade structures associated with content sharing events that occur across a network
CN107395659A (en) A kind of method and device of service handling and common recognition
US20130080509A1 (en) Cloud computing access gateway and method for providing a user terminal access to a cloud provider
CN104158919A (en) Webpage access implementation method, server and client
CN104283723B (en) Network access log processing method and processing device
CN109408696A (en) It is a kind of for search for boarding program method and apparatus
CN109543121A (en) A kind of exterior chain url resource transfer method and device
CN104935653A (en) Bypass cache method for visiting hot spot resource and device
CN109729183A (en) Request processing method, device, equipment and storage medium
CN106713506A (en) Data acquisition method and data acquisition system
CN107577590A (en) Method and device based on database service real-time calling virtual interface
CN107491463B (en) Optimization method and system for data query
CN109981745A (en) A kind of journal file processing method and server
CN106888277A (en) A kind of domain name inquiry method and device
CN108154024B (en) Data retrieval method and device and electronic equipment
CN107911499A (en) Multi-line domain name analytic method and device
CN106067879B (en) The detection method and device of information
CN104253875A (en) DNS (domain name system) flow analysis method

Legal Events

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

Inventor after: Wang Lifu

Inventor after: Tan Xiaosheng

Inventor before: Wang Lifu

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG LIFU TO: WANG LIFU TAN XIAOSHENG

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161212

Address after: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3

Applicant after: BEIJING QI'ANXIN SCIENCE & TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihoo Technology Co., Ltd.

Applicant before: Qizhi Software (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Patentee after: Qianxin Technology Group Co., Ltd.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Patentee before: BEIJING QI'ANXIN SCIENCE & TECHNOLOGY CO., LTD.