CN102855334A - Browser and method for acquiring domain name system (DNS) resolving data - Google Patents

Browser and method for acquiring domain name system (DNS) resolving data Download PDF

Info

Publication number
CN102855334A
CN102855334A CN2012103805249A CN201210380524A CN102855334A CN 102855334 A CN102855334 A CN 102855334A CN 2012103805249 A CN2012103805249 A CN 2012103805249A CN 201210380524 A CN201210380524 A CN 201210380524A CN 102855334 A CN102855334 A CN 102855334A
Authority
CN
China
Prior art keywords
dns
domain
browser
name
address information
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.)
Granted
Application number
CN2012103805249A
Other languages
Chinese (zh)
Other versions
CN102855334B (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210380524.9A priority Critical patent/CN102855334B/en
Publication of CN102855334A publication Critical patent/CN102855334A/en
Application granted granted Critical
Publication of CN102855334B publication Critical patent/CN102855334B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a browser and a method for acquiring domain name system (DNS) resolving data. The method comprises the following steps of: starting the browser, and sending an access request for a uniform resource locator (URL); intercepting an address information acquisition function of a computer system on the browser side, and acquiring a main domain name corresponding to the URL and/or sub domain names corresponding to the main domain name and the main domain name and/or Internet protocol (IP) address information corresponding to the sub domain names; storing the acquired domain names and the IP address information corresponding to the domain names into DNS resolving data information on the browser side; storing the acquired domain names from DNS acceleration data information by virtue of a map sheet; and when the acquired domain names comprise the main domain name and the sub domain names corresponding to each main domain names, constructing a mapping relation between the main domain names and the corresponding sub domain names in the map sheet. By utilizing the method, some main domain names are pre-counted; and when the DNS acceleration data information is called by the browser on a client, the webpage browsing speed can be increased, and the DNS acceleration efficiency is improved.

Description

A kind of browser and obtain the method for dns resolution data
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of browser and obtain DNS(Domain Name System, domain name system) method of resolution data.
Background technology
At present, browser is in the URL(Uniform Resource Locator of access appointment, URL(uniform resource locator)) time, obtain the root content of this URL, resolve this root content, set up corresponding network request.As seen, existing scheme is to wait the user to input network address just to resolve, and after downloading root URL, analyzes the HTML(HTML (Hypertext Markup Language), Hypertext Markup Language) data content, the object of then just playing up is as required downloaded.Wherein, before downloading the object that to play up, need to resolve DNS, yet the time of dns resolution may be from several milliseconds to 100 seconds, so when adopting URL of existing scheme access, the time of consumption is long.Yet, cause that the long reason of elapsed time mainly is the analytical capabilities that too much depends on dns server, so that browser side address resolution efficient is low.So, how to break away from the dependence to the dns server analytical capabilities at present, and then improve browser side address resolution efficient, become the technical matters that needs to be resolved hurrily at present.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of method that overcomes the problems referred to above or the browser that addresses the above problem at least in part and obtain the dns resolution data is provided.
According to one aspect of the present invention, provide a kind of browser to obtain the method for dns resolution data, comprising:
Start browser, initiate the request of access to uniform resource position mark URL;
Interception browser side computer system obtain the address information function, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Described each domain name of obtaining IP address information corresponding with it is kept in the dns resolution data message of browser side.
Alternatively, in the method for the invention, store each domain name of obtaining in the mode of map table in the described DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
Alternatively, in the method for the invention, described interception browser side computer system obtain the address information function time, further comprise:
Extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
Alternatively, the method for the invention further comprises:
When comprising domain name in the DNS expedited data information that detects the browser side, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out the URL access process.
Alternatively, in the method for the invention, the described mode of obtaining IP address information corresponding to domain name in DNS expedited data information comprises:
The domain name that described URL is corresponding is inserted into to be waited to accelerate in the tabulation, and the notification queue daemon thread;
Described formation daemon thread creates semaphore, and transfers the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realizes the parsing to domain name.
Alternatively, in the method for the invention, the described mode of obtaining IP address information corresponding to each subdomain name corresponding to Main Domain corresponding to URL and/or this Main Domain and described Main Domain and/or each subdomain name further comprises:
Interception browser side computer system obtain the address information function, obtain socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain;
According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
Alternatively, in the method for the invention, when described browser withdrawed from, the IP address information that each domain name of obtaining is corresponding with it was kept in the dns resolution data message of browser side.
Alternatively, the method of the invention also comprises: the request message that sends the DNS expedited data information of Download Server adnation one-tenth to server side, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
According to a further aspect in the invention, provide a kind of browser, having comprised:
The access initiation module is used for starting browser, initiates the request of access to URL;
The acquisition of information module, what be used for interception browser side computer system obtains the address information function, obtains each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Information storage module is for the dns resolution data message that described each domain name of obtaining IP address information corresponding with it is kept at the browser side.
Alternatively, in the browser of the present invention, in the described information storage module, store each domain name of obtaining in the mode of map table in the DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
Alternatively, in the browser of the present invention, described acquisition of information module, be further used for interception browser side computer system obtain the address information function time, extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
Alternatively, in the browser of the present invention, also comprise:
Accelerate execution module, be used for when described acquisition of information module detects described DNS expedited data information and comprises domain name, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out the URL access process.
Alternatively, in the browser of the present invention, described acceleration execution module is further used for the domain name that described URL is corresponding and is inserted into and waits to accelerate in the tabulation, and the notification queue daemon thread; Create semaphore by described formation daemon thread, and transfer the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realize the parsing to domain name.
Alternatively, in the browser of the present invention, described acquisition of information module, what be further used for tackling browser side computer system obtains the address information function, obtains socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain; According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
Alternatively, in the browser of the present invention, described information storage module is further used for when described browser withdraws from, and the IP address information that each domain name of obtaining is corresponding with it is kept in the dns resolution data message of browser side.
Alternatively, in the browser of the present invention, also comprise:
Update module, be used for sending to server side the request message of the DNS expedited data information of Download Server generation, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
Compared with prior art, beneficial effect of the present invention is as follows:
Technical scheme of the present invention, obtain by adding up for some domain name mappings in advance, form DNS expedited data information, this DNS expedited data information is called for the browser side, can realize the acceleration of web page browsing, it is consuming time short that this accelerates processing procedure, improved dns resolution efficient, thereby also realized the raising of web page browsing speed.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical reference symbol.In the accompanying drawings:
A kind of browser that Fig. 1 provides for the embodiment of the invention one obtains the process flow diagram of the method for system dns resolution data;
Fig. 2 is the mapping relations figure of the map table set up in the embodiment of the invention;
Fig. 3 is mouse-over schematic diagram in the embodiment of the invention;
The structural representation of a kind of browser that Fig. 4 provides for the embodiment of the invention three;
A kind of browser that Fig. 5 provides for the embodiment of the invention four obtains the structured flowchart of the system of system dns resolution data.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
In order to solve the technical matters that exists in the prior art, the embodiment of the invention provides a kind of browser and obtains the method for dns resolution data.The present invention forms DNS expedited data information by carrying out DNS query requests statistics for number of site in advance, when the user inputs station address, by calling DNS expedited data information, realizes the web page browsing acceleration, has improved the analyzing efficiency of DNS.
Below by several specific embodiments implementation procedure of the present invention is described in detail, specific as follows:
Embodiment one
As shown in Figure 1, the embodiment of the invention provides a kind of browser to obtain the method for dns resolution data, specifically may further comprise the steps:
Step S101 starts browser, initiates the request of access to URL;
Step S102, interception browser side computer system obtain the address information function, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Preferably, in this step, obtain Main Domain corresponding to described URL, and each subdomain name corresponding to this Main Domain; Wherein, subdomain name is preferably the secondary subdomain name.
Preferably, in this step, interception browser side computer system obtain the address information function time, further comprise: extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
Preferably, in this step, obtain the mode of IP address information corresponding to each subdomain name corresponding to Main Domain corresponding to URL and/or this Main Domain and described Main Domain and/or each subdomain name, further comprise:
Interception browser side computer system obtain address information function (as: system function getaddrinfo ()), obtain socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain;
According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
Step S103 is kept at described each domain name of obtaining IP address information corresponding with it in dns resolution data message of browser side.
Preferably, in this step, store each domain name of obtaining in the mode of map table in the DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
Preferably, in this step, when described browser withdrawed from, the IP address information that each domain name of obtaining is corresponding with it was kept in the dns resolution data message of browser side.
Preferably, in the described method of the embodiment of the invention, also comprise: the request message that sends the DNS expedited data information of Download Server adnation one-tenth to server side, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
Wherein, the mode of server side generation DNS expedited data information comprises:
(1) in pre-configured Main Domain pond, chooses one by one Main Domain, obtain corresponding subdomain name and the Main Domain IP address information corresponding with each subdomain name of Main Domain of choosing;
(2) preserve each described Main Domain and the subdomain name of correspondence and the IP address information of each domain name, generate DNS expedited data information.
Preferably, in the step (1), the mode of obtaining subdomain name corresponding to Main Domain and the Main Domain IP address information corresponding with each subdomain name comprises:
(11) in the Main Domain pond, choose one by one Main Domain;
(12) intercepting system function getaddrinfo () obtains subdomain name corresponding to each described Main Domain and the described Main Domain socket address structure corresponding with each subdomain name;
(13) according to the socket address structure, obtain Main Domain and IP address information corresponding to each subdomain name.
Preferably, in the step (2), the mode of preserving each described Main Domain and corresponding subdomain name thereof comprises: the map that sets up mapping relations between described Main Domain and corresponding each subdomain name shows.
Further, in the embodiment of the invention, after statistics obtained DNS expedited data information, this DNS expedited data information can be accessed certain URL for subsequent user acceleration support is provided.Be in particular in:
Step 1, browser calls DNS expedited data information after starting;
Step 2, browser receive Client-initiated to the request of access of certain URL, resolve this request of access, and extract domain name corresponding to described URL;
Preferably, in this step, before extracting domain name corresponding to described URL, also comprise:
This locality is slow first to judge described URL, if buffer memory not then extracts domain name corresponding to described URL, execution in step 3; If buffer memory does not carry out DNS and accelerates to process.
Step 3 detects in the DNS expedited data information whether comprise domain name corresponding to URL, if comprise, then obtains IP address information corresponding to this domain name, and utilizes the processing that conducts interviews of this IP address information; If do not comprise, then carry out embodiment one described step S102 and S103;
In this step, detect in the DNS expedited data information whether comprise domain name corresponding to described URL, specifically comprise: judge that domain name corresponding to described URL is Main Domain or subdomain name, if Main Domain is then directly searched this domain name in the map table; If subdomain name is then cut apart this subdomain name, obtain Main Domain corresponding to this subdomain name, and take this Main Domain as search index, in the map table, search corresponding domain name.
In this step, when in detecting DNS expedited data information, comprising domain name corresponding to URL, extract the mode of IP address information corresponding to domain name, comprising:
The domain name that described URL is corresponding is inserted into to be waited to accelerate in the tabulation, and the notification queue daemon thread;
Described formation daemon thread creates semaphore, and transfers the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realizes the parsing to domain name.
Further, in the described method of the embodiment of the invention, concurrent when obtaining IP address information corresponding to a plurality of domain names, the thread pool that utilizes described formation daemon thread notice to be pre-created is that each request task that obtains the IP address information distributes thread, and each thread that utilize to distribute transfers the IP address information in the described DNS expedited data information, realizes the parsing to each domain name.
Further, in the embodiment of the invention, when the user accesses webpage corresponding to certain URL, also carry out following mouse-over scheme.Continue step 3, specific as follows:
Whether step 4 when the user browses webpage corresponding to the URL of access, detects user's mouse and hovers at webpage, if obtain webpage subregion DIV element corresponding to mouse-over position;
Step 5 is cut apart each URL in the described DIV element, obtains domain name corresponding to each URL, and the domain name that obtains is gone heavily to process;
Step 6 detects in the DNS expedited data information whether comprise domain name corresponding to each described URL, if comprise, then extracts IP address information corresponding to each domain name;
Step 7 during URL in the user accesses described DIV element, is directly utilized the IP address information of the extracting processing that conducts interviews.
In sum, technical scheme of the present invention, by adding up for some domain names in advance, form DNS expedited data information, after this DNS expedited data information is called by user's side browser, can realize the web page browsing acceleration, it is consuming time short that this accelerates processing procedure, improved the efficient that DNS accelerates;
In addition, technical scheme of the present invention can also be accelerated the URL at mouse-over place to process, and is applied widely.
Embodiment two
The method that the embodiment of the invention provides a kind of browser to obtain the dns resolution data, the method are to further the elaborating of embodiment one described method, and specifically comprise:
1) after browser starts, when the user initiates request of access to certain URL, interception browser side computer system obtain the address information function, obtain Main Domain corresponding to described URL;
2) intercepting system function getaddrinfo () obtains secondary subdomain name corresponding to described Main Domain, and the IP address information of Main Domain and each secondary subdomain name.
In this step, the system function of interception is getaddrinfo (const char*nodename, constchar*service, const struct addrinfo*hints, struct addrinfo**result) function.
Wherein, nodename: domain name to be resolved (ASCII fromat); Service: the ANSI character string that comprises service name or port; Hints: Netz ocket reminder-data structure indicates family of network protocols, socket type, agreement etc.; Result: resolve the return data structure, be used for the data that saved system resolves.
If the getaddrinfo function returns successfully, the variable that is pointed to by the result parameter so has been received in a pointer, and its points to is the addrinfo structure chained list that is together in series by wherein ai_next member.The situation that can cause returning a plurality of addrinfo structures has following two:
1, have a plurality ofly with the address of nodename parameter association, the structure of a correspondence is returned in each address that is applicable to so institute's request address bunch.
The a plurality of socket types of the service support of 2, service parameter appointment, each socket type may be returned the structure of a correspondence so, specifically depends on the ai_socktype member of hints structure.
The embodiment of the invention, before interception getaddrinfo function, distribute first a hints structure, filling in the field that needs after its zero clearing, tackle again getaddrinfo() function, obtain secondary subdomain name corresponding to corresponding Main Domain and the described Main Domain socket address structure corresponding with each secondary subdomain name, again according to the socket address structure, obtain Main Domain and IP address information corresponding to each secondary subdomain name.
The embodiment of the invention is utilized getaddrinfo() function can convert host name and Service name to the technical characteristic of socket address structure, obtained secondary subdomain name corresponding to each Main Domain in the Main Domain pond, and IP address information corresponding to each domain name.
3) with the Main Domain and the corresponding secondary subdomain name thereof that obtain, and the IP address information of Main Domain and each secondary subdomain name is saved in the DNS expedited data information.
In this step, when preserving Main Domain and corresponding secondary subdomain name thereof, the map that sets up mapping relations between Main Domain and corresponding each secondary subdomain name shows, and specifically mapping relations as shown in Figure 2.
The below sets forth based on DNS expedited data information and carries out the implementation procedure that DNS accelerates:
1, start browser, call DNS expedited data information;
2, when browser address bar changed, namely the user had initiated the request of access to certain URL, resolved this request of access, obtained URL to be visited;
Wherein, address field changes and refers to that the user is in the address field input or by the automatic URL that recommends of address field.
3, judge that whether URL to be visited is the URL that crosses of buffer memory of system, if, illustrate that object corresponding to URL is not out of date, can directly use the information of local system buffer memory, just need not carry out the DNS acceleration this moment and process; If not, execution in step 4 then;
4, cut apart URL, obtain domain name corresponding to this URL, and in DNS expedited data information, search for this domain name, when searching, execution in step 5; If do not search, process by normal browsing process.
For example, as user during at browsing page, can click the connection of the second level domain under the Main Domain, at this moment can get access to this second level domain and carry out cutting apart of URL, according to the map in above-mentioned DNS expedited data information table, the searching of the Main Domain after cutting apart, the mapping relations of second level domain.
5, call DnsAccelerate () function, domain name to be accelerated is inserted in the acceleration tabulation.
This step is specially:
DnsAccelerate () function call Windows system function QueueUserWorkItem (), notification queue daemon thread have domain name to wait to accelerate.
The formation daemon thread calls ParallelGetAddrInfoProc () function, carries out following operation:
Call the CreateSemaphore function, create semaphore;
Call:: QueueUserWorkItem (GetAddrInfoSysProc , ﹠amp; PParseDataArray[index], 0), resolve domain name; The invoked procedure of this function is the process of searching for IP address corresponding to domain name to be accelerated in DNS expedited data information;
The task in all formations of waiting for is finished.
6, after domain name is accelerated to finish, get access to IP address information corresponding to URL to be visited, utilize the processing that conducts interviews of this IP address information;
7, when the user browses webpage corresponding to described URL, detect user's mouse and whether hover at the current webpage of browsing, if obtain webpage subregion DIV element corresponding to mouse-over position; Wherein, the mouse-over schematic diagram as shown in Figure 3;
8, each URL in the described DIV element is cut apart, obtain domain name corresponding to each URL, and the domain name that obtains is gone heavily to process;
9, detect in the DNS expedited data information whether comprise domain name corresponding to each described URL, if comprise, then extract IP address information corresponding to each domain name, and during the URL in the user accesses described DIV element, directly utilize the processing that conducts interviews of the IP address information of described extraction.
Illustrate as follows for the mouse-over scheme:
Detect the current location of mouse, and mouse covers the URL link of the daughter element in the web page element.For example mouse is current is in<div class=" nav 2 " 〉
Figure BDA00002220110900111
When mouse-over in above-mentioned DIV element<a href=" http://mobile.sina.com.cn/ " when upper, can carry out to the URL at this DIV the acceleration of DNS and process.
Hover over URL corresponding to which point, refer to here<div... ...</div〉inner URL goes heavily to gather, as: news.sina.com.cn; Mil.news.sina.com.cn; Finance.sina.com.cn; Tech.sina.com.cn; Mobile.sina.com.cn; Digi.sina.com.cn.
Embodiment three
As shown in Figure 4, the embodiment of the invention provides a kind of browser, comprising: access initiation module 410, acquisition of information module 420, information storage module 430; Wherein:
Access initiation module 410 is used for starting browser, initiates the request of access to URL;
Acquisition of information module 420, what be used for interception browser side computer system obtains the address information function, obtains each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Preferably, acquisition of information module 420, be further used for interception browser side computer system obtain the address information function time, extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
Preferably, acquisition of information module 420, what be further used for tackling browser side computer system obtains the address information function, obtains socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain; According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
Information storage module 430 is for the dns resolution data message that described each domain name of obtaining IP address information corresponding with it is kept at the browser side.
Preferably, information storage module 430 is further used for when described browser withdraws from, and the IP address information that each domain name of obtaining is corresponding with it is kept in the dns resolution data message of browser side.
Wherein, store each domain name of obtaining in the mode of map table in the described DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
Further, the described browser of the embodiment of the invention also comprises:
Accelerate execution module 440, be used for when acquisition of information module 420 detects described DNS expedited data information and comprises domain name, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out the URL access process.
Preferably, accelerate execution module 440, be further used for the domain name that described URL is corresponding and be inserted into and wait to accelerate in the tabulation, and the notification queue daemon thread; Create semaphore by described formation daemon thread, and transfer the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realize the parsing to domain name.
Further, the described browser of the embodiment of the invention also comprises:
Update module 450, be used for sending to server side the request message of the DNS expedited data information of Download Server generation, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
In sum, the described browser of the embodiment of the invention, by adding up for some Main Domains in advance, form DNS expedited data information, after this DNS expedited data information is called by user's side browser, can realize the web page browsing acceleration, it is consuming time short that this accelerates processing procedure, improved the analyzing efficiency of DNS.
Embodiment four
As shown in Figure 5, the embodiment of the invention also provides a kind of browser to obtain the system of domain name system DNS resolution data, comprising: embodiment three described browsers, and server.
Described browser sends the request message of the DNS expedited data information of Download Server generation to server side, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
In sum, the described system of the embodiment of the invention, by adding up for some Main Domains in advance, form DNS expedited data information, after this DNS expedited data information is called by user's side browser, can realize the web page browsing acceleration, it is consuming time short that this accelerates processing procedure, improved the analyzing efficiency of DNS.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the instructions that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be in the situation that there be these details to put into practice.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this instructions (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize some or all some or repertoire of parts in the equipment such as browser, server according to the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.

Claims (14)

1. a browser obtains the method for domain name system DNS resolution data, comprising:
Start browser, initiate the request of access to uniform resource position mark URL;
Interception browser side computer system obtain the address information function, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Described each domain name of obtaining IP address information corresponding with it is kept in the dns resolution data message of browser side;
Wherein, store each domain name of obtaining in the mode of map table in the described DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
2. the method for claim 1 is characterized in that, described interception browser side computer system obtain the address information function time, further comprise:
Extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
3. method as claimed in claim 2 is characterized in that, described method further comprises:
When comprising domain name in the DNS expedited data information that detects the browser side, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out the URL access process.
4. method as claimed in claim 3 is characterized in that, the described mode of obtaining IP address information corresponding to domain name in DNS expedited data information comprises:
The domain name that described URL is corresponding is inserted into to be waited to accelerate in the tabulation, and the notification queue daemon thread;
Described formation daemon thread creates semaphore, and transfers the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realizes the parsing to domain name.
5. the method for claim 1 is characterized in that, the described mode of obtaining IP address information corresponding to each subdomain name corresponding to Main Domain corresponding to URL and/or this Main Domain and described Main Domain and/or each subdomain name further comprises:
Interception browser side computer system obtain the address information function, obtain socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain;
According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
6. the method for claim 1 is characterized in that, in the described method, when described browser withdrawed from, the IP address information that each domain name of obtaining is corresponding with it was kept in the dns resolution data message of browser side.
7. the method for claim 1 is characterized in that, described method also comprises:
Send the request message of the DNS expedited data information of Download Server adnation one-tenth to server side, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
8. browser comprises:
The access initiation module is used for starting browser, initiates the request of access to URL;
The acquisition of information module, what be used for interception browser side computer system obtains the address information function, obtains each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name;
Information storage module is for the dns resolution data message that described each domain name of obtaining IP address information corresponding with it is kept at the browser side;
Wherein, in the described information storage module, store each domain name of obtaining in the mode of map table in the DNS expedited data information, and IP address information corresponding to each domain name; And when each domain name of obtaining comprises subdomain name corresponding to Main Domain and each Main Domain, also set up the mapping relations that each Main Domain and corresponding subdomain name are arranged in the described map table.
9. browser as claimed in claim 8, it is characterized in that, described acquisition of information module, be further used for interception browser side computer system obtain the address information function time, extract domain name corresponding to described URL, whether comprise domain name in the DNS expedited data information of detection browser side, and when not comprising, obtain each subdomain name corresponding to Main Domain corresponding to described URL and/or this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name.
10. browser as claimed in claim 9 is characterized in that, also comprises:
Accelerate execution module, be used for when described acquisition of information module detects described DNS expedited data information and comprises domain name, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out the URL access process.
11. browser as claimed in claim 10 is characterized in that, described acceleration execution module is further used for the domain name that described URL is corresponding and is inserted into and waits to accelerate in the tabulation, and the notification queue daemon thread; Create semaphore by described formation daemon thread, and transfer the IP address information of the corresponding domain name of URL described in the described DNS expedited data information, realize the parsing to domain name.
12. browser as claimed in claim 8, it is characterized in that, described acquisition of information module, what be further used for tackling browser side computer system obtains the address information function, obtains socket address structure corresponding to each subdomain name corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain and described Main Domain and/or described Main Domain; According to described socket address structure, obtain IP address information corresponding to each subdomain name corresponding to described Main Domain and/or described Main Domain.
13. browser as claimed in claim 8 is characterized in that, described information storage module is further used for when described browser withdraws from, and the IP address information that each domain name of obtaining is corresponding with it is kept in the dns resolution data message of browser side.
14. browser as claimed in claim 8 is characterized in that, also comprises:
Update module, be used for sending to server side the request message of the DNS expedited data information of Download Server generation, perhaps, the DNS expedited data information that the server side of reception server side active push generates, and when getting access to the DNS expedited data information of described server side generation, utilize this DNS expedited data information that the DNS expedited data information of browsers local is upgraded.
CN201210380524.9A 2012-09-29 2012-09-29 A kind of browser and the method obtaining dns resolution data thereof Expired - Fee Related CN102855334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210380524.9A CN102855334B (en) 2012-09-29 2012-09-29 A kind of browser and the method obtaining dns resolution data thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210380524.9A CN102855334B (en) 2012-09-29 2012-09-29 A kind of browser and the method obtaining dns resolution data thereof

Publications (2)

Publication Number Publication Date
CN102855334A true CN102855334A (en) 2013-01-02
CN102855334B CN102855334B (en) 2016-07-06

Family

ID=47401922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210380524.9A Expired - Fee Related CN102855334B (en) 2012-09-29 2012-09-29 A kind of browser and the method obtaining dns resolution data thereof

Country Status (1)

Country Link
CN (1) CN102855334B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902787A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 Browser and method for obtaining DNS parsed data
CN103365695A (en) * 2013-07-31 2013-10-23 广州市动景计算机科技有限公司 Method and device for increasing sub-resource loading speed
CN103973635A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Page access control method, and related device and system
CN104184841A (en) * 2013-05-23 2014-12-03 携程计算机技术(上海)有限公司 Website DNS (domain name resolution) accelerating method and client
CN104683330A (en) * 2015-02-06 2015-06-03 广州酷狗计算机科技有限公司 Domain name hijacking resisting method and device
WO2016184349A1 (en) * 2015-05-21 2016-11-24 阿里巴巴集团控股有限公司 Domain name parsing method, device and system
CN108282455A (en) * 2017-09-28 2018-07-13 广州市动景计算机科技有限公司 Web-page requests method, apparatus and domain-name information analysis result processing method, device
CN109981817A (en) * 2019-03-21 2019-07-05 网宿科技股份有限公司 The processing method and processing device of access request, server
CN110225144A (en) * 2018-03-02 2019-09-10 华为技术有限公司 Obtain and provide method, user equipment and the management server of service
CN111556077A (en) * 2020-05-15 2020-08-18 杭州安恒信息技术股份有限公司 Network data acquisition method, equipment and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735052A (en) * 2004-08-09 2006-02-15 岳东晓 System and method for realizing mapping from telephone number to IP network address based on existing DNS (domain name service)
CN1893439A (en) * 2005-07-01 2007-01-10 英华达(上海)电子有限公司 Method for searching internetwork address on computer
CN101242336A (en) * 2008-03-13 2008-08-13 杭州华三通信技术有限公司 Method for remote access to intranet Web server and Web proxy server
US20080222307A1 (en) * 2007-03-09 2008-09-11 Bhakta Dharmesh N System and Method for Multiple IP Addresses During Domain Name Resolution
CN101682621A (en) * 2007-03-12 2010-03-24 思杰系统有限公司 Systems and methods for cache operations
CN102647482A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Method and system for accessing website

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735052A (en) * 2004-08-09 2006-02-15 岳东晓 System and method for realizing mapping from telephone number to IP network address based on existing DNS (domain name service)
CN1893439A (en) * 2005-07-01 2007-01-10 英华达(上海)电子有限公司 Method for searching internetwork address on computer
US20080222307A1 (en) * 2007-03-09 2008-09-11 Bhakta Dharmesh N System and Method for Multiple IP Addresses During Domain Name Resolution
CN101682621A (en) * 2007-03-12 2010-03-24 思杰系统有限公司 Systems and methods for cache operations
CN101242336A (en) * 2008-03-13 2008-08-13 杭州华三通信技术有限公司 Method for remote access to intranet Web server and Web proxy server
CN102647482A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Method and system for accessing website

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902787A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 Browser and method for obtaining DNS parsed data
CN102902787B (en) * 2012-09-29 2015-11-25 北京奇虎科技有限公司 A kind of method of browser and acquisition dns resolution data thereof
CN103973635A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Page access control method, and related device and system
CN103973635B (en) * 2013-01-24 2015-10-28 腾讯科技(深圳)有限公司 Page access control method and relevant apparatus and system
CN104184841A (en) * 2013-05-23 2014-12-03 携程计算机技术(上海)有限公司 Website DNS (domain name resolution) accelerating method and client
CN104184841B (en) * 2013-05-23 2018-01-12 上海携程商务有限公司 Website dns resolution accelerated method and client
CN103365695B (en) * 2013-07-31 2017-04-26 广州市动景计算机科技有限公司 Method and device for increasing sub-resource loading speed
CN103365695A (en) * 2013-07-31 2013-10-23 广州市动景计算机科技有限公司 Method and device for increasing sub-resource loading speed
WO2015014145A1 (en) * 2013-07-31 2015-02-05 广州市动景计算机科技有限公司 Method and device for accelerating sub-resource loading velocity
US10250526B2 (en) 2013-07-31 2019-04-02 Guangzhou Ucweb Computer Technology Co., Ltd. Method and apparatus for increasing subresource loading speed
CN104683330A (en) * 2015-02-06 2015-06-03 广州酷狗计算机科技有限公司 Domain name hijacking resisting method and device
CN106302842A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 A kind of domain name analytic method, Apparatus and system
WO2016184349A1 (en) * 2015-05-21 2016-11-24 阿里巴巴集团控股有限公司 Domain name parsing method, device and system
CN106302842B (en) * 2015-05-21 2020-02-18 阿里巴巴集团控股有限公司 Domain name resolution method, device and system
CN108282455A (en) * 2017-09-28 2018-07-13 广州市动景计算机科技有限公司 Web-page requests method, apparatus and domain-name information analysis result processing method, device
CN110225144A (en) * 2018-03-02 2019-09-10 华为技术有限公司 Obtain and provide method, user equipment and the management server of service
CN110225144B (en) * 2018-03-02 2021-03-23 华为技术有限公司 Method for obtaining and providing service, user equipment and management server
US11444915B2 (en) 2018-03-02 2022-09-13 Huawei Technologies Co., Ltd. Service obtaining and providing methods, user equipment, and management server
CN109981817A (en) * 2019-03-21 2019-07-05 网宿科技股份有限公司 The processing method and processing device of access request, server
CN109981817B (en) * 2019-03-21 2020-11-20 网宿科技股份有限公司 Access request processing method and device and server
CN111556077A (en) * 2020-05-15 2020-08-18 杭州安恒信息技术股份有限公司 Network data acquisition method, equipment and related equipment

Also Published As

Publication number Publication date
CN102855334B (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN102882991B (en) A kind of browser and carry out the method for domain name mapping
CN102843445B (en) A kind of browser and carry out the method for domain name mapping
CN102855334A (en) Browser and method for acquiring domain name system (DNS) resolving data
CN100367276C (en) Method and appts for searching within a computer network
US8762556B2 (en) Displaying content on a mobile device
US7974832B2 (en) Web translation provider
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
US8424004B2 (en) High performance script behavior detection through browser shimming
CN103617222A (en) Browser and method for preloading in webpages
CN102929985A (en) Method and system for displaying collected webpage
CN105095280A (en) Caching method and apparatus for browser
CA2839006A1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN103248695A (en) File downloading method and system and server node in CDN
CN102937981A (en) Webpage representing system and method
CN103281387A (en) Method, server, client side and system for processing child resources in web page
US8090702B2 (en) Analyzing web site traffic
CN103078945A (en) Method and system for processing browser crash data
CN105528369B (en) Webpage code-transferring method, device and server
CN103077349B (en) A kind of method of browser side prompting access secure information and device
CN115668894A (en) Service worker configured to service a plurality of single-page applications
US20150324479A1 (en) Identifying a browser for rendering an electronic document
CN102929944A (en) Method and device for web page rendering by IE (Internet Explorer) kernel browser
CN103258056A (en) Method, server, client and system for handling style sheets
CN102902784A (en) Web page classification storage system and method
CN105930385A (en) Data crawling method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160706

Termination date: 20210929