CN104184841A - Website DNS (domain name resolution) accelerating method and client - Google Patents
Website DNS (domain name resolution) accelerating method and client Download PDFInfo
- Publication number
- CN104184841A CN104184841A CN201310196077.6A CN201310196077A CN104184841A CN 104184841 A CN104184841 A CN 104184841A CN 201310196077 A CN201310196077 A CN 201310196077A CN 104184841 A CN104184841 A CN 104184841A
- Authority
- CN
- China
- Prior art keywords
- picture
- dns
- address
- sub
- substation
- 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
Links
Abstract
The invention provides a website DNS (domain name resolution) accelerating method and a client. During the process of requesting and loading a master site page via the client, a domain name pre-resolution operation is carried out on all sub sites of the master site, and the domain name pre-resolution result is stored in a picture form. When the client needs to access a certain sub site page, the sub site page is requested and loaded according the stored pictures, and thus when the user operates on the current master site page, the browser of the client completes domain name resolution on the remaining sub sites in the background and cache of the domain name pre-resolution result is carried out. When the user operates on the page to jump to other sub site domain names, domain name resolution does not need to be requested again, and thus the user waiting time caused by domain name resolution can be greatly reduced, the domain name resolution time is saved, the effects of page accelerating are achieved, the website access efficiency is improved, and the user experience is enhanced.
Description
Technical field
The present invention relates to a kind of website dns resolution accelerated method and client.
Background technology
Conventionally DNS (domain name) parsing is to initiate real-time query when user accesses associated dns name resource first, then according to TTL, the IP address after dns server is resolved is set.
At present, domestic internet environment bandwidth resources are nervous, particularly between night 20:00 23:00, accelerating website access can be significantly slack-off, produce white screen for a long time, affect user and experience, this situation is because access between different domain names is switched, need to resolve new domain name, dns resolution overlong time causes.
Summary of the invention
The object of the present invention is to provide a kind of website dns resolution accelerated method and client, the time that can accelerate website dns resolution.
For addressing the above problem, the invention provides a kind of website dns resolution accelerated method, comprising:
Client, in asking and load the process of the home site page, is carried out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture;
When described client need to be accessed certain sub-site page, according to storage picture request and load this sub-site page.
Further, in said method, all substations point of home site is carried out to the pre-parse operation of DNS, and the step that the pre-analysis result of DNS is stored with the form of picture comprises:
Described client is resolved in advance to the DNS of all substation points of dns server request home site;
Described client sends picture request according to the pre-result of resolving of dns server to corresponding substation point, and picture and the expired time thereof of the IP address of this substation point of expression of disposing in advance from the sub-station for acquiring of request;
Described client stores represents picture and the expired time thereof of the IP address of each substation point.
Further, in said method, represent that the picture format of the IP address of substation point is the transparent gif of 1*1 pixel.
Further, in said method, represent the expired time of picture and the corresponding TTL time consistency of dns server of the IP address of substation point.
Further, in said method, when described client need to be accessed certain sub-site page, according to the picture request of storage the step that loads this sub-site page, comprise:
When described client need to be accessed certain sub-site page, whether the expired time of the picture of the IP address of this substation point of judgement expression arrives,
If not, described client according to represent this substation point IP address picture request and load this sub-site page;
If, described client is asked the dns resolution of this substation point again to dns server, the result of resolving according to dns server sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
According to another side of the present invention, provide the dns resolution of a kind of website to accelerate client, comprising:
Parsing module, for the process asking and load the home site page, carries out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture;
Access modules, for asking and load the home site page maybe when needs are accessed certain sub-site page, according to the picture request of storage and load this sub-site page.
Further, in above-mentioned client, described parsing module, resolves in advance for the DNS of all substation points to dns server request home site; According to the pre-result of resolving of dns server, to corresponding substation point, send picture request, and the picture of the IP address of this substation point of expression of disposing in advance from the sub-station for acquiring of request, storage represents picture and the expired time thereof of the IP address of each substation point.
Further, in above-mentioned client, the picture format of the IP address of the expression substation point of described parsing module storage is the transparent gif of 1*1 pixel.
Further, in above-mentioned client, the expired time of picture and the corresponding TTL time consistency of dns server of the IP address of the expression substation point of described parsing module storage.
Further, in above-mentioned client, described access modules, when accessing certain sub-site page when needs, judgement represents whether the expired time of picture of the IP address of this substation point arrives,
If not, according to represent this substation point IP address picture request and load this sub-site page;
If, to dns server, again ask the dns resolution of this substation point, the result of resolving according to dns server sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
Compared with prior art, the present invention, is carried out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture by client in asking and load the process of the home site page, when described client need to be accessed certain sub-site page, according to storage picture request and load this sub-site page, can realize when user operates the current home site page, the browser of client has completed the domain name mapping for all the other substation points on backstage, and buffer memory the pre-analysis result of DNS, when user's operation pages jumps to the domain name of other substation points, without request domain name analysis again, thereby, significantly reduce the period of reservation of number causing because of dns resolution, save the time of dns resolution, play the effect of accelerating the page, improve website visiting efficiency, promoting user experiences.
Accompanying drawing explanation
Fig. 1 is the flow chart of the website dns resolution accelerated method of one embodiment of the invention;
Fig. 2 is the detail flowchart of Fig. 1;
Fig. 3 is that the user of one embodiment of the invention accesses schematic diagram;
Fig. 4 is the module diagram that client is accelerated in the dns resolution of one embodiment of the invention website.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Embodiment mono-
As shown in Fig. 1~2, the invention provides a kind of website dns resolution accelerated method, comprising:
Step S1, client, in asking and load the process of the home site page, is carried out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture;
In one embodiment of the invention, step S1 comprises:
Step S11, described client is resolved in advance to the DNS of all substation points of dns server request home site;
Step S12, described client sends picture request according to the pre-result of resolving of dns server to corresponding substation point, and picture and the expired time thereof of the IP address of this substation point of expression of disposing in advance from the sub-station for acquiring of request;
Step S13, described client stores represents picture and the expired time thereof of the IP address of each substation point, optionally, represent that the picture format of the IP address of substation point can be the transparent gif of 1*1 pixel, in addition, the expired time of picture and the corresponding TTL time consistency of dns server that represent the IP address of substation point.
Step S2, when described client need to be accessed certain sub-site page, according to storage picture request and load this sub-site page.
In one embodiment of the invention, step S2 comprises:
Step S21, when described client need to be accessed certain sub-site page, whether the expired time of the picture of the IP address of this substation point of judgement expression arrives, if not, forwards step S22 to, if so, forwards step S23 to,
Step S22, described client is according to the picture request of the IP address of this substation point of expression and load this sub-site page;
Step S23, described client is asked the dns resolution of this substation point again to dns server, the result of resolving according to dns server sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
The user of the present embodiment accesses schematic diagram specifically can be referring to Fig. 3.
For example, there is domain name www.ctrip.com (home site) in a website, flights.ctrip.com(substation point), hotels.ctrip.com(substation point), vacations.ctrip.com(substation point).
1, on home site Landing Pages, add client script, code sample:
2, at three sub-website root paths, dispose the transparent gif of 1*1 pixel respectively, and the corresponding TTL time consistency of expired time and dns server is set.
3, when user passes through client-access home site, after home site page key element loaded, javascript meeting dynamic asynchronous loads the little picture of 1*1 of all the other domain name deploy, and operating system can complete in the machine client the buffer memory of dns resolution.
4,, when user has access to other substation points, because dns resolution buffer memory, directly connexon website, can not wait as long for slowly because of dns resolution.
To sum up, the present embodiment can be realized when user operates the current home site page, and the browser of client has completed the domain name mapping for all the other substation points on backstage, and buffer memory the pre-analysis result of DNS, when user's operation pages jumps to the domain name of other substation points, without request domain name analysis again, thereby, the period of reservation of number causing because of dns resolution significantly reduced, save the time of dns resolution, play the effect of accelerating the page, improve website visiting efficiency, promote user and experience.
Embodiment bis-
As shown in Figure 4, the present invention also provides another kind of dns resolution to accelerate client, comprises parsing module 1 and access modules 2.
Parsing module 1, for the process asking and load home site 3 pages, carries out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture.
One embodiment of the invention can, described parsing module 1, resolves in advance for the DNS of all substation points to dns server 5 request home sites; According to the pre-result of resolving of dns server 4, to corresponding substation point 6, send picture requests, and from the substation point 6 of request, obtain the picture of IP address of this substation point of expression of pre-deployment, store picture and the expired time thereof of the IP address of each substation point of expression.
Optionally, the picture format of the IP address of the expression substation point of described parsing module 1 storage is the transparent gif of 1*1 pixel.In addition, the expired time of picture and the corresponding TTL time consistency of dns server of the IP address of the expression substation point of described parsing module 1 storage.
Access modules 2, for asking and load home site 3 pages maybe when needs are accessed certain sub-site page, according to the picture request of storage and load this substation and put 6 pages.
One embodiment of the invention can, described access modules 2, when accessing certain sub-site page when needs, judgement represents whether the expired time of picture of the IP address of this substation point arrives, if not, according to represent this substation point IP address picture request and load this sub-site page; If, to dns server 5, again ask the dns resolution of this substation point, the result of resolving according to dns server 5 sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
Other detailed content of embodiment bis-specifically can, referring to the appropriate section of embodiment mono-, not repeat them here.
In sum, the present invention, is carried out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture by client in asking and load the process of the home site page, when described client need to be accessed certain sub-site page, according to storage picture request and load this sub-site page, can realize when user operates the current home site page, the browser of client has completed the domain name mapping for all the other substation points on backstage, and buffer memory the pre-analysis result of DNS, when user's operation pages jumps to the domain name of other substation points, without request domain name analysis again, thereby, significantly reduce the period of reservation of number causing because of dns resolution, save the time of dns resolution, play the effect of accelerating the page, improve website visiting efficiency, promoting user experiences.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment, owing to corresponding to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
Professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these change and modification.
Claims (10)
1. a website dns resolution accelerated method, is characterized in that, comprising:
Client, in asking and load the process of the home site page, is carried out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture;
When described client need to be accessed certain sub-site page, according to storage picture request and load this sub-site page.
2. dns resolution accelerated method in website as claimed in claim 1, is characterized in that, all substations point of home site is carried out to the pre-parse operation of DNS, and the step that the pre-analysis result of DNS is stored with the form of picture comprises:
Described client is resolved in advance to the DNS of all substation points of dns server request home site;
Described client sends picture request according to the pre-result of resolving of dns server to corresponding substation point, and picture and the expired time thereof of the IP address of this substation point of expression of disposing in advance from the sub-station for acquiring of request;
Described client stores represents picture and the expired time thereof of the IP address of each substation point.
3. dns resolution accelerated method in website as claimed in claim 2, is characterized in that, represents that the picture format of the IP address of substation point is the transparent gif of 1*1 pixel.
4. dns resolution accelerated method in website as claimed in claim 3, is characterized in that, represents the expired time of picture and the corresponding TTL time consistency of dns server of the IP address of substation point.
5. as the website dns resolution accelerated method in claim 4, it is characterized in that, when described client need to be accessed certain sub-site page, according to the picture request of storage the step that loads this sub-site page, comprise:
When described client need to be accessed certain sub-site page, whether the expired time of the picture of the IP address of this substation point of judgement expression arrives,
If not, described client according to represent this substation point IP address picture request and load this sub-site page;
If, described client is asked the dns resolution of this substation point again to dns server, the result of resolving according to dns server sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
6. client is accelerated in website as claimed in claim 1 dns resolution, it is characterized in that, comprising:
Parsing module, for the process asking and load the home site page, carries out the pre-parse operation of DNS to all substations point of home site, and the pre-analysis result of DNS is stored with the form of picture;
Access modules, for asking and load the home site page maybe when needs are accessed certain sub-site page, according to the picture request of storage and load this sub-site page.
7. client is accelerated in website as claimed in claim 6 dns resolution, it is characterized in that described parsing module is resolved in advance for the DNS of all substation points to dns server request home site; According to the pre-result of resolving of dns server, to corresponding substation point, send picture request, and the picture of the IP address of this substation point of expression of disposing in advance from the sub-station for acquiring of request, storage represents picture and the expired time thereof of the IP address of each substation point.
8. as the dns resolution of claim 7 website, accelerate client, it is characterized in that, the picture format of the IP address of the expression substation point of described parsing module storage is the transparent gif of 1*1 pixel.
9. as the dns resolution of claim 8 website, accelerate client, it is characterized in that, the expired time of picture and the corresponding TTL time consistency of dns server of the IP address of the expression substation point of described parsing module storage.
10. client is accelerated in website as claimed in claim 9 dns resolution, it is characterized in that, and described access modules, when accessing certain sub-site page when needs, whether the expired time of the picture of the IP address of this substation point of judgement expression arrives,
If not, according to represent this substation point IP address picture request and load this sub-site page;
If, to dns server, again ask the dns resolution of this substation point, the result of resolving according to dns server sends picture request to this substation point, the picture of the IP address of this substation point of expression of disposing in advance from this sub-station for acquiring, and storage represents picture and the expired time of the IP address of this substation point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310196077.6A CN104184841B (en) | 2013-05-23 | 2013-05-23 | Website dns resolution accelerated method and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310196077.6A CN104184841B (en) | 2013-05-23 | 2013-05-23 | Website dns resolution accelerated method and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104184841A true CN104184841A (en) | 2014-12-03 |
CN104184841B CN104184841B (en) | 2018-01-12 |
Family
ID=51965570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310196077.6A Active CN104184841B (en) | 2013-05-23 | 2013-05-23 | Website dns resolution accelerated method and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104184841B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301928A (en) * | 2016-08-22 | 2017-01-04 | 深圳市茁壮网络股份有限公司 | A kind of web analysis, acquisition methods and device |
CN107835267A (en) * | 2017-11-15 | 2018-03-23 | 维沃移动通信有限公司 | Domain name analytic method and device |
CN111131549A (en) * | 2019-12-31 | 2020-05-08 | 福建天泉教育科技有限公司 | Method for prefetching data by client and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1965540A1 (en) * | 2005-12-15 | 2008-09-03 | Alcatel Lucent | A method and network device for configuring the domain name in ipv6 access network |
CN102469167A (en) * | 2010-11-01 | 2012-05-23 | 中国移动通信集团北京有限公司 | Domain name query implementing method and system |
CN102571997A (en) * | 2010-12-29 | 2012-07-11 | 中国移动通信集团北京有限公司 | Method, system and device for data access |
CN102855334A (en) * | 2012-09-29 | 2013-01-02 | 北京奇虎科技有限公司 | Browser and method for acquiring domain name system (DNS) resolving data |
CN103064979A (en) * | 2013-01-15 | 2013-04-24 | 中兴通讯股份有限公司 | Router and method for implementing same to process web page data |
-
2013
- 2013-05-23 CN CN201310196077.6A patent/CN104184841B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1965540A1 (en) * | 2005-12-15 | 2008-09-03 | Alcatel Lucent | A method and network device for configuring the domain name in ipv6 access network |
CN102469167A (en) * | 2010-11-01 | 2012-05-23 | 中国移动通信集团北京有限公司 | Domain name query implementing method and system |
CN102571997A (en) * | 2010-12-29 | 2012-07-11 | 中国移动通信集团北京有限公司 | Method, system and device for data access |
CN102855334A (en) * | 2012-09-29 | 2013-01-02 | 北京奇虎科技有限公司 | Browser and method for acquiring domain name system (DNS) resolving data |
CN103064979A (en) * | 2013-01-15 | 2013-04-24 | 中兴通讯股份有限公司 | Router and method for implementing same to process web page data |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301928A (en) * | 2016-08-22 | 2017-01-04 | 深圳市茁壮网络股份有限公司 | A kind of web analysis, acquisition methods and device |
CN107835267A (en) * | 2017-11-15 | 2018-03-23 | 维沃移动通信有限公司 | Domain name analytic method and device |
CN111131549A (en) * | 2019-12-31 | 2020-05-08 | 福建天泉教育科技有限公司 | Method for prefetching data by client and storage medium |
CN111131549B (en) * | 2019-12-31 | 2022-04-01 | 福建天泉教育科技有限公司 | Method for prefetching data by client and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104184841B (en) | 2018-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102938776B (en) | Dynamic page processing system based on ajax technology | |
CN102984286B (en) | Method and device and system of domain name server (DNS) for buffering updating | |
US8914514B1 (en) | Managing network based content | |
CN102647482B (en) | Method and system for accessing website | |
JP2019032883A (en) | Method, apparatus, server and system for implementing web application | |
CN103347089A (en) | Method and device for separating and accelerating dynamic resources and static resources of website | |
WO2015120750A1 (en) | Dns-based ipv6 and ipv4 interworking method | |
CN109032797A (en) | For providing the method and apparatus of web page access | |
CN101785004A (en) | Client-side aggregation of context-sensitive request results | |
US9088461B2 (en) | Common web accessible data store for client side page processing | |
CN103281409A (en) | Domain name resolution method of mobile internet and DNS server based on TCP protocol | |
CN103905572A (en) | Domain name resolution request processing method and device | |
US20130268831A1 (en) | Method, device, and system for acquiring start page | |
CN105100294A (en) | Webpage acquiring method, system, network server, browser and GSLB | |
CN109634753B (en) | Data processing method, device, terminal and storage medium for switching browser kernels | |
CN111209364A (en) | Mass data access processing method and system based on crowdsourcing map updating | |
CN105634972A (en) | Method for improving access efficiency of Web client | |
US20140006918A1 (en) | Method and system for web page rearrangement | |
CN104184841A (en) | Website DNS (domain name resolution) accelerating method and client | |
CN105205151B (en) | The method and system of browser page flow are saved in mobile terminal | |
CN101895550B (en) | Cache accelerating method for compatibility of dynamic and static contents of internet website | |
CN103973819A (en) | Method, related device and system for responding to request for community domain name | |
CN113127420B (en) | Metadata request processing method, device, equipment and medium | |
CN104980464A (en) | Network request processing method, network server and network system | |
CN111191156B (en) | Network request resource scheduling method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20160206 Address after: 200335 Shanghai city Changning District Admiralty Road No. 968 Building No. 16 10 floor Applicant after: SHANGHAI XIECHENG BUSINESS CO., LTD. Address before: 200335 Shanghai Changning District Fuquan Road No. 99 Applicant before: Ctrip computer technology (Shanghai) Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |