CN102902787B - A kind of method of browser and acquisition dns resolution data thereof - Google Patents

A kind of method of browser and acquisition dns resolution data thereof Download PDF

Info

Publication number
CN102902787B
CN102902787B CN201210375936.3A CN201210375936A CN102902787B CN 102902787 B CN102902787 B CN 102902787B CN 201210375936 A CN201210375936 A CN 201210375936A CN 102902787 B CN102902787 B CN 102902787B
Authority
CN
China
Prior art keywords
dns
browser
domain
name
main 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.)
Active
Application number
CN201210375936.3A
Other languages
Chinese (zh)
Other versions
CN102902787A (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
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 CN201210375936.3A priority Critical patent/CN102902787B/en
Publication of CN102902787A publication Critical patent/CN102902787A/en
Application granted granted Critical
Publication of CN102902787B publication Critical patent/CN102902787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method of browser and acquisition dns resolution data thereof, described method comprises: start browser, initiate the request of access to uniform resource position mark URL; The acquisition address information function of interception browser side computer system, obtains the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding; IP address information corresponding with it for each domain name of described acquisition is kept in the dns resolution data message of browser side.The present invention is by adding up for some Main Domains in advance, form DNS expedited data information, after this DNS expedited data information is called by user side browser, web page browsing can be realized and accelerate, this acceleration processing procedure is consuming time short, improves the efficiency that DNS accelerates.

Description

A kind of method of browser and acquisition dns resolution data thereof
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of browser and obtain DNS(DomainNameSystem, domain name system) method of resolution data.
Background technology
At present, browser is accessing the URL(UniformResourceLocator specified, URL(uniform resource locator)) time, obtain the root content of this URL, resolve this root content, set up corresponding network request.Visible, existing scheme waits user to input network address just to resolve, and after downloading root URL, analyze HTML(HTML (Hypertext Markup Language), HypertextMarkupLanguage) data content, the object then just played up as required is downloaded.Wherein, download need the object played up before need to carry out parsings DNS, but time of dns resolution may from several millisecond to 100 seconds, so when adopting existing scheme to access a URL, the time of consumption is long.But the reason causing elapsed time long mainly too much depends on the analytical capabilities of dns server, make address resolution efficiency in browser side low.So, how to depart from the dependence to dns server analytical capabilities at present, and then improve browser side address resolution efficiency, become technical matters urgently to be resolved hurrily at present.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of method overcoming the problems referred to above or the browser solved the problem at least in part and acquisition dns resolution data thereof.
According to one aspect of the present invention, provide a kind of method that browser obtains dns resolution data, comprising:
Start browser, initiate the request of access to uniform resource position mark URL;
The acquisition address information function of interception browser side computer system, obtains the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding;
IP address information corresponding with it for each domain name of described acquisition is kept in the dns resolution data message of browser side.
Alternatively, in the method for the invention, in described DNS expedited data information, store each domain name of acquisition in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
Alternatively, in the method for the invention, during the acquisition address information function of described interception browser side computer system, comprise further:
Extract the domain name that described URL is corresponding, detect in the DNS expedited data information of browser side and whether comprise domain name, and when not comprising, obtain the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding.
Alternatively, the method for the invention comprises further:
When comprising domain name in DNS expedited data information browser side being detected, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out URL access process.
Alternatively, in the method for the invention, the described mode obtaining IP address information corresponding to domain name in DNS expedited data information comprises:
Domain name corresponding for described URL is inserted into and waits to accelerate in list, and notification queue daemon thread;
Described queue daemon thread creates semaphore, and transfers the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realizes the parsing to domain name.
Alternatively, in the method for the invention, the mode of Main Domain corresponding to described acquisition URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or IP address information corresponding to each subdomain name, comprises further:
The acquisition address information function of interception browser side computer system, obtains the socket address structure that each subdomain name corresponding to described Main Domain and/or each subdomain name corresponding to described Main Domain and described Main Domain and/or described Main Domain is corresponding;
According to described socket address structure, obtain described Main Domain and/or IP address information corresponding to each subdomain name corresponding to described Main Domain.
Alternatively, in the method for the invention, when described browser exits, IP address information corresponding with it for each domain name obtained is kept in the dns resolution data message of browser side.
Alternatively, the method of the invention also comprises: the request message sending the DNS expedited data information that Download Server side generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
According to a further aspect in the invention, provide a kind of browser, comprising:
Access initiation module, for starting browser, initiates the request of access to URL;
Data obtaining module, for tackling the acquisition address information function of browser side computer system, obtains the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding;
Information storage module, for being kept at IP address information corresponding with it for each domain name of described acquisition in the dns resolution data message of browser side.
Alternatively, in browser of the present invention, in described information storage module, in DNS expedited data information, store each domain name of acquisition in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
Alternatively, in browser of the present invention, described data obtaining module, be further used for when tackling the acquisition address information function of browser side computer system, extract the domain name that described URL is corresponding, detecting in the DNS expedited data information of browser side and whether comprise domain name, and when not comprising, obtaining the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding.
Alternatively, in browser of the present invention, also comprise:
Accelerate execution module, when comprising domain name for detecting when described data obtaining module in described DNS expedited data information, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out URL access process.
Alternatively, in browser of the present invention, described acceleration execution module, is further used for domain name corresponding for described URL to be inserted into and waits to accelerate in list, and notification queue daemon thread; Create semaphore by described queue daemon thread, and transfer the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realize the parsing to domain name.
Alternatively, in browser of the present invention, described data obtaining module, be further used for the acquisition address information function tackling browser side computer system, obtain the socket address structure that each subdomain name corresponding to described Main Domain and/or each subdomain name corresponding to described Main Domain and described Main Domain and/or described Main Domain is corresponding; According to described socket address structure, obtain described Main Domain and/or IP address information corresponding to each subdomain name corresponding to described Main Domain.
Alternatively, in browser of the present invention, described information storage module, is further used for when described browser exits, and IP address information corresponding with it for each domain name obtained is kept in the dns resolution data message of browser side.
Alternatively, in browser of the present invention, also comprise:
Update module, for sending the request message of the DNS expedited data information that Download Server generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
Compared with prior art, beneficial effect of the present invention is as follows:
Technical scheme of the present invention, obtain by carrying out statistics for some domain name mappings in advance, form DNS expedited data information, this DNS expedited data information is called for browser side, the acceleration of web page browsing can be realized, this acceleration processing procedure is consuming time short, improves dns resolution efficiency, thus also realizes the raising of web page browsing speed.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
The process flow diagram of the method for a kind of browser acquisition system dns resolution data that Fig. 1 provides for the embodiment of the present invention one;
Fig. 2 is the mapping relations figure of the map table set up in the embodiment of the present invention;
Fig. 3 is mouse-over schematic diagram in the embodiment of the present invention;
The structural representation of a kind of browser that Fig. 4 provides for the embodiment of the present invention three;
The structured flowchart of the system of a kind of browser acquisition system dns resolution data that Fig. 5 provides for the embodiment of the present invention four.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In order to solve the technical matters existed in prior art, the embodiment of the present invention provides a kind of browser and obtains the method for dns resolution data.The present invention, by carrying out DNS query request statistics for number of site in advance, forms DNS expedited data information, when user inputs station address, by calling DNS expedited data information, realizing web page browsing and accelerating, improve the analyzing efficiency of DNS.
Below by several specific embodiment, implementation procedure of the present invention is described in detail, specific as follows:
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of browser to obtain the method for dns resolution data, specifically comprises the following steps:
Step S101, starts browser, initiates the request of access to URL;
Step S102, the acquisition address information function of interception browser side computer system, obtains the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding;
Preferably, in this step, obtain the Main Domain that described URL is corresponding, and each subdomain name that this Main Domain is corresponding; Wherein, subdomain name is preferably secondary subdomain name.
Preferably, in this step, when tackling the acquisition address information function of browser side computer system, comprise further: extract the domain name that described URL is corresponding, detect in the DNS expedited data information of browser side and whether comprise domain name, and when not comprising, obtain the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding.
Preferably, in this step, obtain the mode of IP address information corresponding to Main Domain corresponding to URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name, comprise further:
The acquisition address information function (as: system function getaddrinfo ()) of interception browser side computer system, obtains the socket address structure that each subdomain name corresponding to described Main Domain and/or each subdomain name corresponding to described Main Domain and described Main Domain and/or described Main Domain is corresponding;
According to described socket address structure, obtain described Main Domain and/or IP address information corresponding to each subdomain name corresponding to described Main Domain.
Step S103, is kept at IP address information corresponding with it for each domain name of described acquisition in the dns resolution data message of browser side.
Preferably, in this step, in DNS expedited data information, store each domain name of acquisition in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
Preferably, in this step, when described browser exits, IP address information corresponding with it for each domain name obtained is kept in the dns resolution data message of browser side.
Preferably, in method described in the embodiment of the present invention, also comprise: the request message sending the DNS expedited data information that Download Server side generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
Wherein, the mode of server side generation DNS expedited data information comprises:
(1) in pre-configured Main Domain pond, choose Main Domain one by one, obtain subdomain name corresponding to the Main Domain chosen and the Main Domain IP address information corresponding with each subdomain name;
(2) preserve the subdomain name of each described Main Domain and correspondence thereof and the IP address information of each domain name, generate DNS expedited data information.
Preferably, in step (1), the mode obtaining subdomain name corresponding to Main Domain and the Main Domain IP address information corresponding with each subdomain name comprises:
(11) in Main Domain pond, Main Domain is chosen one by one;
(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 socket address structure, Main Domain and IP address information corresponding to each subdomain name is obtained.
Preferably, in step (2), the mode of preserving the subdomain name of each described Main Domain and correspondence thereof comprises: the map setting up mapping relations between described Main Domain with corresponding each subdomain name shows.
Further, in the embodiment of the present invention, after statistics obtains DNS expedited data information, this DNS expedited data information can be accessed certain URL for subsequent user and be provided acceleration support.Be in particular in:
Step 1, browser calls DNS expedited data information after starting;
Step 2, browser receives Client-initiated to the request of access of certain URL, resolves this request of access, and extracts domain name corresponding to described URL;
Preferably, in this step, before extracting domain name corresponding to described URL, also comprise:
Judge described URL whether first delay by this locality, if non-buffer memory, then extract the domain name that described URL is corresponding, perform step 3; If buffer memory, do not carry out DNS and accelerate process.
Step 3, detects in DNS expedited data information whether comprise domain name corresponding to URL, if comprise, then obtains the IP address information that this domain name is corresponding, and utilizes this IP address information to conduct interviews process; If do not comprise, then perform step S102 and S103 described in embodiment one;
In this step, detect in DNS expedited data information whether comprise domain name corresponding to described URL, specifically comprise: judge that the domain name that described URL is corresponding is Main Domain or subdomain name, if Main Domain, then directly in map table, search this domain name; If subdomain name, then this subdomain name is split, obtain the Main Domain that this subdomain name is corresponding, and with this Main Domain for search index, in map table, search corresponding domain name.
In this step, when detect in DNS expedited data information comprise domain name corresponding to URL time, extract the mode of IP address information corresponding to domain name, comprising:
Domain name corresponding for described URL is inserted into and waits to accelerate in list, and notification queue daemon thread;
Described queue daemon thread creates semaphore, and transfers the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realizes the parsing to domain name.
Further, in method described in the embodiment of the present invention, when the IP address information that the multiple domain name of concurrent acquisition is corresponding, the thread pool utilizing described queue daemon thread to notify to be pre-created is for obtaining each request task distribution thread of IP address information, and each thread that utilization distributes transfers the IP address information in described DNS expedited data information, realizes the parsing to each domain name.
Further, in the embodiment of the present invention, when user accesses webpage corresponding to certain URL, also carry out following mouse-over scheme.Continue step 3, specific as follows:
Whether step 4, when user browses webpage corresponding to the URL of access, detect user's mouse and hover on webpage, if so, obtain webpage subregion DIV element corresponding to mouse-over position;
Step 5, splits each URL in described DIV element, obtains the domain name that each URL is corresponding, and carry out duplicate removal process to the domain name obtained;
Step 6, detects in DNS expedited data information whether comprise domain name corresponding to each described URL, if comprise, then extracts the IP address information that each domain name is corresponding;
Step 7, when user accesses the URL in described DIV element, directly utilizes the IP address information extracted to conduct interviews process.
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 side browser, can realize web page browsing to accelerate, this acceleration processing procedure is consuming time short, improves the efficiency that DNS accelerates;
In addition, technical scheme of the present invention, can also carry out acceleration process to the URL at mouse-over place, applied widely.
Embodiment two
The embodiment of the present invention provides a kind of browser to obtain the method for dns resolution data, and the method is elaborating further method described in embodiment one, specifically comprises:
1) after browser starts, when user initiates the request of access to certain URL, the acquisition address information function of interception browser side computer system, obtains the Main Domain that described URL is corresponding;
2) intercepting system function getaddrinfo (), obtains the secondary subdomain name that described Main Domain is corresponding, and the IP address information of Main Domain and each secondary subdomain name.
In this step, the system function of interception is getaddrinfo (constchar*nodename, constchar*service, conststructaddrinfo*hints, structaddrinfo**result) function.
Wherein, nodename: domain name (ASCII fromat) to be resolved; Service: the ANSI character string comprising service name or port; Hints: Netz ocket reminder-data structure, indicates family of network protocols, socket type, agreement etc.; Result: resolve return data structure, is used for the data that saved system resolves.
If getaddrinfo function returns successfully, the variable so pointed to by result parameter has been received in a pointer, and what it pointed to is the addrinfo structure chained list be together in series by ai_next member wherein.The situation returning multiple addrinfo structure can be caused to have following two:
1, have multiple with the address of nodename parameter association, each address being so applicable to institute's request address bunch returns a corresponding structure.
The multiple socket type of service support that 2, service parameter is specified, so each socket type may return a corresponding structure, specifically depends on the ai_socktype member of hints structure.
The embodiment of the present invention, before interception getaddrinfo function, first distribute a hints structure, the field of needs is filled in after it is reset, tackle getaddrinfo(again) function, obtain secondary subdomain name corresponding to corresponding Main Domain and the described Main Domain socket address structure corresponding with each secondary subdomain name, then according to socket address structure, obtain Main Domain and IP address information corresponding to each secondary subdomain name.
The embodiment of the present invention utilizes getaddrinfo() host name and Service name can convert to the technical characteristic of socket address structure by function, obtains the secondary subdomain name that each Main Domain in Main Domain pond is corresponding, and the IP address information that each domain name is corresponding.
3) by the Main Domain of acquisition and the secondary subdomain name of correspondence thereof, and the IP address information of Main Domain and each secondary subdomain name is saved in DNS expedited data information.
In this step, when preserving the secondary subdomain name of Main Domain and correspondence thereof, the map setting up mapping relations between Main Domain with corresponding each secondary subdomain name shows, and concrete mapping relations as shown in Figure 2.
Set forth the implementation procedure of carrying out DNS acceleration based on DNS expedited data information below:
1, start browser, call DNS expedited data information;
2, when browser address bar changes, namely user has initiated the request of access to certain URL, resolves this request of access, obtains URL to be visited;
Wherein, address field changes and refers to that user is at address field input or the URL that automatically recommended by address field.
3, judge whether URL to be visited is the URL that system has been cached, if so, illustrate that the object that URL is corresponding is not out of date, directly can use the information of local system buffer memory, now just need not carry out DNS and accelerate to have processed; If not, then step 4 is performed;
4, segmentation URL, obtains the domain name that this URL is corresponding, and search for this domain name in DNS expedited data information, when searching, performs step 5; If do not search, by normal browsing process process.
Such as, when user is when browsing webpage, the connection of the second level domain under Main Domain can be clicked, at this moment can get this second level domain and carrying out the segmentation of URL, according to the map table in above-mentioned DNS expedited data information, searching of the Main Domain after splitting, the mapping relations of second level domain.
5, call DnsAccelerate () function, will wait that accelerating domain name is inserted in acceleration list.
This step is specially:
DnsAccelerate () function call Windows system function QueueUserWorkItem (), notification queue daemon thread has domain name to wait to accelerate.
Queue daemon thread calls ParallelGetAddrInfoProc () function, performs and operates as follows:
Call CreateSemaphore function, create semaphore;
Call:: QueueUserWorkItem (GetAddrInfoSysProc, & pParseDataArray [index], 0), resolves domain name; The invoked procedure of this function is the process of searching in DNS expedited data information and waiting to accelerate IP address corresponding to domain name;
Wait for that the task in all queues completes.
6, after domain name has been accelerated, get the IP address information that URL to be visited is corresponding, utilize this IP address information to conduct interviews process;
7, when user browses webpage corresponding to described URL, detect user's mouse and whether hover on the current webpage browsed, if so, obtain webpage subregion DIV element corresponding to mouse-over position; Wherein, mouse-over schematic diagram as shown in Figure 3;
8, each URL in described DIV element is split, obtains the domain name that each URL is corresponding, and duplicate removal process is carried out to the domain name obtained;
9, detect in DNS expedited data information and whether comprise domain name corresponding to each described URL, if comprise, then extract the IP address information that each domain name is corresponding, and when user accesses the URL in described DIV element, directly utilize the IP address information of described extraction to conduct interviews process.
Illustrate as follows for mouse-over scheme:
Detect the current location of mouse, and mouse cover the URL link of the daughter element in web page element.Such as mouse is current is in <divclass=" nav_2 " >
<ul>
<li><ahref=" http://news.sina.com.cn/ " ><b> news </b></aGreatT.Gr eaT.GT</li>
The military </a></liGreatT.G reaT.GT of <li><ahref=" http://mil.news.sina.com.cn " >
<li><ahref=" http://news.sina.com.cn/society/ " > society </a></liGreatT.G reaT.GT
</ul>
<ul>
<li><ahref=" http://finance.sina.com.cn/ " ><b> finance and economics </b></aGreatT.Gr eaT.GT</li>
<li><ahref=" http://finance.sina.com.cn/stock/ " > stock </a></liGreatT.G reaT.GT
<li><ahref=" http://finance.sina.com.cn/fund/ " > fund </a></liGreatT.G reaT.GT
</ul>
<ul>
<li><ahref=" http://tech.sina.com.cn/ " ><b> science and technology </b></aGreatT.Gr eaT.GT</li>
<li><ahref=" http://mobile.sina.com.cn/ " > mobile phone </a></liGreatT.G reaT.GT
The digital </a></liGreatT.G reaT.GT of <li><ahref=" http://digi.sina.com.cn/ " >
</ul>
</div>。
When the <ahref=of mouse-over in above-mentioned DIV element " http://mobile.sina.com.cn/ " > is upper, the acceleration process of DNS can be carried out to the URL at this DIV.
Hover over the URL which point is corresponding, this refers to the URL duplicate removal set in <div...>...</div >, 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 present invention provides a kind of browser, comprising: access initiation module 410, data obtaining module 420, information storage module 430; Wherein:
Access initiation module 410, for starting browser, initiates the request of access to URL;
Data obtaining module 420, for tackling the acquisition address information function of browser side computer system, obtains the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding;
Preferably, data obtaining module 420, be further used for when tackling the acquisition address information function of browser side computer system, extract the domain name that described URL is corresponding, detect in the DNS expedited data information of browser side and whether comprise domain name, and when not comprising, obtain the IP address information that Main Domain corresponding to described URL and/or each subdomain name corresponding to this Main Domain and described Main Domain and/or each subdomain name are corresponding.
Preferably, data obtaining module 420, be further used for the acquisition address information function tackling browser side computer system, obtain the socket address structure that each subdomain name corresponding to described Main Domain and/or each subdomain name corresponding to described Main Domain and described Main Domain and/or described Main Domain is corresponding; According to described socket address structure, obtain described Main Domain and/or IP address information corresponding to each subdomain name corresponding to described Main Domain.
Information storage module 430, for being kept at IP address information corresponding with it for each domain name of described acquisition in the dns resolution data message of browser side.
Preferably, information storage module 430, is further used for when described browser exits, and IP address information corresponding with it for each domain name obtained is kept in the dns resolution data message of browser side.
Wherein, in described DNS expedited data information, store each domain name of acquisition in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
Further, described in the embodiment of the present invention, browser also comprises:
Accelerate execution module 440, when comprising domain name for detecting when data obtaining module 420 in described DNS expedited data information, in described DNS expedited data information, obtain IP address information corresponding to domain name, and utilize this IP address information to carry out URL access process.
Preferably, accelerate execution module 440, be further used for domain name corresponding for described URL to be inserted into and wait to accelerate in list, and notification queue daemon thread; Create semaphore by described queue daemon thread, and transfer the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realize the parsing to domain name.
Further, described in the embodiment of the present invention, browser also comprises:
Update module 450, for sending the request message of the DNS expedited data information that Download Server generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
In sum, browser described in the embodiment of the present 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 side browser, can realize web page browsing to accelerate, this acceleration processing procedure is consuming time short, improves the analyzing efficiency of DNS.
Embodiment four
As shown in Figure 5, the embodiment of the present invention also provides a kind of browser to obtain the system of domain name system DNS resolution data, comprising: the browser described in embodiment three, and server.
Described browser sends the request message of the DNS expedited data information that Download Server generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
In sum, system described in the embodiment of the present 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 side browser, can realize web page browsing to accelerate, this acceleration processing procedure is consuming time short, improves the analyzing efficiency of DNS.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above 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.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of the some or all parts in the equipment such as browser, server that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. browser obtains a method for domain name system DNS resolution data, comprising:
Browser calls DNS expedited data after starting;
Browser receives Client-initiated to the request of access of uniform resource position mark URL;
Browser extracts domain name corresponding to described URL, detect in the DNS expedited data information of browser side and whether comprise domain name, if, then domain name corresponding for described URL is inserted into and waits to accelerate in list, and notification queue daemon thread, create semaphore by described queue daemon thread, and transfer the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realize the parsing to domain name; If not, then tackle the acquisition address information function of browser side computer system, obtain the IP address information that Main Domain corresponding to described URL and each subdomain name corresponding to this Main Domain and described Main Domain and each subdomain name are corresponding;
IP address information corresponding with it for each domain name of described acquisition is kept in the DNS expedited data information of browser this locality by browser.
2. the method for claim 1, is characterized in that, stores each domain name of acquisition in described DNS expedited data information in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
3. the method for claim 1, is characterized in that, the mode of Main Domain corresponding to described acquisition URL and each subdomain name corresponding to this Main Domain and described Main Domain and IP address information corresponding to each subdomain name, comprises further:
The acquisition address information function of interception browser side computer system, obtains the socket address structure that each subdomain name corresponding to described Main Domain and each subdomain name corresponding to described Main Domain and described Main Domain and described Main Domain is corresponding;
According to described socket address structure, obtain described Main Domain and IP address information corresponding to each subdomain name corresponding to described Main Domain.
4. the method for claim 1, is characterized in that, in described method, when described browser exits, IP address information corresponding with it for each domain name obtained is kept in the DNS expedited data information of browser this locality.
5. the method for claim 1, is characterized in that, described method also comprises:
The request message of the DNS expedited data information that Download Server side generates is sent to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
6. a browser, comprising:
Access initiation module, after starting, calls DNS expedited data for browser; And receive Client-initiated to the request of access of URL;
Data obtaining module, for extracting domain name corresponding to described URL, detect in the DNS expedited data information of browser side and whether comprise domain name, if, then domain name corresponding for described URL is inserted into and waits to accelerate in list, and notification queue daemon thread, create semaphore by described queue daemon thread, and transfer the IP address information of the corresponding domain name of URL described in described DNS expedited data information, realize the parsing to domain name; If not, then tackle the acquisition address information function of browser side computer system, obtain the IP address information that Main Domain corresponding to described URL and each subdomain name corresponding to this Main Domain and described Main Domain and each subdomain name are corresponding;
Information storage module, for being kept at IP address information corresponding with it for each domain name of described acquisition in the DNS expedited data information of browser this locality.
7. browser as claimed in claim 6, is characterized in that, in described information storage module, stores each domain name of acquisition in DNS expedited data information in the mode of map table, and the IP address information that each domain name is corresponding; And when each domain name obtained comprises Main Domain and subdomain name corresponding to each Main Domain, in described map table, also set up the mapping relations having each Main Domain and corresponding subdomain name.
8. browser as claimed in claim 6, it is characterized in that, described data obtaining module, be further used for the acquisition address information function tackling browser side computer system, obtain the socket address structure that each subdomain name corresponding to described Main Domain and each subdomain name corresponding to described Main Domain and described Main Domain and described Main Domain is corresponding; According to described socket address structure, obtain described Main Domain and IP address information corresponding to each subdomain name corresponding to described Main Domain.
9. browser as claimed in claim 6, is characterized in that, described information storage module, is further used for when described browser exits, and IP address information corresponding with it for each domain name obtained is kept in the DNS expedited data information of browser this locality.
10. browser as claimed in claim 6, is characterized in that, also comprise:
Update module, for sending the request message of the DNS expedited data information that Download Server generates to server side, or, the DNS expedited data information of the server side generation of reception server side active push, and when getting the DNS expedited data information that described server side generates, utilize the DNS expedited data information of this DNS expedited data information to browser this locality to upgrade.
CN201210375936.3A 2012-09-29 2012-09-29 A kind of method of browser and acquisition dns resolution data thereof Active CN102902787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210375936.3A CN102902787B (en) 2012-09-29 2012-09-29 A kind of method of browser and acquisition dns resolution data thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210375936.3A CN102902787B (en) 2012-09-29 2012-09-29 A kind of method of browser and acquisition dns resolution data thereof

Publications (2)

Publication Number Publication Date
CN102902787A CN102902787A (en) 2013-01-30
CN102902787B true CN102902787B (en) 2015-11-25

Family

ID=47575019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210375936.3A Active CN102902787B (en) 2012-09-29 2012-09-29 A kind of method of browser and acquisition dns resolution data thereof

Country Status (1)

Country Link
CN (1) CN102902787B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868258A (en) * 2015-12-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Crawler system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242336A (en) * 2008-03-13 2008-08-13 杭州华三通信技术有限公司 Method for remote access to intranet Web server and Web proxy server
CN101682621A (en) * 2007-03-12 2010-03-24 思杰***有限公司 Systems and methods for cache operations
CN102855334A (en) * 2012-09-29 2013-01-02 北京奇虎科技有限公司 Browser and method for acquiring domain name system (DNS) resolving data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8028091B1 (en) * 2002-06-28 2011-09-27 At&T Intellectual Property I. L.P. System and method for reducing DNS lookup traffic in a computer data network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102855334A (en) * 2012-09-29 2013-01-02 北京奇虎科技有限公司 Browser and method for acquiring domain name system (DNS) resolving data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡建林等.计算机网络基础及应用.《计算机网络基础及应用》.2011, *

Also Published As

Publication number Publication date
CN102902787A (en) 2013-01-30

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
CN102855334B (en) A kind of browser and the method obtaining dns resolution data thereof
RU2615057C2 (en) Method and device for access to web-page and router
EP3123320B1 (en) Implementation of a service that coordinates the placement and execution of containers
CN100367276C (en) Method and appts for searching within a computer network
WO2012178167A2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN103617222A (en) Browser and method for preloading in webpages
CN1351729A (en) Handling a request for information provided by a networks site
CN105095280A (en) Caching method and apparatus for browser
CN102937981A (en) Webpage representing system and method
CN103078945A (en) Method and system for processing browser crash data
US10594764B2 (en) Request cache to improve web applications performance
US9648078B2 (en) Identifying a browser for rendering an electronic document
CN109325192B (en) Advertisement anti-shielding method and device
CN103077349B (en) A kind of method of browser side prompting access secure information and device
CN102929944A (en) Method and device for web page rendering by IE (Internet Explorer) kernel browser
CN101115064A (en) Network data storing, obtaining method and its implementing device
CN104065736A (en) URL redirection method, device, and system
JP5869010B2 (en) System and method for providing mobile URL in mobile search environment
CN110321510A (en) Page rendering method and system
CN103440281A (en) Method, device and equipment for acquiring download file
EP2998885A1 (en) Method and device for information search
CN102333123B (en) File storage method and device, searching method and device and network device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd