CN104184841B - Website dns resolution accelerated method and client - Google Patents

Website dns resolution accelerated method and client Download PDF

Info

Publication number
CN104184841B
CN104184841B CN201310196077.6A CN201310196077A CN104184841B CN 104184841 B CN104184841 B CN 104184841B CN 201310196077 A CN201310196077 A CN 201310196077A CN 104184841 B CN104184841 B CN 104184841B
Authority
CN
China
Prior art keywords
substation
picture
substation point
point
dns
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
CN201310196077.6A
Other languages
Chinese (zh)
Other versions
CN104184841A (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.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business 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 Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201310196077.6A priority Critical patent/CN104184841B/en
Publication of CN104184841A publication Critical patent/CN104184841A/en
Application granted granted Critical
Publication of CN104184841B publication Critical patent/CN104184841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of website dns resolution accelerated method and client, by client during asking and loading the home site page, DNS pre-parsed operations are carried out to all substation points of home site, and DNS pre-parsed results are stored in the form of picture;When the client needs to access some substation point page, asked according to the picture of storage and load the substation point page, when may be implemented in user's operation current master station point page, the browser of client is completing the domain name mapping for remaining substation point from the background, and DNS pre-parsed results are cached, when user's operation pages jump to the domain name of other substation points, without asking domain name mapping again, so as to, the period of reservation of number caused by dns resolution is greatly decreased, save the time of dns resolution, play the effect for accelerating the page, improve website visiting efficiency, lift Consumer's Experience.

Description

Website dns resolution accelerated method and client
Technical field
The present invention relates to a kind of website dns resolution accelerated method and client.
Background technology
Usual DNS (domain name) parsings are that real-time query is initiated when user accesses associated dns name resource first, then IP address after dns server parsing is set according to TTL.
At present, domestic internet environment bandwidth resources are nervous, particularly in night 20:00 -23:Between 00, website visiting speed Degree can be significantly slack-off, produces prolonged white screen, influences Consumer's Experience, and the situation is due to access switching between different domain names, is needed New domain name is parsed, caused by dns resolution overlong time.
The content of the invention
It is an object of the invention to provide a kind of website dns resolution accelerated method and client, can speed up website DNS solutions The time of analysis.
To solve the above problems, the present invention provides a kind of website dns resolution accelerated method, including:
During asking and loading the home site page, all substation points progress DNS to home site is solved client in advance Analysis operation, and DNS pre-parsed results are stored in the form of picture;
When the client needs to access some substation point page, asked according to the picture of storage and load the substation point The page.
Further, in the above-mentioned methods, DNS pre-parsed operations are carried out to all substation points of home site, and DNS is pre- The step of analysis result is stored in the form of picture includes:
The client asks the DNS pre-parsed of all substation points of home site to dns server;
The client sends picture request according to the result of dns server pre-parsed to corresponding substation point, and from please The substation point asked obtains the picture and its expired time for the IP address for representing the substation point disposed in advance;
The client storage represents the picture and its expired time of the IP address of each substation point.
Further, in the above-mentioned methods, the picture format for representing the IP address of substation point is the transparent of 1*1 pixels gif。
Further, in the above-mentioned methods, the expired time and dns server of the picture of the IP address of substation point are represented Corresponding TTL time consistencies.
Further, in the above-mentioned methods, when the client needs to access some substation point page, according to storage Picture is asked and included the step of loading the substation point page:
When the client needs to access some substation point page, judge to represent the picture of the IP address of the substation point Whether expired time has arrived,
If it is not, then the client is asked according to the picture for the IP address for representing the substation point and loads the substation point page Face;
If so, then dns resolution of the client to the dns server re-request substation point, according to dns server solution The result of analysis sends picture request to the substation point, and the figure for the IP address for representing the substation point disposed in advance is obtained from the substation point Piece, and store the picture and expired time of the IP address for representing the substation point.
According to the another side of the present invention, there is provided a kind of website dns resolution accelerates client, including:
Parsing module, for during asking and loading the home site page, being carried out to all substation points of home site DNS pre-parsed is operated, and DNS pre-parsed results are stored in the form of picture;
Access modules, for asking and loading the home site page or when needing to access some substation point page, according to depositing The picture of storage is asked and loads the substation point page.
Further, in above-mentioned client, the parsing module, for asking all of home site to dns server The DNS pre-parsed of substation point;According to the result of dns server pre-parsed to corresponding substation point send picture request, and from please The substation point asked obtains the picture for the IP address for representing the substation point disposed in advance, and storage represents the IP address of each substation point Picture and its expired time.
Further, in above-mentioned client, the picture lattice of the IP address of the expression substation point of the parsing module storage Formula is the transparent gif of 1*1 pixels.
Further, in above-mentioned client, the picture of the IP address of the expression substation point of the parsing module storage Expired time TTL time consistencies corresponding to dns server.
Further, in above-mentioned client, the access modules, for when needing to access some substation point page, Whether the expired time for judging to represent the picture of the IP address of the substation point has arrived,
If it is not, then asked according to the picture for the IP address for representing the substation point and load the substation point page;
If so, the then dns resolution to the dns server re-request substation point, according to the result that dns server parses to The substation point sends picture request, and the picture for the IP address for representing the substation point disposed in advance is obtained from the substation point, and stores Represent the picture and expired time of the IP address of the substation point.
Compared with prior art, the present invention by client during asking and loading the home site page, to main website All substation points of point carry out DNS pre-parsed operations, and DNS pre-parsed results are stored in the form of picture;When described When client needs to access some substation point page, asked according to the picture of storage and load the substation point page, may be implemented in When user operates the current master station point page, the browser of client is completing the domain name for remaining substation point from the background Parsing, and DNS pre-parsed results have been cached, when user's operation pages jump to the domain name of other substation points, without again Domain name mapping is asked, so as to which the period of reservation of number caused by dns resolution be greatly decreased, save the time of dns resolution, rise To the effect for accelerating the page, website visiting efficiency is improved, lifts Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart of the website dns resolution accelerated method of one embodiment of the invention;
Fig. 2 is Fig. 1 detail flowchart;
Fig. 3 is that the user of one embodiment of the invention accesses schematic diagram;
Fig. 4 is the module diagram that the dns resolution of one embodiment of the invention website accelerates client.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Embodiment one
As shown in Fig. 1~2, the present invention provides a kind of website dns resolution accelerated method, including:
Step S1, client are carried out during asking and loading the home site page to all substation points of home site DNS pre-parsed is operated, and DNS pre-parsed results are stored in the form of picture;
In one embodiment of the invention, step S1 includes:
Step S11, the client ask the DNS pre-parsed of all substation points of home site to dns server;
Step S12, the client sends picture according to the result of dns server pre-parsed to corresponding substation point please Ask, and the picture and its expired time of the IP address for representing the substation point disposed in advance are obtained from the substation point of request;
Step S13, the client storage represents the picture and its expired time of the IP address of each substation point, optional , representing the picture format of the IP address of substation point can be the transparent gif of 1*1 pixels, in addition, representing the IP address of substation point Picture expired time TTL time consistencies corresponding to dns server.
Step S2, when the client needs to access some substation point page, ask and load according to the picture of storage The substation point page.
In one embodiment of the invention, step S2 includes:
Step S21, when the client needs to access some substation point page, judge to represent the IP address of the substation point Whether the expired time of picture has arrived, if it is not, step S22 is then gone to, if so, step S23 is then gone to,
Step S22, the client are asked according to the picture for the IP address for representing the substation point and load the substation point page Face;
Step S23, dns resolution of the client to the dns server re-request substation point, according to dns server The result of parsing sends picture request to the substation point, the IP address for representing the substation point disposed in advance from substation point acquisition Picture, and store the picture and expired time of the IP address for representing the substation point.
The user of the present embodiment accesses schematic diagram and for details, reference can be made to Fig. 3.
For example, there is domain name www.ctrip.com (home site), flights.ctrip.com in a website(Substation point), hotels.ctrip.com(Substation point), vacations.ctrip.com(Substation point).
1st, client script, code sample are added on home site Landing Pages:
2nd, respectively in the transparent gif of three substation point root path deployment 1*1 pixels, and expired time is set to be taken with DNS The corresponding TTL time consistencies of business device.
3rd, when user accesses home site by client, after home site page key element loaded, Javascript meeting dynamic asynchronous loads the small pictures of the 1*1 disposed in remaining domain name, and operating system can be completed in the machine client The caching of dns resolution.
4th, when user has access to other substation points, because dns resolution is buffered, substation point can be directly connected to, no It can wait as long for because dns resolution is slow.
To sum up, when the present embodiment may be implemented in user's operation current master station point page, the browser of client exists Backstage completes the domain name mapping for remaining substation point, and has cached DNS pre-parsed results, when user's operation pages redirect To other substation points domain name when, without asking domain name mapping again, so as to, the user caused by dns resolution is greatly decreased Stand-by period, the time of dns resolution is saved, play the effect for accelerating the page, improve website visiting efficiency, lift Consumer's Experience.
Embodiment two
As shown in figure 4, the present invention, which also provides another dns resolution, accelerates client, including parsing module 1 and access modules 2。
Parsing module 1, for during asking and loading the page of home site 3, being clicked through to all substations of home site Row DNS pre-parsed is operated, and DNS pre-parsed results are stored in the form of picture.
One embodiment of the invention can, the parsing module 1, for dns server 5 ask home site all substation points DNS pre-parsed;Picture request is sent to corresponding substation point 6 according to the result of the pre-parsed of dns server 4, and from request Substation point 6 obtains the picture for the IP address for representing the substation point disposed in advance, and storage represents the IP address of each substation point Picture and its expired time.
Optionally, the picture format of the IP address for the expression substation point that the parsing module 1 stores is the saturating of 1*1 pixels Bright gif.In addition, the expired time and dns server of the picture of the IP address for the expression substation point that the parsing module 1 stores Corresponding TTL time consistencies.
Access modules 2, for asking and loading the page of home site 3 or when needing to access some substation point page, according to The picture of storage is asked and loads the page of substation point 6.
One embodiment of the invention can, the access modules 2, for when needing to access some substation point page, judging table Show whether the expired time of the picture of the IP address of the substation point has arrived, if it is not, then according to the IP address for representing the substation point Picture is asked and loads the substation point page;If so, the then dns resolution to the re-request substation point of dns server 5, according to The result that dns server 5 parses sends picture request to the substation point, and the expression substation point disposed in advance is obtained from the substation point IP address picture, and store represent the substation point IP address picture and expired time.
Other detailed contents of embodiment two for details, reference can be made to the appropriate section of embodiment one, will not be repeated here.
In summary, the present invention by client during asking and loading the home site page, to the institute of home site There is substation point to carry out DNS pre-parsed operations, and DNS pre-parsed results are stored in the form of picture;When the client When needing to access some substation point page, asked according to the picture of storage and load the substation point page, may be implemented in user behaviour When making the current master station point page, the browser of client is completing the domain name mapping for remaining substation point from the background, And DNS pre-parsed results are cached, when user's operation pages jump to the domain name of other substation points, without asking domain again Name parsing, so as to which the period of reservation of number caused by dns resolution be greatly decreased, save the time of dns resolution, play acceleration The effect of the page, website visiting efficiency is improved, lift Consumer's Experience.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For system disclosed in embodiment For, due to corresponding to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Obviously, those skilled in the art can carry out the spirit of various changes and modification without departing from the present invention to invention And scope.So, if these modifications and variations of the present invention belong to the claims in the present invention and its equivalent technologies scope it Interior, then the present invention is also intended to including these changes and modification.

Claims (6)

  1. A kind of 1. website dns resolution accelerated method, it is characterised in that including:
    For client during asking and loading the home site page, the client asks the institute of home site to dns server Have the DNS pre-parsed of substation point, complete to carry out all substation points of home site DNS pre-parsed operations, the client according to The result of dns server pre-parsed sends picture request to corresponding substation point, and obtains what is disposed in advance from the substation point of request The picture and its expired time of the IP address of the substation point are represented, the client storage represents the IP address of each substation point Picture and its expired time;
    When the client needs to access some substation point page, asked according to the picture of storage and load the substation point page The step of include:
    When the client needs to access some substation point page, judge to represent the expired of the picture of the IP address of the substation point Whether the time has arrived,
    If it is not, then the client is asked according to the picture for the IP address for representing the substation point and loads the substation point page;
    If so, then dns resolution of the client to the dns server re-request substation point, is parsed according to dns server As a result picture request is sent to the substation point, the picture for the IP address for representing the substation point disposed in advance is obtained from the substation point, And store the picture and expired time of the IP address for representing the substation point.
  2. 2. dns resolution accelerated method in website as claimed in claim 1, it is characterised in that represent the figure of the IP address of substation point Piece form is the transparent gif of 1*1 pixels.
  3. 3. dns resolution accelerated method in website as claimed in claim 2, it is characterised in that represent the figure of the IP address of substation point The expired time of piece TTL time consistencies corresponding to dns server.
  4. A kind of 4. client for dns resolution accelerated method in website as claimed in claim 1, it is characterised in that including:
    Parsing module, for during asking and loading the home site page, control client to ask main website to dns server The DNS pre-parsed of all substation points of point, complete to carry out DNS pre-parsed operations to all substation points of home site, taken according to DNS The result for device pre-parsed of being engaged in sends picture request to corresponding substation point, and the expression disposed in advance is obtained from the substation point of request and is somebody's turn to do The picture and its expired time of the IP address of substation point, storage represent each substation point IP address picture and its it is expired when Between;
    Access modules, for asking and loading the home site page or when needing to access some substation point page, judge to represent to be somebody's turn to do Whether the expired time of the picture of the IP address of substation point has arrived,
    If it is not, then asked according to the picture for the IP address for representing the substation point and load the substation point page;
    If so, the then dns resolution to the dns server re-request substation point, according to the result that dns server parses to the son Website sends picture request, and the picture for the IP address for representing the substation point disposed in advance is obtained from the substation point, and stores expression The picture and expired time of the IP address of the substation point.
  5. 5. as the dns resolution of claim 4 website accelerates client, it is characterised in that the expression substation of the parsing module storage The picture format of the IP address of point is the transparent gif of 1*1 pixels.
  6. 6. as the dns resolution of claim 4 website accelerates client, it is characterised in that the expression substation of the parsing module storage The expired time TTL time consistencies corresponding to dns server of the picture of the IP address of point.
CN201310196077.6A 2013-05-23 2013-05-23 Website dns resolution accelerated method and client Active CN104184841B (en)

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 CN104184841A (en) 2014-12-03
CN104184841B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN107835267B (en) * 2017-11-15 2021-08-06 维沃移动通信有限公司 Domain name resolution method and device
CN111131549B (en) * 2019-12-31 2022-04-01 福建天泉教育科技有限公司 Method for prefetching data by client and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN104184841A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US10506076B2 (en) Remote browsing session management with multiple content versions
US9621406B2 (en) Remote browsing session management
US9167054B2 (en) Remote browsing session management
US8577963B2 (en) Remote browsing session between client browser and network based browser
US8914514B1 (en) Managing network based content
CN103782294B (en) Remote browsing session management
AU2012300408C1 (en) Remote browsing session management
JP5162240B2 (en) A technique for distributing individual contents via a real-time distribution network
US9491113B2 (en) Managing network connections for processing network resources
US9479564B2 (en) Browsing session metric creation
JP2013016209A (en) Method and system for displaying web page
US9313100B1 (en) Remote browsing session management
CN101785004A (en) Client-side aggregation of context-sensitive request results
US10057320B2 (en) Offline browsing session management
CN104184841B (en) Website dns resolution accelerated method and client
US20140006918A1 (en) Method and system for web page rearrangement
CN105279156B (en) Network information communication means and network information browsing apparatus
CA2840420C (en) Remote browsing session management
US9298843B1 (en) User agent information management
CN102984179A (en) Cloud-computing operating system oriented method for cross-domain access to Web services
CN101895550A (en) Cache accelerating system and method for compatibility of dynamic and static contents of internet website
CN106506672B (en) The non-assembly access method of browser intelligent key disk
US9641637B1 (en) Network resource optimization
CN106990959A (en) A kind of method that many JavaWeb of unification apply public page fragments
CN104468832A (en) Portable distributed architecture based on http protocol

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