CN109510883A - Domain name inquiry method, device, equipment and storage medium - Google Patents

Domain name inquiry method, device, equipment and storage medium Download PDF

Info

Publication number
CN109510883A
CN109510883A CN201811407229.1A CN201811407229A CN109510883A CN 109510883 A CN109510883 A CN 109510883A CN 201811407229 A CN201811407229 A CN 201811407229A CN 109510883 A CN109510883 A CN 109510883A
Authority
CN
China
Prior art keywords
domain name
name
server
name server
domain
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
CN201811407229.1A
Other languages
Chinese (zh)
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811407229.1A priority Critical patent/CN109510883A/en
Publication of CN109510883A publication Critical patent/CN109510883A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of domain name inquiry method, device, equipment and storage medium.It include: the access order that the sequence of the domain name mapping performance of N number of name server from high to low is determined as N number of name server by terminal device.Terminal device according to N number of name server access order, successively the analysis request comprising domain name is sent to N number of name server, until parsing to obtain domain name corresponding IP address from a name server in N number of name server, N >=2.Compared with the existing technology, the access order of i.e. N number of name server is fixed, technical solution provided by the embodiment of the present invention, so that domain name mapping performance sequence from high to low of the terminal device according to N number of name server, the analysis request comprising domain name successively is sent to N number of name server, so as to shorten the waiting time of network access.

Description

Domain name inquiry method, device, equipment and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of domain name inquiry method, device, equipment and storage mediums.
Background technique
Domain name system (Domain Name System, referred to as: DNS) is for naming from tissue into hierarchical structures such as domains Computer and networks service.Wherein, name server (referred to as: DNS Server) can provide domain name mapping clothes for client Business, the domain name mapping that user input by client for the corresponding Internet protocol of the domain name (Internet Protocol, Referred to as: IP) address, so that client accesses the corresponding network server of the domain name using the IP address.
Usual client can be configured multiple access address, and each access address corresponds to a DNS Server, such as: The cell phone client of Android system is typically configured four access address, and each access address corresponds to a DNS Server, this Four DNS Server have fixed access order.When carrying out domain name mapping, successively accessed according to the access order and every The corresponding DNS Server of a access address, to obtain the corresponding IP address of the domain name.The domain name resolution process is specifically as follows: Client accesses the corresponding first DNS Server progress domain name mapping of the first access address and successfully obtains if successfully resolved IP address corresponding with institute's domain name, then the first DNS Server sends the IP address to client, so that client utilizes the IP Address accesses the corresponding network server of the domain name.If the first DNS Server parsing failure, the second access of client access The corresponding 2nd DNS Server in address carries out similar domain name resolution process, the access order fixed with this and domain name mapping Process is analogized, until parsing obtains the domain name corresponding IP address, or until parsing failure.
Adopt the scheme of above-mentioned prior art, often problem arises in that: serviced in user by domain name access network When device, needs to wait longer time, the feedback of network server could be obtained.
Summary of the invention
The embodiment of the present invention provides a kind of domain name inquiry method, device, equipment and storage medium.Thus so as to shorten The waiting time of network access.
In a first aspect, the embodiment of the present invention provides a kind of domain name analytic method, comprising: by the domain name of N number of name server The sequence of analysis feature from high to low is determined as the access order of N number of name server;Access according to N number of name server is suitable Sequence, successively sent to N number of name server include domain name analysis request, until from a domain name in N number of name server Until server parses to obtain the corresponding IP address of domain name, N >=2;Wherein, server access sequence is according to N number of domain name service The sequence of the domain name mapping performance of device from high to low.
Second aspect, the embodiment of the present invention provide a kind of client, comprising:
Determining module, for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as N number of domain name The access order of server;
Sending module, for the access order according to N number of name server, successively to N number of name server transmission include The analysis request of domain name parses to obtain the corresponding IP address of domain name until from a name server in N number of name server Until, N >=2;
Wherein, server access sequence is the domain name mapping performance sequence from high to low according to N number of name server.
The third aspect, the embodiment of the present invention provide a kind of terminal device, comprising: processor and memory;
Memory stores computer executed instructions;
Processor executes the computer executed instructions of memory storage, so that processor executes domain as described in relation to the first aspect Name analytic method.
Fourth aspect, the embodiment of the present invention provide a kind of terminal device, comprising: processor, memory and such as second party The client in face.
5th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, in computer readable storage medium Computer executed instructions are stored with, when computer executed instructions are executed by processor for realizing the domain name solution of such as first aspect Analysis method.
6th aspect, the embodiment of the present invention provide a kind of computer program product, including computer executed instructions, work as calculating Machine executes instruction when being executed by processor for realizing the domain name analytic method of such as first aspect.
The embodiment of the present invention provides a kind of domain name inquiry method, device, equipment and storage medium.Through the embodiment of the present invention The technical solution of offer, so that domain name mapping performance sequence from high to low of the terminal device according to N number of name server, successively The analysis request comprising domain name is sent to N number of name server, so as to shorten the waiting time of network access.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of architectures of communication networks applied by the embodiment of the present invention;
Fig. 2 is the flow chart for the domain name analytic method that one embodiment of the invention provides;
Fig. 3 is the name space schematic diagram that one embodiment of the invention provides;
Fig. 4 is that the domain name that one embodiment of the invention provides divides schematic diagram;
Fig. 5 A is a kind of Division schematic diagram that one embodiment of the invention provides;
Fig. 5 B is another Division schematic diagram that one embodiment of the invention provides;
Fig. 6 is the configuration diagram for the name server that one embodiment of the invention provides;
Fig. 7 is the flow chart for the acquisition domain name mapping performance that one embodiment of the invention provides;
Fig. 8 is the interface schematic diagram that one embodiment of the invention provides;
Fig. 9 is the interface schematic diagram that one embodiment of the invention provides;
Figure 10 is the interface schematic diagram that one embodiment of the invention provides;
Figure 11 is the interface schematic diagram that one embodiment of the invention provides;
Figure 12 A is that the domain name for the N number of name server of acquisition that one embodiment of the invention provides averagely parses the process of duration Figure;
Figure 12 B be another embodiment of the present invention provides the domain name of the N number of name server of acquisition averagely parse the stream of duration Cheng Tu;
Figure 13 A is the flow chart of the domain name mapping performance for the N number of name server of acquisition that one embodiment of the invention provides;
Figure 13 B be another embodiment of the present invention provides the domain name of the N number of name server of acquisition be averagely parsed into power Flow chart;
Figure 14 is the structural schematic diagram for the client that one embodiment of the invention provides;
Figure 15 is the structural schematic diagram for the terminal device that one embodiment of the invention provides;
Figure 16 be another embodiment of the present invention provides terminal device structural schematic diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of schematic diagram of architectures of communication networks applied by the embodiment of the present invention.As shown in Figure 1, the communication network Network framework includes: terminal device 11, N number of name server 12, N >=2 (Fig. 1 is by taking N=4 as an example), Q web page server 13, Q >=1 (Fig. 1 is by taking Q is 1 as an example).
Wherein, terminal device 11 can be PC (Personal Computer, referred to as: PC) or mobile terminal User equipment (User Equipment, referred to as: UE), access terminal, subscriber unit, use are referred to as Deng, the mobile terminal Family station, movement station, mobile station, user terminal, terminal, wireless telecom equipment, user agent or user apparatus.Mobile terminal can be with It is smart phone, cellular phone, wireless phone, tablet computer, personal digital assistant (Personal Digital Assistant, referred to as: PDA) equipment, the handheld device with wireless communication function or be connected to radio modem its Its processing equipment, mobile unit, wearable device etc..In embodiments of the present invention, which has and cellular network And/or the interface that Wireless LAN (Wireless Local Area Networks, referred to as: WLAN) is communicated.
As described above, name server 12 can provide domain name resolution service for client, user is defeated by client The domain name mapping entered is the corresponding IP address of the domain name, is taken so that client accesses the corresponding network of the domain name using the IP address Business device 13.
Network server 13 is also referred to as web page server, and network server 13 is used to provide webpage for terminal device 11 Content.
Architectures of communication networks as shown in connection with fig. 1, the embodiment of the present invention can be related to following several scenes:
One: one domain name of scene corresponds to the IP address of multiple web page servers 13, i.e., N number of name server 12 is to the domain Name parsing, obtained IP can be same or different, but the web page contents that the multiple web page server 13 is loaded are identical.
The IP address of the corresponding web page server 13 of two: one domain names of scene, i.e., N number of domain name is without weapon to domain name Parsing, obtained IP address are unique.
Below in conjunction with architectures of communication networks shown in FIG. 1 and above-mentioned scene one, scene two, by specific embodiment to this The technical solution that inventive embodiments provide is explained.
Fig. 2 is the flow chart for the domain name analytic method that one embodiment of the invention provides.Wherein this method can be by domain name solution Analysis apparatus executes, which can be realized by way of software and/or hardware.Such as: the device can be client or on State terminal device.Domain name analytic method is illustrated using terminal device as executing subject below.As shown in Fig. 2, this method packet Include following steps:
Step S21: the sequence of the domain name mapping performance of N number of name server from high to low is determined as N number of by terminal device The access order of name server.
Step S22: terminal device successively sends to N number of name server and wraps according to the access order of N number of name server Analysis request containing domain name parses to obtain the domain until from a name server in N number of name server Until the corresponding IP address of name, N >=2.
Optionally, the mode that terminal device sends the analysis request comprising domain name includes following several optional ways: user Can domain name directly be inputted in the network address input frame of browser.Or, it is assumed that current screen shows domain name link, uses Family realizes to the clicking operation of the domain name link and sends the analysis request comprising domain name.Or, it is assumed that current screen is existing There is the corresponding two dimensional code of domain name, the long press operation that user carries out the two dimensional code realizes transmission and asks comprising the parsing of domain name It asks.Wherein, the embodiment of the present invention to send comprising domain name analysis request mode with no restrictions.
Domain name structure is combined to be illustrated domain name resolution process first below:
Since the number of users of internet (Internet) is more, so internet is tree-shaped using level in name The naming method of structure.Referring specifically to Fig. 3, name space includes: top level domain, second level domain, three-level domain name and level Four domain name Deng.Any one host (such as above-mentioned network server) or router of connection on the internet, there is a unique layer The name of secondary structure, i.e. domain name.Here " domain " is a division that can be managed in name space.
From grammatically saying, each domain name is made of label (label) sequence, and point (decimal is used between each label Point) it separates.Such as: mail.cctv.com.Fig. 4 is the domain name division schematic diagram that one embodiment of the invention provides, as shown in figure 4, The domain name is made of three labels, and wherein label com is top level domain, and label cctv is second level domain, and label mail is three-level Domain name.
DNS provides that the label in domain name is made of English and number, no more than 63 characters of each label (in order to Memory is convenient, does not exceed 12 characters generally), also case-insensitive is alphabetical.It cannot be used in addition to hyphen (-) in label Other punctuation marks.The minimum domain name of rank writes on Far Left, and highest-ranking character writes on rightmost.By multiple labels The Fully-Qualified Domain Name of composition is no more than 255 characters in total.DNS neither provides that a domain name is needed comprising how many a junior's domain names, Do not provide what meaning every top-level domain represents yet.Domain names at different levels are managed by the domain name authority of its upper level, and highest Top level domain is then by Internet Name and Number Assignment Agency (The Internet Corporation for Assigned Names and Numbers, referred to as: ICANN) be managed.
Top level domain (Top Level Domain, referred to as: TLD) is 265 existing at present, is divided into three categories:
(1) national top level domain nTLD: using the regulation of ISO3166.Such as: cn represents China, and us represents the U.S., and uk is represented Britain etc..
(2) generic top-level domain gTLD: the most common generic top-level domain has 7, and such as: com represents incorporated business, net Network service organization is represented, org represents nonprofit organization, and int represents international organization, and gov represents the government department in the U.S., mil Represent the military service in the U.S..
(3) foundation structure domain name (infrastructure domain): this top level domain only one, i.e. arpa, For reverse name resolution, because of referred to herein as reversed domain name.
If each node uses a name server, such that domain name using above-mentioned tree The quantity of server is too many, reduces the operational efficiency of domain name server system.So in DNS, using the method for dividing regions To solve.
The range that one server is responsible for administration is called area (zone).Constituent parts divide oneself pipe as the case may be Have jurisdiction over the area of range.But all nodes in an area must can be connected to.Corresponding permission domain name is arranged in each area Server, for saving the mapping of the address IP corresponding to the All hosts in the area to domain name.In short, name server Compass of competency is not instead of with " domain " for unit, with " area " for unit.The range in " area " is less than or equal to the range in " domain ".
Here is the citing of the different demarcation method in area.It is assumed that there are subunit x and y in abc company, department x is included below Three subsectors u, v, w, and there are also subunit t below y.Fig. 5 A is a kind of Division signal that one embodiment of the invention provides Figure, Fig. 5 B are another Division schematic diagram that one embodiment of the invention provides, and as shown in Figure 5A, indicate that abc company only sets one A area abc.com.This time zone abc.com and domain abc.com refers to same part thing.As shown in Figure 5 B, indicate that abc company draws It is divided into the area Liang Ge: abc.com and y.abc.com.The two areas are all under the jurisdiction of domain abc.com, are each provided and have set corresponding permission Name server.
Further, Fig. 6 is the configuration diagram for the name server that one embodiment of the invention provides, as shown in fig. 6, often One name server only administers a part in domain name system.It, can be according to name server role Name server is divided into following four kinds of different types.
Root name server: the name server of highest level and most important name server.All rhizosphere names Server can get the domain name IP address corresponding with the domain name of all top level domain servers.Either which Local domain name server, as long as oneself can not be parsed, passes through rhizosphere to parse to any one domain name on internet Name server carries out domain name mapping.So root name server is most important name server.It is assumed that all rhizosphere names take Business device is all paralysed, then entire DNS system can not just work.It should be noted that root name server in many cases, It does not translate domain names into directly as IP address, but notifies which top level domain clothes local domain name server should look in next step Business device carries out domain name mapping.
Top level domain server: it is responsible for management in the second level domain of the top level domain server registration.
Permission name server: it is responsible for the name server in one " area ".
Local domain name server: local server is not belonging to name server framework shown in fig. 6, but it is to domain name system It unites extremely important.When terminal device receives the domain name of user's input, domain name solution is carried out by local domain name server first Analysis.Based on this, N number of name server described in the embodiment of the present invention is construed as N number of local domain name server.
Domain name resolution process includes:
One, inquiry (or parsing) of the terminal device to local domain name server is generally used recursive query (also referred to as Recursion resolution) method.So-called recursive query refers to: if the local domain name server that terminal device is inquired, can not solve The corresponding IP address of domain name is analysed, then local domain name server is by with the identity of terminal device, to other root name servers Continue to issue analysis request (analysis request includes: domain name to be checked), rather than terminal device oneself look into next step It askes.Therefore, the query result that recursive query the returns either corresponding IP address of domain name, or report an error, expression can not be inquired To the corresponding IP address of domain name.
Two, inquiry (or parsing) of the local domain name server to root name server (is also claimed using iterative query method For iterative resolution).The characteristics of iterative query: when root name server receives the analysis request (packet of local domain name server sending Include domain name to be resolved) when or provide the corresponding IP address of domain name or notice local domain name server: " in next step should Which inquired to name server ".Then local server is allowed to carry out subsequent inquiry.Usual root name server is The IP address of the top level domain server oneself obtained is notified to allow local domain name server again to top to local domain name server Grade domain name server query.Top level domain server is after receiving the inquiry request of local domain name server or provides and is wanted The IP address or notice local domain name server of inquiry should be inquired in next step to which permission name server. Finally, local server or getting IP address or reporting an error, IP address or the result that reports an error then are returned to terminal and set It is standby.
Based on above-mentioned domain name resolution process, the domain name mapping performance of N number of name server is analyzed below: its In, the domain name mapping performance of each name server in N number of name server is influenced limited at least by following factor:
One, the performance characteristics of name server itself, such as: the CPU configuration of name server, memory configurations.
Two, the property of the corresponding root name server of name server, top level domain server and permission name server It can feature.Such as: the CPU configuration of root name server, memory configurations.The CPU configuration of top level domain server, memory configurations Deng.The CPU configuration of permission name server, memory configurations etc..
Further, it is assumed that there are 4 name servers, arrange from high to low according to domain name mapping performance in N=4, point Not are as follows: name server D, name server A, name server C and name server B.Based on this, the embodiment of the present invention is provided Domain name resolution process include: terminal device first to name server D send include domain name analysis request, work as domain name service When device D successfully resolved, the corresponding IP address of the domain name is returned to terminal device.When name server D parses failure, domain name Server D sends the resolution response for being used to indicate parsing failure to terminal device, that is, reports an error.At this moment terminal device continues to domain name Server C sends analysis request, and so on, until terminal device is resolved to domain name corresponding IP address.
It should be noted that for any one name server, so-called successfully resolved refers to that its own can parse Above-mentioned iterative query method is used to the corresponding IP address of domain name or the name server, it is corresponding to can parse domain name IP。
To sum up, compared with the existing technology, i.e., the access order of N number of name server is fixed, and the embodiment of the present invention is provided Method so that domain name mapping performance sequence from high to low of the terminal device according to N number of name server, successively to N number of domain Name server sends the analysis request comprising domain name, so as to shorten the waiting time of network access.
On the basis of the above embodiments, further, the domain name mapping performance of N number of name server can be by as follows Two ways obtains:
A kind of optional way: terminal device carries out domain name mapping performance test to N number of name server respectively, to obtain N The domain name mapping performance of a name server.
Another optional way: N number of name server passes through domain name mapping performance test respectively, obtains respective domain name solution Performance is analysed, and translates domain names into performance and is sent to terminal device.
Another optional way: P name server passes through domain name mapping performance test respectively, obtains respective domain name solution Performance is analysed, and translates domain names into performance and is sent to terminal device, the domain name mapping that terminal device is sent according to P name server The sequence of performance from high to low selects top n name server and determines the server access sequence, wherein P >=N.
The first above-mentioned optional way is described in detail first below:
A kind of optional way: terminal device periodically carries out domain name mapping performance test to N number of name server respectively, Obtain the domain name mapping performance of N number of name server.
Such as: terminal device carries out a domain name mapping performance test respectively to N number of name server daily, alternatively, eventually End equipment is every 3 hours to carrying out a domain name mapping performance test, the embodiment of the present invention pair respectively to N number of name server Execute the period of domain name mapping performance test with no restrictions.
Another optional way: terminal device carries out domain name to N number of name server according to the trigger action of user respectively Analysis feature test, obtains the domain name mapping performance of N number of name server.
Specifically, Fig. 7 is the flow chart for the acquisition domain name mapping performance that one embodiment of the invention provides, as shown in fig. 7, should Method includes the following steps:
Step S71: the trigger action of terminal device detection user.
Step S72: if trigger action is to the trigger action of preset function component, terminal device is to N domain name service Device carries out domain name mapping performance test respectively, obtains the domain name mapping performance of N number of name server.
Preset function component is the operating assembly for being updated to server access sequence.
Such as: the preset function component can be existing Home key, volume key etc..In this case, above-mentioned triggering Operation can be the pressing operation for meeting preset condition.Such as: when user's long-pressing Home key reaches preset duration (such as 10ms) When, terminal device then carries out domain name mapping performance test to N number of name server respectively, obtains the domain name of N number of name server Analysis feature.Alternatively, when user reaches preset times to volume key pressing, terminal device is then to N number of domain in preset duration Name server carries out domain name mapping performance test respectively, obtains the domain name mapping performance of N number of name server.
Alternatively,
Preset function component can be the virtual key on screen.In this case, above-mentioned trigger action can be a little The operation such as hit, touch, sliding.Such as: Fig. 8 is the interface schematic diagram that one embodiment of the invention provides, as shown in figure 8, the interface On show the virtual key of " oppo ", when the user clicks, touch or slide the key after, terminal device will be to N number of domain Name server carries out domain name mapping performance test respectively, obtains the domain name mapping performance of N number of name server.
Optionally, domain name mapping performance test is being carried out to N number of name server respectively, is obtaining N number of name server After domain name mapping performance, terminal device can be with display reminding information, to prompt user's domain name analysis feature to be elevated.Example Such as: Fig. 9 is the interface schematic diagram that one embodiment of the invention provides, as shown in figure 9, terminal device shows " current domain name analyticity 10% " can be improved.Optionally, above-mentioned domain name mapping performance includes: that domain name averagely parses duration and/or domain name is averagely parsed into Power.Therefore, domain name mapping performance test is being carried out to N number of name server respectively, is obtaining the domain name solution of N number of name server After analysing performance, terminal device can be shortened with display reminding information with prompting user's domain name averagely to parse duration.Example Such as: Figure 10 is the interface schematic diagram that one embodiment of the invention provides, and as shown in Figure 10, terminal device shows that " current domain name is average Parsing duration has been shorter by 10% ".Alternatively, Figure 11 is the interface schematic diagram that one embodiment of the invention provides, such as Figure 11 institute Show, terminal device shows " current domain name average success rate has been elevated 5% ".
To sum up, the embodiment of the invention provides terminal devices periodically to carry out domain respectively to N number of name server Name analysis feature test, alternatively, trigger action of the terminal device according to user, carries out domain name solution to N number of name server respectively Performance test is analysed, the domain name mapping performance of N number of name server is obtained.Based on this, terminal device could be made according to N number of domain name The sequence of the domain name mapping performance of server from high to low successively sends the parsing comprising domain name to N number of name server It requests, is until parsing to obtain the corresponding IP address of domain name from a name server in the N name server Only, to shorten the waiting time that network accesses.Further, in embodiments of the present invention, to N number of name server respectively into Row domain name mapping performance test, after obtaining the domain name mapping performance of N number of name server, terminal device can be with display reminding Information, to prompt user's domain name analysis feature to be elevated, so that user is intuitively clearly seen that the optimization of domain name mapping performance Effect.
Assuming that domain name mapping performance includes: that domain name averagely parses duration, then terminal device obtains the side of domain name mapping performance Formula includes at least following two:
A kind of optional way: Figure 12 A is that the domain name for the N number of name server of acquisition that one embodiment of the invention provides averagely solves The flow chart of duration is analysed, as illustrated in fig. 12, this method includes following process:
Step S121a: terminal device obtains M domain name, and wherein M is natural number.
Step S122a: for each name server in N number of name server, terminal device determines every in M domain name The domain name mapping duration of a domain name.
Step S123a: terminal device is averaged to the domain name mapping duration of M domain name of each name server, obtains Domain name to each name server averagely parses duration.
As described above, terminal device periodically can carry out domain name mapping performance test to N number of name server respectively, Alternatively, trigger action of the terminal device according to user, carries out domain name mapping performance test to N number of name server respectively, obtains N The domain name mapping performance of a name server.Based on this, the M domain name that terminal device currently obtains and the M domain obtained before Name may be the same or different.But during same wheel obtains domain name and averagely parses duration, N number of name server M corresponding domain name is all identical, such as: name server A, B, C, D, corresponding M domain name be domain name 1, domain name 2, Domain name 3 ... domain name M.Optionally, above-mentioned M domain name can be buffered in the memory or caching of terminal device.
Further, according to above-mentioned domain name resolution process it is found that there are following several situations for terminal device:
One, terminal device receives the resolution response including the corresponding IP address of domain name.
Two, local domain name server, root name server, top level domain server and permission name server can be just Often work, but in the case where not being resolved to the IP address of domain name, terminal device receives the response that reports an error.
Three, when local domain name server, root name server, top level domain server or permission name server are constituted Network system when there is network failure, terminal device can not be received in preset duration it is described including the corresponding IP of domain name The resolution response of location and the response that reports an error.
Based on above-mentioned three kinds of situations, the definition of domain name mapping duration is illustrated: if receiving this in preset duration The resolution response of the corresponding IP address of domain name, then to connecing a length of analysis request since comprising the domain name is sent when domain name mapping The duration that the resolution response comprising the corresponding IP address of the domain name is passed through is received, if receiving in preset duration for reporting an error Response, then a length of analysis request since comprising the domain name is sent when domain name mapping to receive the response that reports an error it is passed through when It is long, if not receiving the resolution response of the corresponding IP address of the domain name and the response that reports an error in preset duration, when domain name mapping A length of preset duration.
Further, terminal device carries out flat in the domain name mapping duration to the M domain name to each name server , when obtaining the domain name of each name server and averagely parsing duration, weighted average method can be used, wherein each domain name Corresponding weight may be the same or different.Such as: the weight that the highest domain name of utilization rate can be set is maximum, uses The weight time of the high domain name of rate time is big, and so on, the weight of the minimum domain name of utilization rate is minimum.The embodiment of the present invention to how Determine the weight of M domain name with no restrictions.
Another optional way: Figure 12 B be another embodiment of the present invention provides the N number of name server of acquisition domain name it is flat The flow chart of duration is parsed, as shown in Figure 12 B, this method includes following process:
Step S121b: terminal device is for each name server in N number of name server, the determining and domain name service The corresponding M domain name of device, wherein M is natural number.
Step S122b: being directed to each name server, and terminal device determines the domain of each domain name in corresponding M domain name Name parsing duration.
Step S123b: each name server, progress when terminal device is to the domain name mapping of corresponding M domain name are directed to Row is average, and the domain name for obtaining each name server averagely parses duration.
As described above, terminal device periodically can carry out domain name mapping performance test to N number of name server respectively, Alternatively, trigger action of the terminal device according to user, carries out domain name mapping performance test to N number of name server respectively, obtains N The domain name mapping performance of a name server.Based on this, the M domain name that terminal device currently obtains and the M domain obtained before Name may be the same or different.Further, during same wheel obtains domain name and averagely parses duration, N number of domain name clothes M domain name corresponding to business device may be the same or different, such as: name server A, corresponding M domain name are domain name 1, domain name 2, domain name 3 ... domain name M, name server B, corresponding M domain name are domain name M+1, domain name 2, domain name 3 ... domain Name 2M.Optionally, the corresponding M domain name of each name server can be buffered in the memory or caching of terminal device.
Further, as described above, according to above-mentioned domain name resolution process it is found that there are above-mentioned for terminal device Three kinds of situations are based on above-mentioned three kinds of situations, and the definition of domain name mapping duration is: if it is corresponding to receive the domain name in preset duration IP address resolution response, then include to receiving a length of analysis request since comprising the domain name is sent when domain name mapping The duration that the resolution response of the corresponding IP address of the domain name is passed through, if being received in preset duration for the response that reports an error, To receiving the passed through duration of response that reports an error a length of analysis request since comprising the domain name is sent when domain name mapping, if Preset duration does not receive the resolution response of the corresponding IP address of the domain name and the response that reports an error, then a length of default when domain name mapping Duration.
Further, terminal device carries out flat in the domain name mapping duration to the M domain name to each name server , when obtaining the domain name of each name server and averagely parsing duration, weighted average method can be used, wherein each domain name Corresponding weight may be the same or different.Such as: the weight that the highest domain name of utilization rate can be set is maximum, uses The weight time of the high domain name of rate time is big, and so on, the weight of the minimum domain name of utilization rate is minimum.The embodiment of the present invention to how Determine the weight of M domain name with no restrictions.
Optionally, it is based on the corresponding embodiment of Figure 12 A or Figure 12 B, the embodiment of the present invention considers name server number Amount is big, and in order to improve the efficiency for obtaining domain name and averagely parsing duration, the embodiment of the present invention selects domain in P name server Name is averagely parsed into power and is greater than the default N number of name server for being parsed into power, wherein P >=N.Wherein, this is preset and is parsed into Power can be arranged according to the actual situation.The embodiment of the present invention is without limitation.
Wherein, terminal device can determine that being averaged for name server is parsed into power by the following two kinds optional way.
A kind of optional way: terminal device obtains M domain name, and wherein M is natural number;For the N name server In each name server, the domain name number being successfully parsed in the M domain name is determined, with each name server of determination Domain name is averagely parsed into power.
It should be noted that terminal device is parsed into M domain used in power in being averaged for name server of calculating Name, and the M domain name used in the average parsing duration for calculating name server may be the same or different, of the invention Embodiment is without limitation.
Further, terminal device can periodically calculate being averaged for name server and be parsed into power, or with Family triggers lower being averaged for calculating name server and is parsed into power, and the embodiment of the present invention is without limitation.
Based on this, the M domain name that terminal device currently obtains can be identical with the M domain name obtained before, can also not Together.Further, during the calculating of same wheel is averagely parsed into power, M domain name corresponding to N number of name server can With identical, can also be different.M domain name corresponding to N number of name server is all identical, such as: name server A, B, C, D, Its corresponding M domain name is domain name 1, domain name 2, domain name 3 ... domain name M.
Another optional way: for each name server in N number of name server, the determining and name server pair The M domain name answered, wherein M is natural number;For each name server in N number of name server, corresponding M domain name is determined In the domain name number that is successfully parsed, power is parsed into averagely with the domain name of each name server of determination.
It should be noted that terminal device is parsed into M domain used in power in being averaged for name server of calculating Name, and the M domain name used in the average parsing duration for calculating name server may be the same or different, of the invention Embodiment is without limitation.
Further, terminal device can periodically calculate being averaged for name server and be parsed into power, or with Family triggers lower being averaged for calculating name server and is parsed into power, and the embodiment of the present invention is without limitation.
Based on this, the M domain name that terminal device currently obtains can be identical with the M domain name obtained before, can also not Together.Further, during same wheel obtains domain name and averagely parses duration, M domain corresponding to N name server Name may be the same or different, such as: name server A, corresponding M domain name are domain name 1, domain name 2, domain name 3 ... domain name M, name server B, corresponding M domain name are domain name M+1, domain name 2, domain name 3 ... domain name 2M.
To sum up, it the embodiment of the invention provides the method that the domain name for obtaining N number of name server averagely parses duration, is based on This, could make terminal device averagely parse the ascending sequence of duration according to the domain name of N number of name server, successively to N A name server sends the analysis request comprising domain name, takes until from a domain name in N number of name server Until business device parses to obtain the corresponding IP address of domain name, to shorten the waiting time of network access.
Assuming that domain name mapping performance includes: that domain name is averagely parsed into power, then terminal device obtains domain name mapping performance Mode includes at least following two:
A kind of optional way: Figure 13 A is the domain name mapping for the N number of name server of acquisition that one embodiment of the invention provides The flow chart of energy, as shown in FIG. 13A, this method includes following process:
Step S131a: terminal device obtains M domain name, and wherein M is natural number.
Step S132a: for each name server in N number of name server, terminal device determines quilt in M domain name The domain name number that success parses, is averagely parsed into power with the domain name of each name server of determination.
As described above, terminal device periodically can carry out domain name mapping performance test to N number of name server respectively, Alternatively, trigger action of the terminal device according to user, carries out domain name mapping performance test to N number of name server respectively, obtains N The domain name mapping performance of a name server.Based on this, the M domain name that terminal device currently obtains and the M domain obtained before Name may be the same or different.But during same wheel obtains domain name and is averagely parsed into power, N number of domain name service M domain name corresponding to device is all identical, such as: name server A, B, C, D, corresponding M domain name be domain name 1, domain name 2, Domain name 3 ... domain name M.Optionally, above-mentioned M domain name can be buffered in the memory or caching of terminal device.
Further, for each name server in N number of name server, it is assumed that terminal device determines M domain name In the domain name number that is successfully parsed be M1, then terminal device determines that the domain name of the name server is averagely parsed into power and is M1/M, "/" expression are divided by.
Another optional way: Figure 13 B be another embodiment of the present invention provides the N number of name server of acquisition domain name it is flat It is parsed into the flow chart of power, as shown in Figure 13 B, this method includes following process:
Step S131b: for each name server in N number of name server, terminal device determination and the domain name service The corresponding M domain name of device, wherein M is natural number.
Step S132b: for each name server in N number of name server, terminal device determines corresponding M domain name In the domain name number that is successfully parsed, power is parsed into averagely with the domain name of each name server of determination.
As described above, terminal device periodically can carry out domain name mapping performance test to N number of name server respectively, Alternatively, trigger action of the terminal device according to user, carries out domain name mapping performance test to N number of name server respectively, obtains N The domain name mapping performance of a name server.Based on this, the M domain name that terminal device currently obtains and the M domain obtained before Name may be the same or different.Further, during same wheel obtains domain name and averagely parses duration, N number of domain name clothes M domain name corresponding to business device may be the same or different, such as: name server A, corresponding M domain name are domain name 1, domain name 2, domain name 3 ... domain name M, name server B, corresponding M domain name are domain name M+1, domain name 2, domain name 3 ... domain Name 2M.Optionally, the corresponding M domain name of each name server can be buffered in the memory or caching of terminal device.
Optionally, it is based on the corresponding embodiment of Figure 13 A or Figure 13 B, the embodiment of the present invention considers name server number Amount is big, and in order to improve the efficiency for obtaining domain name and being averagely parsed into power, the embodiment of the present invention selects domain in P name server Name averagely parsing duration is less than N number of name server of default parsing duration, wherein P >=N.Wherein, which can To be arranged according to the actual situation.The embodiment of the present invention is without limitation.
Terminal device can use Figure 12 A or Figure 12 B corresponding method, to determine that the domain name of name server averagely parses Duration.Details are not described herein.
To sum up, the embodiment of the invention provides the method that the domain name for obtaining N number of name server is averagely parsed into power, bases In this, terminal device could be made averagely to be parsed into the descending sequence of power according to the domain name of N number of name server, successively Sent to N number of name server include domain name analysis request, until from a domain name in N number of name server Until server parses to obtain the corresponding address IP of domain name, to shorten the waiting time of network access.
Above-mentioned domain name mapping performance test is all that terminal device executes, in fact, as above, domain name mapping performance test It can also be what name server executed.
Such as: N number of name server passes through domain name mapping performance test respectively, obtains respective domain name mapping performance, and It translates domain names into performance and is sent to terminal device.
Alternatively,
P name server passes through domain name mapping performance test respectively, obtains respective domain name mapping performance, and by domain name Analysis feature is sent to terminal device, and domain name mapping performance that terminal device is sent according to P name server is from high to low Sequentially, it selects top n name server and determines the access order of N number of name server, wherein P >=N.
Wherein, name server can periodically carry out domain name mapping performance test, alternatively, executing under user's triggering Domain name mapping performance test, it is so-called to execute domain name mapping performance test under user's triggering, refer to that terminal device can detecte use The trigger action at family;If trigger action is the trigger action to preset function component, instruction is sent to N number of name server and is disappeared Breath, to indicate that N number of name server carries out domain name mapping performance test respectively, obtains the domain name mapping of N number of name server Energy.
Optionally, domain name mapping performance, comprising: domain name averagely parses duration and/or domain name is averagely parsed into power.Its In, when domain name mapping performance includes that domain name averagely parses duration, name server determines the method that domain name averagely parses duration Determine that domain name averagely parses that the method for duration is identical, and the embodiment of the present invention no longer illustrates this with terminal device.Likewise, working as domain When name analysis feature includes that domain name is averagely parsed into power, name server determines that domain name is averagely parsed into method and the end of power End equipment determine domain name averagely parse duration method it is identical, the embodiment of the present invention no longer illustrates this.
To sum up, the embodiment of the invention provides the methods that N number of name server obtains domain name mapping performance, and will acquire Domain name mapping performance be sent to terminal device, be based on this so that domain name mapping of the terminal device according to N name server The sequence of performance from high to low successively sends the analysis request comprising domain name to N number of name server, so as to shorten network The waiting time of access.
Domain name analytic method provided in an embodiment of the present invention has been described in detail above, the embodiment of the present invention is described below The client of offer.
Figure 14 is the structural schematic diagram for the client that one embodiment of the invention provides.The present embodiment provides a kind of client, The client is browser client or application program (Application, referred to as: APP), and client application is set in terminal It is standby.The terminal device can be PC or mobile terminal etc., the mobile terminal be referred to as UE, access terminal, subscriber unit, Subscriber station, movement station, mobile station, user terminal, terminal, wireless telecom equipment, user agent or user apparatus.Mobile terminal can Be smart phone, cellular phone, wireless phone, tablet computer, PDA device, the handheld device with wireless communication function or It is connected to other processing equipments of radio modem, mobile unit, wearable device etc..As shown in figure 14, the client Include:
Determining module 141, it is N number of for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as The access order of name server;
Sending module 142 is successively sent out to N number of name server for the access order according to N number of name server The analysis request comprising domain name is sent, it is corresponding until parsing to obtain domain name from a name server in N number of name server Until IP address, N >=2;Wherein, server access sequence be according to N number of name server domain name mapping performance from high to low Sequence.
Optionally, the client further include: test module 143, for by the domain name mapping performance of N number of name server Sequence from high to low is determined as before the access order of N number of name server, carries out domain name respectively to N name server Analysis feature test, obtains the domain name mapping performance of N number of name server.
Optionally, test module 143 is specifically used for: periodically carrying out domain name mapping respectively to N number of name server It can test, obtain the domain name mapping performance of N number of name server;Alternatively, according to the trigger action of user, to N number of domain name service Device carries out domain name mapping performance test respectively, obtains the domain name mapping performance of N number of name server.
Optionally, test module 143 are specifically used for: detecting the trigger action of user;If trigger action is to preset function The trigger action of component then carries out domain name mapping performance test to N number of name server respectively, obtains N number of name server Domain name mapping performance;Wherein, preset function component is the operating assembly for being updated to server access sequence.
Optionally, client further include: display module 144, for carrying out domain name mapping respectively to N number of name server Performance test, after obtaining the domain name mapping performance of N number of name server, to user's display reminding information, prompt information is used for Prompt user's domain name analysis feature has been elevated.
Optionally, domain name mapping performance, comprising: domain name averagely parses duration;Correspondingly, test module 143, specific to use In: M domain name is obtained, wherein M is natural number;For each name server in N number of name server, determine in M domain name The domain name mapping duration of each domain name.
Optionally, domain name mapping performance, comprising: domain name averagely parses duration;Correspondingly, test module 143, specific to use In: for each name server in N number of name server, determine M domain name corresponding with the name server, wherein M is Natural number;For each name server, the domain name mapping duration of each domain name in corresponding M domain name is determined.
Optionally, test module 143 are specifically used for: if receiving the corresponding IP address of the domain name in preset duration Resolution response, it is determined that a length of when domain name mapping includes the domain name to receiving since being sent the analysis request comprising the domain name The duration that the resolution response of corresponding IP address is passed through;If being received in preset duration for the response that reports an error, it is determined that domain To receiving the passed through duration of response that reports an error a length of analysis request since comprising the domain name is sent when name parsing;If pre- If duration does not receive the resolution response of the corresponding IP address of the domain name and the response that reports an error, it is determined that a length of pre- when domain name mapping If duration.
Optionally, client further include: first choice module 145, for carrying out domain name respectively to N number of name server Before analysis feature test, selects domain name to be averagely parsed into power from P name server and be greater than the default N for being parsed into power A name server, wherein P >=N.
Optionally, domain name mapping performance, comprising: domain name is averagely parsed into power;Correspondingly, test module 143, specific to use In: M domain name is obtained, wherein M is natural number;For each name server in N number of name server, determine in M domain name The domain name number being successfully parsed averagely is parsed into power with the domain name of each name server of determination.
Optionally, domain name mapping performance, comprising: domain name is averagely parsed into power;Correspondingly, test module 143, specific to use In: for each name server in N number of name server, determine M domain name corresponding with the name server, wherein M is Natural number;For each name server in N number of name server, the domain name being successfully parsed in corresponding M domain name is determined Number is averagely parsed into power with the domain name of each name server of determination.
Optionally, client further include: the second selecting module 146, for selecting domain name average from P name server N number of name server that duration is less than default parsing duration is parsed, wherein P >=N.
Optionally, client further include:
Receiving module 147, for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as N Before the access order of a name server, the domain name mapping performance that N number of name server is sent is received respectively.
The client of the embodiment of the present invention can be used for executing the technical solution in the above-mentioned each method embodiment of the present invention, That the realization principle and technical effect are similar is similar for it, and details are not described herein again.
Figure 15 is the structural schematic diagram for the terminal device that one embodiment of the invention provides.The mobile terminal is referred to as UE, access terminal, subscriber unit, subscriber station, movement station, mobile station, user terminal, terminal, wireless telecom equipment, user agent Or user apparatus.Mobile terminal can be smart phone, cellular phone, wireless phone, tablet computer, PDA device, have wirelessly The handheld device of communication function is connected to other processing equipments of radio modem, mobile unit, wearable device etc.. As shown in figure 15, which includes: processor 151 and memory 152.
The memory 152 stores computer executed instructions;
The processor 151 executes the computer executed instructions that the memory 152 stores, so that the processor 152 Execute above-mentioned domain name analytic method.
Optionally, the terminal device further include: transceiver 153, for being realized with other network equipments or terminal device Communication.
The terminal device of the embodiment of the present invention can be used for executing the technical side in the above-mentioned each method embodiment of the present invention Case, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Figure 16 be another embodiment of the present invention provides terminal device structural schematic diagram.The mobile terminal is referred to as UE, access terminal, subscriber unit, subscriber station, movement station, mobile station, user terminal, terminal, wireless telecom equipment, user agent Or user apparatus.Mobile terminal can be smart phone, cellular phone, wireless phone, tablet computer, PDA device, have wirelessly The handheld device of communication function is connected to other processing equipments of radio modem, mobile unit, wearable device etc.. As shown in Figure 16, which includes: processor 161, memory 162 and above-mentioned client 163.
The terminal device of the embodiment of the present invention can be used for executing the technical side in the above-mentioned each method embodiment of the present invention Case, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer executed instructions, for realizing any of the above-described domain name mapping side when computer executed instructions are executed by processor Method.
The embodiment of the present invention also provides a kind of computer program product, which includes computer executed instructions, meter Calculation machine executes instruction when being executed by processor for realizing any of the above-described domain name analytic method.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Computer program above-mentioned can store in a computer-readable storage medium In.For the computer program when being executed by processor, realization includes the steps that above-mentioned each method embodiment;And storage above-mentioned is situated between Matter includes: the various media that can store program code such as ROM, RAM, magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (34)

1. a kind of domain name analytic method characterized by comprising
The sequence of the domain name mapping performance of N number of name server from high to low is determined as to the access of N number of name server Sequentially;
According to the access order of N number of name server, successively send to N number of name server comprising domain name Analysis request parses with obtaining the corresponding IP of domain name until from a name server in N number of name server Until location, N >=2.
2. the method according to claim 1, wherein the domain name mapping performance by N number of name server by High to Low sequence is determined as before the access order of N number of name server, further includes:
Domain name mapping performance test is carried out to N number of name server respectively, obtains the domain name solution of N number of name server Analyse performance.
3. according to the method described in claim 2, it is characterized in that, described carry out domain name to N number of name server respectively Analysis feature test, obtains the domain name mapping performance of N number of name server, comprising:
Periodically domain name mapping performance test is carried out to N number of name server respectively, obtains N number of name server Domain name mapping performance.
4. according to the method described in claim 2, it is characterized in that, described carry out domain name to N number of name server respectively Analysis feature test, obtains the domain name mapping performance of N number of name server, comprising:
According to the trigger action of user, domain name mapping performance test is carried out to N number of name server respectively, obtains the N The domain name mapping performance of a name server.
5. according to the method described in claim 4, it is characterized in that, the trigger action according to user, to N number of domain name Server carries out domain name mapping performance test respectively, obtains the domain name mapping performance of N number of name server, comprising:
Detect the trigger action of user;
If the trigger action is to carry out domain respectively to N number of name server to the trigger action of preset function component Name analysis feature test, obtains the domain name mapping performance of N number of name server;
Wherein, the preset function component is the operating assembly for being updated to the server access sequence.
6. according to the method described in claim 5, it is characterized in that, described carry out domain name to N number of name server respectively Analysis feature test, after obtaining the domain name mapping performance of N number of name server, further includes:
To user's display reminding information, the prompt information is for prompting user's domain name analysis feature to be elevated.
7. the method according to any one of claim 2~6, which is characterized in that domain name analysis feature, comprising: domain Name averagely parses duration;
Correspondingly, described carry out domain name mapping performance test to N number of name server respectively, N number of domain name clothes are obtained The domain name mapping performance of business device, comprising:
M domain name is obtained, wherein M is natural number;
For each name server in N number of name server, the domain name mapping of each domain name in the M domain name is determined Duration;
It is averaged to the domain name mapping duration of M domain name of each name server, obtains the domain name of each name server Averagely parse duration.
8. the method according to any one of claim 2~6, which is characterized in that domain name analysis feature, comprising: domain Name averagely parses duration;
Correspondingly, described carry out domain name mapping performance test to N number of name server respectively, N number of domain name clothes are obtained The domain name mapping performance of business device, comprising:
For each name server in N number of name server, M domain name corresponding with the name server is determined, Middle M is natural number;
For each name server, the domain name mapping duration of each domain name in corresponding M domain name is determined;
For each name server, it is averaged to the domain name mapping duration of corresponding M domain name, obtains each domain name service The domain name of device averagely parses duration.
9. method according to claim 7 or 8, which is characterized in that determine the domain name mapping duration of each domain name, comprising:
If receiving the resolution response of the corresponding IP address of the domain name in preset duration, it is determined that domain name is a length of when parsing Passed through since being sent the analysis request comprising the domain name to receiving the resolution response comprising the corresponding IP address of the domain name Duration;
If being received in the preset duration for the response that reports an error, it is determined that domain name is a length of from including the domain name when parsing Analysis request send and start to receiving the passed through duration of response that reports an error;
If not receiving the resolution response and the response that reports an error of the corresponding IP address of the domain name in the preset duration, really Determine a length of preset duration when domain name parsing.
10. according to the described in any item methods of claim 7-9, which is characterized in that described to distinguish N number of name server Before progress domain name mapping performance test, further includes:
It selects domain name to be averagely parsed into power from P name server and is greater than the default N number of name server for being parsed into power, Wherein P >=N.
11. the method according to any one of claim 2~6, which is characterized in that domain name analysis feature, comprising: domain Name is averagely parsed into power;
Correspondingly, described carry out domain name mapping performance test to N number of name server respectively, N number of domain name clothes are obtained The domain name mapping performance of business device, comprising:
M domain name is obtained, wherein M is natural number;
For each name server in N number of name server, the domain name being successfully parsed in the M domain name is determined Number, is averagely parsed into power with the domain name of each name server of determination.
12. the method according to any one of claim 2~6, which is characterized in that domain name analysis feature, comprising: domain Name is averagely parsed into power;
Correspondingly, described carry out domain name mapping performance test to N number of name server respectively, N number of domain name clothes are obtained The domain name mapping performance of business device, comprising:
For each name server in N number of name server, M domain name corresponding with the name server is determined, Middle M is natural number;
For each name server in N number of name server, the domain name being successfully parsed in corresponding M domain name is determined Number is averagely parsed into power with the domain name of each name server of determination.
13. method according to claim 11 or 12, which is characterized in that further include:
Domain name is selected averagely to parse N number of name server that duration is less than default parsing duration from P name server, wherein P≥N。
14. the method according to claim 1, wherein the domain name mapping performance by N number of name server by High to Low sequence is determined as before the access order of N number of name server, further includes:
The domain name mapping performance that N number of name server is sent is received respectively.
15. the method according to claim 1, wherein the domain name mapping performance by N number of name server by High to Low sequence is determined as before the access order of N number of name server, further includes:
The domain name mapping performance that P name server is sent is received respectively;
According to the sequence of the domain name mapping performance of P name server transmission from high to low, top n domain name service is selected Device, wherein P >=N.
16. method according to claim 14 or 15, which is characterized in that domain name analysis feature, comprising: domain name is average Parsing duration and/or domain name are averagely parsed into power.
17. a kind of client characterized by comprising
Determining module, for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as N number of domain name The access order of server;
Sending module is successively sent to N number of name server for the access order according to N number of name server Analysis request comprising domain name, it is described until parsing to obtain from a name server in N number of name server Until the corresponding IP address of domain name, N >=2.
18. client according to claim 17, which is characterized in that further include:
Test module, for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as N number of domain Before the access order of name server, domain name mapping performance test is carried out to N number of name server respectively, obtains the N The domain name mapping performance of a name server.
19. client according to claim 18, which is characterized in that the test module is specifically used for:
Periodically domain name mapping performance test is carried out to N number of name server respectively, obtains N number of name server Domain name mapping performance.
20. client according to claim 19, which is characterized in that the test module is specifically used for:
According to the trigger action of user, domain name mapping performance test is carried out to N number of name server respectively, obtains the N The domain name mapping performance of a name server.
21. client according to claim 20, which is characterized in that the test module is specifically used for:
Detect the trigger action of user;
If the trigger action is to carry out domain respectively to N number of name server to the trigger action of preset function component Name analysis feature test, obtains the domain name mapping performance of N number of name server;
Wherein, the preset function component is the operating assembly for being updated to the server access sequence.
22. client according to claim 21, which is characterized in that further include:
Display module obtains N number of domain for carrying out domain name mapping performance test respectively to N number of name server After the domain name mapping performance of name server, Xiang Suoshu user's display reminding information, the prompt information is for prompting user domain Name analysis feature has been elevated.
23. client described in any one of 8~22 according to claim 1, which is characterized in that domain name analysis feature, packet Include: domain name averagely parses duration;
Correspondingly, the test module, is specifically used for:
M domain name is obtained, wherein M is natural number;
For each name server in N number of name server, the domain name mapping of each domain name in the M domain name is determined Duration;
It is averaged to the domain name mapping duration of M domain name of each name server, obtains the domain name of each name server Averagely parse duration.
24. client described in any one of 8~22 according to claim 1, which is characterized in that domain name analysis feature, packet Include: domain name averagely parses duration;
Correspondingly, the test module, is specifically used for:
For each name server in N number of name server, M domain name corresponding with the name server is determined, Middle M is natural number;
For each name server, the domain name mapping duration of each domain name in corresponding M domain name is determined;
For each name server, it is averaged to the domain name mapping duration of corresponding M domain name, obtains each domain name service The domain name of device averagely parses duration.
25. the client according to claim 23 or 24, which is characterized in that the test module is specifically used for:
If receiving the resolution response of the corresponding IP address of the domain name in preset duration, it is determined that domain name is a length of when parsing Passed through since being sent the analysis request comprising the domain name to receiving the resolution response comprising the corresponding IP address of the domain name Duration;
If being received in the preset duration for the response that reports an error, it is determined that domain name is a length of from including the domain name when parsing Analysis request send and start to receiving the passed through duration of response that reports an error;
If not receiving the resolution response and the response that reports an error of the corresponding IP address of the domain name in the preset duration, really Determine a length of preset duration when domain name parsing.
26. the client according to any one of claim 23-25, which is characterized in that further include:
First choice module, for before carrying out domain name mapping performance test respectively to N number of name server, from P It selects domain name to be averagely parsed into power in name server and is greater than the default N number of name server for being parsed into power, wherein P >=N.
27. client described in any one of 8~22 according to claim 1, which is characterized in that domain name analysis feature, packet Include: domain name is averagely parsed into power;
Correspondingly, the test module, is specifically used for:
M domain name is obtained, wherein M is natural number;
For each name server in N number of name server, the domain name being successfully parsed in the M domain name is determined Number, is averagely parsed into power with the domain name of each name server of determination.
28. client described in any one of 8~22 according to claim 1, which is characterized in that domain name analysis feature, packet Include: domain name is averagely parsed into power;
Correspondingly, the test module, is specifically used for:
For each name server in N number of name server, M domain name corresponding with the name server is determined, Middle M is natural number;
For each name server in N number of name server, the domain name being successfully parsed in corresponding M domain name is determined Number is averagely parsed into power with the domain name of each name server of determination.
29. the client according to claim 27 or 28, which is characterized in that further include:
Second selecting module, for selecting domain name averagely to parse the N that duration is less than default parsing duration from P name server A name server, wherein P >=N.
30. client according to claim 17, which is characterized in that further include:
Receiving module, for the sequence of the domain name mapping performance of N number of name server from high to low to be determined as N number of domain Before the access order of name server, the domain name mapping performance that N number of name server is sent is received respectively.
31. a kind of terminal device characterized by comprising processor and memory;
The memory stores computer executed instructions;
The processor executes the computer executed instructions of the memory storage, so that the processor executes such as claim 1 to 16 described in any item domain name analytic methods.
32. a kind of terminal device characterized by comprising processor, memory and such as any one of claim 17~30 institute The client stated.
33. terminal device according to claim 32, which is characterized in that the client is browser client or answers With program APP client.
34. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium It executes instruction, when the computer executed instructions are executed by processor for realizing as described in any one of claim 1 to 16 Domain name analytic method.
CN201811407229.1A 2018-11-23 2018-11-23 Domain name inquiry method, device, equipment and storage medium Pending CN109510883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811407229.1A CN109510883A (en) 2018-11-23 2018-11-23 Domain name inquiry method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811407229.1A CN109510883A (en) 2018-11-23 2018-11-23 Domain name inquiry method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109510883A true CN109510883A (en) 2019-03-22

Family

ID=65750404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811407229.1A Pending CN109510883A (en) 2018-11-23 2018-11-23 Domain name inquiry method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109510883A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913007A (en) * 2019-11-29 2020-03-24 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
CN111193815A (en) * 2019-12-24 2020-05-22 腾讯科技(深圳)有限公司 Domain name resolution method, domain name resolution device, computer readable storage medium and computer equipment
CN113225408A (en) * 2021-05-08 2021-08-06 中国工商银行股份有限公司 Domain name processing method and device
CN113259501A (en) * 2021-05-13 2021-08-13 北京金山云网络技术有限公司 Website access method and device, electronic equipment and readable storage medium
CN115277638A (en) * 2022-09-30 2022-11-01 中国信息通信研究院 Performance test method, device, equipment and medium of block chain domain name resolution system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956400A (en) * 2005-10-27 2007-05-02 国际商业机器公司 Method and system for selecting domain name server
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN105681133A (en) * 2016-03-14 2016-06-15 中国科学院计算技术研究所 Method for detecting whether DNS server can prevent network attack
CN107888716A (en) * 2017-12-05 2018-04-06 广东欧珀移动通信有限公司 A kind of sort method of domain name resolution server, terminal device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956400A (en) * 2005-10-27 2007-05-02 国际商业机器公司 Method and system for selecting domain name server
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN105681133A (en) * 2016-03-14 2016-06-15 中国科学院计算技术研究所 Method for detecting whether DNS server can prevent network attack
CN107888716A (en) * 2017-12-05 2018-04-06 广东欧珀移动通信有限公司 A kind of sort method of domain name resolution server, terminal device and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913007A (en) * 2019-11-29 2020-03-24 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
CN110913007B (en) * 2019-11-29 2022-03-29 杭州安恒信息技术股份有限公司 Domain name resolution method, device and equipment
CN111193815A (en) * 2019-12-24 2020-05-22 腾讯科技(深圳)有限公司 Domain name resolution method, domain name resolution device, computer readable storage medium and computer equipment
CN113225408A (en) * 2021-05-08 2021-08-06 中国工商银行股份有限公司 Domain name processing method and device
CN113225408B (en) * 2021-05-08 2023-04-07 中国工商银行股份有限公司 Domain name processing method and device
CN113259501A (en) * 2021-05-13 2021-08-13 北京金山云网络技术有限公司 Website access method and device, electronic equipment and readable storage medium
CN115277638A (en) * 2022-09-30 2022-11-01 中国信息通信研究院 Performance test method, device, equipment and medium of block chain domain name resolution system
CN115277638B (en) * 2022-09-30 2022-12-16 中国信息通信研究院 Performance test method, device, equipment and medium of block chain domain name resolution system

Similar Documents

Publication Publication Date Title
CN109510883A (en) Domain name inquiry method, device, equipment and storage medium
CN104052832B (en) Method and device for setting IP address of domain name resolution server and server
CN103905497A (en) Method, device and application platform for realizing login of third-party application service website
CN104994133A (en) Mobile Web webpage access user experience perception evaluating method based on network KPI
CN102783119A (en) Access control method and system, and access terminal
CN102904765B (en) The method and apparatus that data report
CN112954089B (en) Method, device, equipment and storage medium for analyzing data
US7647635B2 (en) System and method to resolve an identity interactively
CN109218457B (en) Network data processing method, device and system
CN110769080B (en) Domain name resolution method, related product and computer readable storage medium
CN101741902B (en) System and method for Internet terminal to quickly access to Internet server
CN105704246A (en) Network distribution device and method based on SDN architecture
CN108156274A (en) Equipment is made to obtain the method and device of domain name mapping result in a kind of VPN network
CN104834698A (en) Information pushing method and device
CN109561167A (en) A kind of domain name analytic method and device
JP4009591B2 (en) Domain naming system (DNS) for accessing databases
CN108243265A (en) A kind of dns resolution processing method and processing device
CN102970391B (en) Inquiry of the domain name processing method, server and system
CN103973819A (en) Method, related device and system for responding to request for community domain name
CN101626628B (en) Digital number and web address mapping and pushing system
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
KR101524733B1 (en) A mobile terminal for connecting to website through ip network and a method for reducing connection time to the website
CN104753972A (en) Network resource collection processing method and server
CN101917405B (en) Method and system for providing network user identifier in backbone network
CN107493302A (en) A kind of user information acquiring method and device

Legal Events

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

Application publication date: 20190322

RJ01 Rejection of invention patent application after publication