CN104506664B - The method and apparatus of domain name system caching - Google Patents
The method and apparatus of domain name system caching Download PDFInfo
- Publication number
- CN104506664B CN104506664B CN201410681782.XA CN201410681782A CN104506664B CN 104506664 B CN104506664 B CN 104506664B CN 201410681782 A CN201410681782 A CN 201410681782A CN 104506664 B CN104506664 B CN 104506664B
- Authority
- CN
- China
- Prior art keywords
- dns
- items
- domain name
- terminal
- local cache
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/58—Caching of addresses or names
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure is directed to a kind of method and apparatus of domain name system caching, belong to the communications field.Methods described includes:Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding Internet protocol IP address and life span;When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, the DNS items are used for the terminal, and IP address carries out network access according to corresponding to domain name in the life span.Described device includes:Cache module and synchronization module.The disclosure realizes the quick DNS cache of end side without terminal by domain name resolution process can, improves the speed that terminal carries out network access based on DNS cache.
Description
Technical field
This disclosure relates to the communications field, more particularly to a kind of method and apparatus of domain name system caching.
Background technology
Domain name system (Domain Name System, referred to as:DNS) it is domain name and Internet protocol on internet
(Internet Protocol, referred to as:IP) the distributed data base that address mutually maps.It can be incited somebody to action by domain name mapping
Domain name easy to remember is converted to IP address, user can be made more easily to access internet.When user's using terminal is surfed the Net, meeting exists
A domain name is inputted on the browser of terminal, dns server then searches for the IP address corresponding with the domain name, and the IP found
Address returns to the browser of terminal, and at this moment browser sends access request further according to the IP address, is sought so as to complete domain name
The process of location.
Need to expend the time because dns server carries out domain name mapping, postpone to reduce, way common at present is at end
DNS cache is carried out on end, the domain name and the corresponding relation of IP address that user is often browsed are cached in terminal local, when with
When family accesses again, it is possible to corresponding IP address is directly extracted in DNS cache, without initiating domain name solution to dns server
Analysis request, so as to accelerate the speed of terminal line website.
But the above method and the characteristics of be not suitable with mobile Internet.Because the result of dns resolution can under different networks
Can be different, so when the network where terminal changes, terminal can empty DNS cache, and it is wrong to be otherwise likely to result in connection
By mistake.In this case terminal also needs to re-start DNS cache, therefore greatly reduces the access speed of network.
The content of the invention
In view of this, present disclose provides a kind of method and apparatus of domain name system caching, to improve to enter based on DNS cache
The speed of row network access.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of domain name system caching, applied in router,
Including:
Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding internet
Protocol IP address and life span (Time To Live, abbreviation:TTL);
When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, institute
State DNS items and be used for terminal IP address progress network access according to corresponding to domain name in the life span.
Optionally, methods described also includes:
Life span in the DNS items regularly updates the DNS items;
The DNS items after renewal are synchronously preserved to the terminal.
Optionally, methods described also includes:
In DNS items described in local cache, the password that the user that the terminal is sent is set is received and preserved;
When the DNS items of local cache being sent into the terminal synchronizing preservation, first pass through the terminal to
The user's checking password, if the password is correct, then the DNS items of local cache are sent to the terminal and carried out together
Step preserves.
Optionally, methods described also includes:
To the DNS items of local cache, the frequency of DNS items described in the terminal access is recorded;
DNS item of the frequency less than designated value is deleted in local cache.
Optionally, it is described to include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and
Corresponding Internet protocol IP address and life span, including:
The DNS items that the terminal is sent after domain name mapping success are received, the DNS items include;Domain name and corresponding net
Border Protocol IP address and life span;
The DNS items received are buffered in local.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of method of domain name system caching, including:
When establishing connection with router, the domain name system DNS item that the router is sent is received, the DNS items include:
Domain name and corresponding Internet protocol IP address and life span;
The DNS items received are buffered in local;
When initiating access request to domain name, inquire about the DNS items of local cache, if domain name exist and
Corresponding life span has not timed out, then IP address carries out network access according to corresponding to domain name.
Optionally, methods described also includes:
Receive the DNS items that the router is regularly updated and sent;
DNS items after being updated with the router received, update the DNS items of local cache.
Optionally, methods described also includes:
To the DNS items of local cache, the frequency of DNS items described in record access;
DNS item of the frequency less than designated value is deleted in local cache.
Optionally, after the DNS items of the inquiry local cache, in addition to:
If domain name is not present or domain name exists but corresponding life span has timed out, according to domain name
Domain name analysis request is initiated to network, receives IP address and life span corresponding to the domain name that the network returns, according to
IP address corresponding to the domain name received carries out network access, by domain name and corresponding IP address and life span group
Local is buffered in into DNS items, and the DNS items are sent to the router synchronization and preserved.
Optionally, the DNS items are sent into the router synchronization to preserve, including:
The password that user is set is received, the password and the DNS items are sent jointly into the router synchronization preserves,
The password carries out password authentification when sending DNS items again for the router.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of domain name system caching, applied in router,
Including:
Cache module, for including in advance in local cache one or more domain name system DNS item, the DNS items;Domain name
With corresponding Internet protocol IP address and life span;
Synchronization module, for when establishing connection with terminal, the DNS items of local cache being sent into the terminal and entered
Row is synchronous to be preserved, and the DNS items are used for the terminal, and IP address is carried out according to corresponding to domain name in the life span
Network access.
Optionally, described device also includes:
Update module, the DNS items are regularly updated for the life span in the DNS items;
The synchronization module is additionally operable to:The DNS items after the update module is updated synchronously are preserved to the terminal.
Optionally, the cache module is additionally operable to:In DNS items described in local cache, receive and preserve the terminal hair
The password that the user sent is set;
The synchronization module is additionally operable to:Preservation is synchronized the DNS items of local cache are sent into the terminal
When, the terminal is first passed through to the user's checking password, if the password is correct, then the DNS items by local cache
It is sent to the terminal and synchronizes preservation.
Optionally, described device also includes:
Logging modle, for the DNS items to local cache, record the frequency of DNS items described in the terminal access;
Removing module, the frequency for the logging modle to be recorded are deleted less than the DNS items of designated value in local cache
Remove.
Optionally, the cache module includes:
Receiving submodule, the DNS items sent for receiving the terminal after domain name mapping success, the DNS items include;
Domain name and corresponding Internet protocol IP address and life span;
Cache sub-module, the DNS items for the receiving submodule to be received are buffered in local.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of device of domain name system caching, including:
Receiving module, for when establishing connection with router, receiving the domain name system DNS item that the router is sent,
The DNS items include:Domain name and corresponding Internet protocol IP address and life span;
Cache module, the DNS items for the receiving module to be received are buffered in local;
Access modules, for when initiating access request to domain name, inquiring about the DNS items of local cache, if
Domain name is present and corresponding life span has not timed out, then IP address carries out network access according to corresponding to domain name.
Optionally, the receiving module is additionally operable to:Receive the DNS items that the router is regularly updated and sent;
Described device also includes:
Update module, for the DNS items after the router renewal that is received with the receiving module, update local slow
The DNS items deposited.
Optionally, described device also includes:
Logging modle, for the DNS items to local cache, the frequency of DNS items described in record access;
Removing module, the frequency for the logging modle to be recorded are deleted less than the DNS items of designated value in local cache
Remove.
Optionally, the access modules are additionally operable to:
Inquiry local cache the DNS items after, if domain name be not present or domain name exist but correspondingly
Life span have timed out, then domain name analysis request is initiated to network according to domain name, receive the network return it is described
IP address corresponding to domain name and life span, IP address carries out network access according to corresponding to the domain name received, by institute
State domain name and corresponding IP address and life span composition DNS items are buffered in local, and the DNS items are sent to the route
Device synchronously preserves.
Optionally, the access modules include:
Sending submodule, for receiving the password of user's setting, the password and the DNS items are sent jointly to described
Router synchronization preserves, and the password carries out password authentification when sending DNS items again for the router.
According to the 5th of embodiment of the present disclosure aspect, there is provided a kind of device of domain name system caching, applied in router,
Including:
Processor, and the memory of the executable instruction for storing the processor;
Wherein, the processor is configured as:
Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding internet
Protocol IP address and life span;
When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, institute
State DNS items and be used for terminal IP address progress network access according to corresponding to domain name in the life span.
According to the 6th of the embodiment of the present disclosure the aspect, there is provided a kind of device of domain name system caching, including:
Processor, and the memory of the executable instruction for storing the processor;
Wherein, the processor is configured as:
When establishing connection with router, the domain name system DNS item that the router is sent is received, the DNS items include:
Domain name and corresponding Internet protocol IP address and life span;
The DNS items received are buffered in local;
When initiating access request to domain name, inquire about the DNS items of local cache, if domain name exist and
Corresponding life span has not timed out, then IP address carries out network access according to corresponding to domain name.
The technical scheme provided by this disclosed embodiment can include the following benefits:By in advance in local cache one
Individual or multiple DNS items, the DNS items include;Domain name and corresponding Internet protocol IP address and life span;Connect when being established with terminal
When connecing, the DNS items of local cache are sent to terminal and synchronize preservation, the DNS items are used for the terminal in the existence
The interior IP address according to corresponding to domain name carries out network access, due to just having issued the DNS of caching when being connected with terminal
Item gives terminal, it is therefore not necessary to which terminal realizes the quick DNS cache of end side by domain name resolution process can, so as to improve
Terminal carries out the speed of network access based on DNS cache.Even if the network where terminal changes, existing DNS items quilt
Empty, it is this with terminal establish connect when just send caching DNS items mode, highly shortened terminal domain name mapping when
Between, the correctness of network connection is also ensure that, has reached the effect that DNS cache can also apply to mobile Internet.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of network architecture schematic diagram of domain name system caching according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 3 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 4 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 5 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 6 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 7 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment.
Fig. 8 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Fig. 9 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 10 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 11 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 12 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 13 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 14 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 15 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 16 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 17 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 18 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Figure 19 is a kind of block diagram of the device of domain name system caching according to another exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
The embodiment of the present disclosure is related to a kind of method and apparatus of domain name system caching, and net is carried out based on DNS cache to improve
The speed that network accesses, can apply in the network architecture as shown in Figure 1.Referring to Fig. 1, the network architecture includes terminal and route
Device.The terminal can be fixed terminal or mobile terminal.Terminal can access internet by the router.The router is certainly
Body caches DNS items and synchronously preserved into terminal, so as to improve the speed of terminal access network.
Fig. 2 is a kind of flow chart of the method for domain name system caching according to an exemplary embodiment, such as Fig. 2 institutes
Show, this method is used in router, comprises the following steps.
In the step s 21, include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and
Corresponding Internet protocol IP address and life span.
In the present embodiment, the DNS items of local cache are at least one, usually multiple.Optionally, the DNS items can be with
Including other domain name mapping information, the present embodiment is not specifically limited to this.
In step S22, when establishing connection with terminal, the DNS items of local cache are sent to the terminal and carried out together
Step preserves, and the DNS items are used for the terminal, and IP address carries out network access according to corresponding to the domain name in the life span.
Generally, it all can first establish and connect with router during terminal access internet, therefore, when terminal and router are established
The DNS items of router cache are sent to terminal, can make terminal quickly, timely obtain DNS items, held again without terminal itself
Row domain name mapping flow, dramatically saves on the time, improve the efficiency of network access.
In addition, whether router can also ask for consumers' opinions carries out the synchronization of DNS items, terminal is such as sent a request message to
Inquiry, terminal on obtaining confirmation from the user, reply confirmation message to router, then router is again by the DNS items of local cache
It is sent to terminal and synchronizes preservation.If user's refusal synchronizes, terminal replies refuse information is to router, router
The DNS items of local cache are not sent then to terminal.
In the present embodiment, optionally, the above method can also include:
Life span in the DNS items regularly updates the DNS items;
The DNS items after renewal are synchronously preserved to the terminal.
In the present embodiment, optionally, the above method can also include:
In the local cache DNS items, the password that the user of terminal transmission is set is received and preserved;
When the DNS items of local cache being sent into the terminal synchronizing preservation, the terminal is first passed through to the user
Password is verified, if the password is correct, then the DNS items of local cache is sent to the terminal and synchronize preservation.
In the present embodiment, optionally, the above method can also include:
To the DNS items of local cache, the frequency of the terminal access DNS items is recorded;
DNS item of the frequency less than designated value is deleted in local cache.
It is optionally, above-mentioned in advance in local cache one or more domain name system DNS item, the DNS item bags in the present embodiment
Include;Domain name and corresponding Internet protocol IP address and life span, can include:
The DNS items that the terminal is sent after domain name mapping success are received, the DNS items include;Domain name and corresponding internet association
Discuss IP address and life span;
The DNS items received are buffered in local.
The above method that the present embodiment provides, the quick of end side is realized without terminal by domain name resolution process can
DNS cache, the speed of network access is carried out so as to improve terminal based on DNS cache.Even if the network where terminal becomes
Change, existing DNS items are cleared, and this mode that caching DNS items are just sent when establishing and connecting with terminal, highly shortened
The time of terminal domain name mapping, the correctness of network connection is also ensure that, reached DNS cache and can also apply to mobile Internet
Effect.
Fig. 3 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment, such as Fig. 3 institutes
Show, this method is used in router, comprises the following steps.
In step S31, include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and
Corresponding Internet protocol IP address and life span.
In step s 32, when establishing connection with terminal, the DNS items of local cache is sent to the terminal and carried out together
Step preserves, and the DNS items are used for the terminal, and IP address carries out network access according to corresponding to the domain name in the life span.
In step S33, the life span in the DNS items regularly updates the DNS items.
Wherein, optionally, this step may comprise steps of:
To each DNS item of local cache, judge whether its life span reaches or current time is away from life span
The duration of due in insufficient designated value, then domain name analysis request is initiated to network side according to the domain name of the DNS items, and use net
Address and TTL corresponding to the domain name that network side returns update the DNS items of local cache.The present embodiment is to the designated value
Concrete numerical value does not limit.The DNS items not reached for life span, then need not be updated.
In step S34, the DNS items after renewal are synchronously preserved to the terminal.
Wherein, the DNS items regularly updated can be one or multiple, synchronous when preserving to terminal, can only by
The DNS items of renewal are sent to terminal and are updated, and the DNS items not being updated do not have to then be transferred to terminal, so as to carry
High-transmission efficiency.
In step s 35, to the DNS items of local cache, the frequency of the terminal access DNS items is recorded.
Wherein, the frequency of terminal access DNS items is higher, shows that website corresponding to IP address is terminal user in the DNS items
The website often accessed, local can be buffered in for a long time, terminal use is synchronized to facilitate.The frequency of terminal access DNS items is got over
It is low, show that website, terminal user corresponding to IP address seldom access in the DNS items, can be by the DNS entry deletions, to save road
By the local memory space of device, storage resource is avoided to waste.
In step S36, DNS item of the frequency less than designated value is deleted in local cache.
Wherein, the designated value can be arranged as required to, and the present embodiment is not limited its concrete numerical value.
The above method that the present embodiment provides, the quick of end side is realized without terminal by domain name resolution process can
DNS cache, the speed of network access is carried out so as to improve terminal based on DNS cache.Even if the network where terminal becomes
Change, existing DNS items are cleared, and this mode that caching DNS items are just sent when establishing and connecting with terminal, highly shortened
The time of terminal domain name mapping, the correctness of network connection is also ensure that, reached DNS cache and can also apply to mobile Internet
Effect.By regularly updating DNS items, it is ensured that the validity of DNS items.Frequency is less than to the DNS entry deletions of designated value, can
To avoid the DNS items being of little use from taking memory space, resource can be saved.
Fig. 4 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment, such as Fig. 4 institutes
Show, this method is used in router, comprises the following steps.
In step S41, advance receiving terminal the DNS items that send, the DNS items after domain name mapping success include;Domain name
With corresponding Internet protocol IP address and life span.
Wherein, domain name parses and refers to the process of be parsed by the dns server of network side and returned DNS items, and terminal can
To initiate the request of domain name mapping to dns server according to domain name, and the DNS items of dns server return are received, then retransmited
To router, excessive explanation is not done herein.
In step S42, the DNS items received are buffered in local.
It can ensure that terminal when itself carries out DNS cache, also can be preserved synchronously to route by above-mentioned two step
Device, so as to ensure that terminal and router can synchronously preserve identical DNS items, to facilitate both sides to upgrade in time.
In step S43, receive and preserve the terminal transmission user set password, the password be used for pair with the terminal
Corresponding DNS items carry out safeguard protection.
The password can be set by user, and particular content does not limit.The password can establish corresponding relation with the terminal,
And together preserve in the router, to determine whether to be synchronized to terminal with password authentification when synchronous DNS items are to terminal, from
And improve security.
Wherein, during local preservation DNS items, password, terminal iidentification and DNS items can together be preserved.The password and end
End mark corresponds, and a terminal iidentification can uniquely identify a terminal, and a corresponding password.The terminal iidentification pair
The DNS items answered can be one, usually multiple.All DNS items corresponding to the terminal iidentification can together be sent when synchronous
Cached to terminal.
In step S44, when establishing connection with terminal, the terminal is first passed through to the user's checking password, if this is close
Code is correct, then the DNS items of local cache are sent into the terminal and synchronize preservation, and the DNS items are used for the terminal in the life
Deposit the time interior IP address according to corresponding to the domain name and carry out network access.
Wherein, router can be to the message of requests verification password be sent to terminal, and terminal request user inputs password, and
The password that user inputs is sent to router authentication, if checking password is correct, router again sends the DNS items of caching
To terminal, if checking code error, router do not send the DNS items of caching to terminal.
The above method that the present embodiment provides, the quick of end side is realized without terminal by domain name resolution process can
DNS cache, the speed of network access is carried out so as to improve terminal based on DNS cache.Even if the network where terminal becomes
Change, existing DNS items are cleared, and this mode that caching DNS items are just sent when establishing and connecting with terminal, highly shortened
The time of terminal domain name mapping, the correctness of network connection is also ensure that, reached DNS cache and can also apply to mobile Internet
Effect.By way of password authentification, it can ensure that the DNS items of caching are safer, reliable, while also ensure that user's is hidden
Private safety.
Fig. 5 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment, such as Fig. 5 institutes
Show, this method is used in terminal, comprises the following steps.
In step s 51, when establishing connection with router, the domain name system DNS item of router transmission is received, should
DNS items include:Domain name and corresponding Internet protocol IP address and life span.
Wherein, the DNS items that router is sent can be one, or to be multiple, the present embodiment is not specifically limited to this.
In step S52, the DNS items received are buffered in local.
In step S53, when initiating access request to the domain name, the DNS items of local cache are inquired about, if the domain name
In the presence of and corresponding life span have not timed out, then according to corresponding to the domain name IP address carry out network access.
Optionally, DNS items that can be using domain name to be visited as search index local cache, if finding the domain name,
IP address and life span corresponding to the domain name are obtained, judges whether the life span is overtime, if had not timed out, according to the IP
Address carries out network access.Wherein, whether time-out can be judged life span with the method for timing, including incremental manner or be passed
Subtract mode etc., do not do excessive explanation herein.
In the present embodiment, optionally, the above method can also include:
Receive the DNS items that the router is regularly updated and sent;
DNS items after being updated with the router received, update the DNS items of local cache.
In the present embodiment, optionally, the above method can also include:
To the DNS items of local cache, the frequency of the record access DNS items;
DNS item of the frequency less than designated value is deleted in local cache.
In the present embodiment, optionally, after the DNS items of above-mentioned inquiry local cache, it can also include:
If the domain name is not present or the domain name exists but corresponding life span has timed out, according to the domain name to network
Domain name analysis request is initiated, receives IP address and life span corresponding to the domain name of network return, should according to what is received
IP address corresponding to domain name carries out network access, and the domain name and corresponding IP address and life span composition DNS items are buffered in
It is local, and the DNS items are sent to the router synchronization and preserved.
In the present embodiment, optionally, the DNS items are sent to the router synchronization and preserved, can be included:
The password that user is set is received, the password and the DNS items are sent jointly into the router synchronization preserves, the password
Password authentification is carried out when sending DNS items again for the router.
The above method that the present embodiment provides, by the DNS items received and cache routing device is sent, without terminal by domain
Name resolving can realizes the quick DNS cache of end side, and DNS cache progress network access is based on so as to improve terminal
Speed.Even if the network where terminal changes, existing DNS items are cleared, this when establishing connection with router
Mode with regard to obtaining DNS items, highly shortened the time of terminal domain name mapping, also ensure that the correctness of network connection, reach
The effect that DNS cache can also apply to mobile Internet is arrived.
Fig. 6 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment, such as Fig. 6 institutes
Show, this method is used in terminal, comprises the following steps.
In step S61, when establishing connection with router, the domain name system DNS item of router transmission is received, should
DNS items include:Domain name and corresponding Internet protocol IP address and life span.
In step S62, the DNS items received are buffered in local.
In step S63, when initiating access request to the domain name, the DNS items of local cache are inquired about, if the domain name
In the presence of and corresponding life span have not timed out, then according to corresponding to the domain name IP address carry out network access.
In step S64, the DNS items that the router is regularly updated and sent are received.
In step S65, with the DNS items after the router renewal received, the DNS items of local cache are updated.
Wherein, updating the DNS items of local cache can include:Each DNS item after the renewal sent to router, sentences
It whether there is the DNS items in disconnected local cache, if it does not exist, then adding in local cache, if it is present road can be used
By device send renewal after the DNS items replace local cache the DNS items, so as to ensure terminal and router both sides caching
DNS items are consistent.
In step S66, to the DNS items of local cache, the frequency of the record access DNS items.
In step S67, DNS item of the frequency less than designated value is deleted in local cache.
Wherein, the designated value can be arranged as required to, and the present embodiment is not specifically limited to this.
The above method that the present embodiment provides, by the DNS items received and cache routing device is sent, without terminal by domain
Name resolving can realizes the quick DNS cache of end side, and DNS cache progress network access is based on so as to improve terminal
Speed.Even if the network where terminal changes, existing DNS items are cleared, this when establishing connection with router
Mode with regard to obtaining DNS items, highly shortened the time of terminal domain name mapping, also ensure that the correctness of network connection, reach
The effect that DNS cache can also apply to mobile Internet is arrived.By regularly updating DNS items, it is ensured that DNS items it is effective
Property.Frequency is less than to the DNS entry deletions of designated value, the DNS items that can avoid being of little use take memory space, can save money
Source.
Fig. 7 is a kind of flow chart of the method for domain name system caching according to another exemplary embodiment, such as Fig. 7 institutes
Show, this method is used in terminal, comprises the following steps.
In step S71, when establishing connection with router, the domain name system DNS item of router transmission is received, should
DNS items include:Domain name and corresponding Internet protocol IP address and life span.
In step S72, the DNS items received are buffered in local.
In step S73, when initiating access request to the domain name, the DNS items of local cache are inquired about, if the domain name
In the presence of and corresponding life span have not timed out, then perform step S74;If the domain name is not present or the domain name is present but corresponding
Life span has timed out, then performs step S75.
In step S74, network access is carried out according to IP address corresponding to the domain name, flow terminates.
In step S75, domain name analysis request is initiated to network according to the domain name, receives the domain name pair of network return
The IP address and life span answered, network access is carried out according to IP address corresponding to the domain name received.
In step S76, the domain name and corresponding IP address and life span composition DNS items are buffered in local, and will
The DNS items are sent to router synchronization preservation, and flow terminates.
Because the DNS items of above-mentioned composition are the item that local cache newly increases, therefore, router preservation, Ke Yibao are sent to
It is consistent with the DNS items of router cache to demonstrate,prove terminal, it is ensured that both sides are synchronous.
Wherein, optionally, it is described that the DNS items are sent to router synchronization preservation, it can include:
The password that user is set is received, the password and the DNS items are sent jointly into the router synchronization preserves, the password
Password authentification is carried out when sending DNS items again for the router.
When terminal and router are attached again, router can require that terminal carries out password authentification, and terminal will be used
The password of family input is sent to router and verified, DNS items is sent into terminal again after checking password is correct, so as to improve
The security of data.
The above method that the present embodiment provides, by the DNS items received and cache routing device is sent, without terminal by domain
Name resolving can realizes the quick DNS cache of end side, and DNS cache progress network access is based on so as to improve terminal
Speed.Even if the network where terminal changes, existing DNS items are cleared, this when establishing connection with router
Mode with regard to obtaining DNS items, highly shortened the time of terminal domain name mapping, also ensure that the correctness of network connection, reach
The effect that DNS cache can also apply to mobile Internet is arrived.By way of password authentification, the DNS items of caching can be ensured
It is safer, reliable, while also ensure that the personal secrets of user.
Fig. 8 is a kind of device block diagram of domain name system caching according to another exemplary embodiment.Reference picture 8, should
Device includes cache module 121 and synchronization module 122.
The cache module 121, it is configured as in advance in local cache one or more domain name system DNS item, the DNS item bags
Include;Domain name and corresponding Internet protocol IP address and life span.
The synchronization module 122, when being configured as establishing connection with terminal, the DNS items of local cache are sent to this
Terminal synchronizes preservation, and the DNS items are used for the terminal, and IP address carries out net according to corresponding to the domain name in the life span
Network accesses.
Referring to Fig. 9, in the present embodiment, optionally, said apparatus can also include:Update module 123.
The update module 123, it is configured as regularly updating the DNS items according to the life span in the DNS items;
Accordingly, the synchronization module 122 is additionally operable to:The DNS items after the update module 123 is updated, which synchronously preserve, extremely should
Terminal.
In the present embodiment, optionally, above-mentioned cache module 121 is additionally operable to:In the local cache DNS items, receive and protect
Deposit the password that the user of terminal transmission is set;The synchronization module 122 is additionally operable to:It is sent to by the DNS items of local cache
When the terminal synchronizes preservation, the terminal is first passed through to the user's checking password, if the password is correct, then by local cache
The DNS items be sent to the terminal and synchronize preservation.
Referring to Figure 10, in the present embodiment, optionally, said apparatus can also include:Logging modle 124 and removing module
125。
The logging modle 124, the DNS items to local cache are configured as, record the frequency of the terminal access DNS items
Rate;
The removing module 125, the frequency for being configured as recording the logging modle 124 are less than the DNS items of designated value at this
Deleted in ground caching.
Referring to Figure 11, in the present embodiment, optionally, above-mentioned cache module 121 can include:Receiving submodule 121a eases up
Deposit submodule 121b.
Receiving submodule 121a, it is configured as receiving the DNS items that the terminal is sent after domain name mapping success, the DNS
Item includes;Domain name and corresponding Internet protocol IP address and life span;
Cache sub-module 121b, the DNS items for being configured as receiving the receiving submodule are buffered in local.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The said apparatus that the present embodiment provides, can apply in router, the device passes through domain name mapping without terminal
Process can realizes the quick DNS cache of end side, and the speed of network access is carried out so as to improve terminal based on DNS cache
Degree.Even if the network where terminal changes, existing DNS items are cleared, this just to be sent when establishing and connecting with terminal
The mode of DNS items is cached, the time of terminal domain name mapping is highly shortened, also ensure that the correctness of network connection, reach
DNS cache can also apply to the effect of mobile Internet.
Figure 12 is a kind of device block diagram of domain name system caching according to another exemplary embodiment.Reference picture 12,
The device includes receiving module 221, cache module 222 and access modules 223.
The receiving module 221, when being configured as establishing connection with router, receive the domain name system of router transmission
DNS items, the DNS items include:Domain name and corresponding Internet protocol IP address and life span.
The cache module 222, the DNS items for being configured as receiving the receiving module are buffered in local.
The access modules 223, when being configured as to domain name initiation access request, the DNS items of local cache are inquired about,
If the domain name is present and corresponding life span has not timed out, network access is carried out according to IP address corresponding to the domain name.
Referring to Figure 13, in the present embodiment, optionally, the receiving module 221 can be also used for:It is regular more to receive the router
DNS items that are new and sending;The device can also include:Update module 224.
The update module 224, the DNS items being configured as after the router renewal that is received with the receiving module, renewal
The DNS items of local cache.
Referring to Figure 14, in the present embodiment, optionally, said apparatus can also include:Logging modle 225 and removing module
226。
The logging modle 225, it is configured as the DNS items to local cache, the frequency of the record access DNS items.
The removing module 226, the frequency for being configured as recording the logging modle are locally being delayed less than the DNS items of designated value
Deposit middle deletion.
In the present embodiment, optionally, the access modules 223 can be additionally configured to:In the DNS items of inquiry local cache
Afterwards, if the domain name is not present or the domain name exists but corresponding life span has timed out, sent out according to the domain name to network
Domain name mapping request is played, IP address and life span corresponding to the domain name of network return are received, according to the domain received
IP address carries out network access corresponding to name, and the domain name and corresponding IP address and life span composition DNS items are buffered in into this
Ground, and the DNS items are sent to the router synchronization and preserved.
Referring to Figure 15, in the present embodiment, optionally, the access modules 223 can include:Sending submodule 223a.
Sending submodule 223a, it is configured as receiving the password that user is set, the password and the DNS items is sent together
Preserved to the router synchronization, the password carries out password authentification when sending DNS items again for the router.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The said apparatus that the present embodiment provides, can apply in terminal, pass through the DNS received and cache routing device is sent
, the quick DNS cache of end side is realized by domain name resolution process can without terminal, is based on so as to improve terminal
DNS cache carries out the speed of network access.Even if the network where terminal changes, existing DNS items are cleared, it is this
The mode of DNS items is just obtained when establishing and connect with router, the time of terminal domain name mapping is highly shortened, also ensure that net
The correctness of network connection, has reached the effect that DNS cache can also apply to mobile Internet.
Figure 16 is a kind of device block diagram of domain name system caching according to another exemplary embodiment.Reference picture 16,
The device includes processor 61 and the memory 62 for storing processor-executable instruction;
Wherein, the processor 61 is configured as:
Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding internet association
Discuss IP address and life span;
When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, the DNS
Item is used for the terminal, and IP address carries out network access according to corresponding to the domain name in the life span.
Figure 17 is a kind of block diagram of the device 1900 of domain name system caching according to another exemplary embodiment.Example
Such as, device 1900 may be provided in a server.Reference picture 17, device 1900 include processing component 1922, and it is further wrapped
One or more processors are included, and as the memory resource representated by memory 1932, can be by processing component for storing
The instruction of 1922 execution, such as application program.The application program stored in memory 1932 can include one or one with
On each correspond to the module of one group of instruction.In addition, processing component 1922 is configured as execute instruction, to perform above-mentioned side
Method.
Device 1900 can also include a power supply module 1926 and be configured as the power management of performs device 1900, one
Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
The said apparatus that the present embodiment provides, can apply in router, the device passes through domain name mapping without terminal
Process can realizes the quick DNS cache of end side, and the speed of network access is carried out so as to improve terminal based on DNS cache
Degree.Even if the network where terminal changes, existing DNS items are cleared, this just to be sent when establishing and connecting with terminal
The mode of DNS items is cached, the time of terminal domain name mapping is highly shortened, also ensure that the correctness of network connection, reach
DNS cache can also apply to the effect of mobile Internet.
Figure 18 is a kind of device block diagram of domain name system caching according to another exemplary embodiment.Reference picture 18,
The device includes processor 81 and the memory 82 for storing processor-executable instruction;
Wherein, the processor 81 is configured as:
When establishing connection with router, the domain name system DNS item of router transmission is received, the DNS items include:Domain name
With corresponding Internet protocol IP address and life span;
The DNS items received are buffered in local;
When initiating access request to the domain name, the DNS items of local cache are inquired about, if the domain name is present and corresponding
Life span has not timed out, then IP address carries out network access according to corresponding to the domain name.
Figure 19 is a kind of block diagram of the device 800 of domain name system caching according to another exemplary embodiment.For example,
Device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, cure
Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 19, device 800 can include following one or more assemblies:Processing component 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Treatment element 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 802 can include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of method of domain name system caching, and methods described includes:
When establishing connection with router, the domain name system DNS item that the router is sent is received, the DNS items include:
Domain name and corresponding Internet protocol IP address and life span;
The DNS items received are buffered in local;
When initiating access request to domain name, inquire about the DNS items of local cache, if domain name exist and
Corresponding life span has not timed out, then IP address carries out network access according to corresponding to domain name.
In the present embodiment, optionally, methods described also includes:
Receive the DNS items that the router is regularly updated and sent;
DNS items after being updated with the router received, update the DNS items of local cache.
In the present embodiment, optionally, methods described also includes:
To the DNS items of local cache, the frequency of DNS items described in record access;
DNS item of the frequency less than designated value is deleted in local cache.
In the present embodiment, optionally, after the DNS items of the inquiry local cache, in addition to:
If domain name is not present or domain name exists but corresponding life span has timed out, according to domain name
Domain name analysis request is initiated to network, receives IP address and life span corresponding to the domain name that the network returns, according to
IP address corresponding to the domain name received carries out network access, by domain name and corresponding IP address and life span group
Local is buffered in into DNS items, and the DNS items are sent to the router synchronization and preserved.
In the present embodiment, optionally, the DNS items are sent to the router synchronization and preserved, including:
The password that user is set is received, the password and the DNS items are sent jointly into the router synchronization preserves,
The password carries out password authentification when sending DNS items again for the router.
The above-mentioned non-transitorycomputer readable storage medium that the present embodiment provides, sent by receiving simultaneously cache routing device
DNS items, the quick DNS cache of end side is realized by domain name resolution process can without terminal, so as to improve terminal
The speed of network access is carried out based on DNS cache.Even if the network where terminal changes, existing DNS items are cleared, this
Kind just obtains the mode of DNS items when establishing and connecting with router, highly shortened the time of terminal domain name mapping, also ensures
The correctness of network connection, has reached the effect that DNS cache can also apply to mobile Internet.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (22)
- A kind of 1. method of domain name system caching, it is characterised in that applied in router, methods described includes:Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding Internet protocol IP address and life span;When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, it is described DNS items are used for the terminal, and IP address carries out network access according to corresponding to domain name in the life span.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:Life span in the DNS items regularly updates the DNS items;The DNS items after renewal are synchronously preserved to the terminal.
- 3. according to the method for claim 1, it is characterised in that methods described also includes:In DNS items described in local cache, the password that the user that the terminal is sent is set is received and preserved;When the DNS items of local cache being sent into the terminal synchronizing preservation, the terminal is first passed through to described User's checking password, if the password is correct, then the DNS items of local cache are sent to the terminal and synchronize guarantor Deposit.
- 4. according to the method for claim 1, it is characterised in that methods described also includes:To the DNS items of local cache, the frequency of DNS items described in the terminal access is recorded;DNS item of the frequency less than designated value is deleted in local cache.
- 5. according to the method for claim 1, it is characterised in that described in advance in local cache one or more domain name system DNS items, the DNS items include;Domain name and corresponding Internet protocol IP address and life span, including:The DNS items that the terminal is sent after domain name mapping success are received, the DNS items include;Domain name and corresponding internet association Discuss IP address and life span;The DNS items received are buffered in local.
- A kind of 6. method of domain name system caching, it is characterised in that methods described includes:When establishing connection with router, the domain name system DNS item that the router is sent is received, the DNS items include:Domain name With corresponding Internet protocol IP address and life span;The DNS items received are buffered in local;When initiating access request to domain name, the DNS items of local cache are inquired about, if domain name is present and correspondingly Life span have not timed out, then according to corresponding to domain name IP address carry out network access.
- 7. according to the method for claim 6, it is characterised in that methods described also includes:Receive the DNS items that the router is regularly updated and sent;DNS items after being updated with the router received, update the DNS items of local cache.
- 8. according to the method for claim 6, it is characterised in that methods described also includes:To the DNS items of local cache, the frequency of DNS items described in record access;DNS item of the frequency less than designated value is deleted in local cache.
- 9. according to the method for claim 6, it is characterised in that after the DNS items of the inquiry local cache, also wrap Include:If domain name is not present or domain name exists but corresponding life span has timed out, according to domain name to net Network initiates domain name analysis request, IP address and life span corresponding to the domain name that the network returns is received, according to reception IP address corresponding to the domain name arrived carries out network access, and domain name and corresponding IP address and life span are formed DNS items are buffered in local, and the DNS items are sent into the router synchronization and preserved.
- 10. according to the method for claim 9, it is characterised in that the DNS items are sent to the router synchronization and protected Deposit, including:The password that user is set is received, the password and the DNS items are sent jointly into the router synchronization preserves, described Password carries out password authentification when sending DNS items again for the router.
- 11. a kind of device of domain name system caching, it is characterised in that applied in router, described device includes:Cache module, for including in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and right The Internet protocol IP address and life span answered;Synchronization module, for when establishing connection with terminal, the DNS items of local cache being sent into the terminal and carried out together Step preserves, and the DNS items are used for the terminal, and IP address carries out network according to corresponding to domain name in the life span Access.
- 12. device according to claim 11, it is characterised in that described device also includes:Update module, the DNS items are regularly updated for the life span in the DNS items;The synchronization module is additionally operable to:The DNS items after the update module is updated synchronously are preserved to the terminal.
- 13. device according to claim 11, it is characterised in thatThe cache module is additionally operable to:In DNS items described in local cache, receive and preserve the user that the terminal is sent and set Password;The synchronization module is additionally operable to:When the DNS items of local cache being sent into the terminal synchronizing preservation, first By the terminal to the user's checking password, if the password is correct, then the DNS items of local cache are sent to The terminal synchronizes preservation.
- 14. device according to claim 11, it is characterised in that described device also includes:Logging modle, for the DNS items to local cache, record the frequency of DNS items described in the terminal access;Removing module, the frequency for the logging modle to be recorded are deleted less than the DNS items of designated value in local cache.
- 15. device according to claim 11, it is characterised in that the cache module includes:Receiving submodule, the DNS items sent for receiving the terminal after domain name mapping success, the DNS items include;Domain name With corresponding Internet protocol IP address and life span;Cache sub-module, the DNS items for the receiving submodule to be received are buffered in local.
- 16. a kind of device of domain name system caching, it is characterised in that described device includes:Receiving module, it is described for when establishing connection with router, receiving the domain name system DNS item that the router is sent DNS items include:Domain name and corresponding Internet protocol IP address and life span;Cache module, the DNS items for the receiving module to be received are buffered in local;Access modules, for when initiating access request to domain name, the DNS items of local cache being inquired about, if described Domain name is present and corresponding life span has not timed out, then IP address carries out network access according to corresponding to domain name.
- 17. device according to claim 16, it is characterised in thatThe receiving module is additionally operable to:Receive the DNS items that the router is regularly updated and sent;Described device also includes:Update module, for received with the receiving module the router renewal after DNS items, update local cache The DNS items.
- 18. device according to claim 16, it is characterised in that described device also includes:Logging modle, for the DNS items to local cache, the frequency of DNS items described in record access;Removing module, the frequency for the logging modle to be recorded are deleted less than the DNS items of designated value in local cache.
- 19. device according to claim 16, it is characterised in that the access modules are additionally operable to:After the DNS items of inquiry local cache, if domain name is not present or domain name exists but corresponding life Depositing the time has timed out, then initiates domain name analysis request to network according to domain name, receives the domain name that the network returns Corresponding IP address and life span, IP address carries out network access according to corresponding to the domain name received, by the domain Name and corresponding IP address and life span composition DNS items are buffered in local, and it is same that the DNS items are sent into the router Step preserves.
- 20. device according to claim 19, it is characterised in that the access modules include:Sending submodule, for receiving the password of user's setting, the password and the DNS items are sent jointly into the route Device synchronously preserves, and the password carries out password authentification when sending DNS items again for the router.
- 21. a kind of device of domain name system caching, it is characterised in that applied in router, described device includes:Processor, and the memory of the executable instruction for storing the processor;Wherein, the processor is configured as:Include in advance in local cache one or more domain name system DNS item, the DNS items;Domain name and corresponding Internet protocol IP address and life span;When establishing connection with terminal, the DNS items of local cache are sent to the terminal and synchronize preservation, it is described DNS items are used for the terminal, and IP address carries out network access according to corresponding to domain name in the life span.
- 22. a kind of device of domain name system caching, it is characterised in that described device includes:Processor, and the memory of the executable instruction for storing the processor;Wherein, the processor is configured as:When establishing connection with router, the domain name system DNS item that the router is sent is received, the DNS items include:Domain name With corresponding Internet protocol IP address and life span;The DNS items received are buffered in local;When initiating access request to domain name, the DNS items of local cache are inquired about, if domain name is present and correspondingly Life span have not timed out, then according to corresponding to domain name IP address carry out network access.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410681782.XA CN104506664B (en) | 2014-11-24 | 2014-11-24 | The method and apparatus of domain name system caching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410681782.XA CN104506664B (en) | 2014-11-24 | 2014-11-24 | The method and apparatus of domain name system caching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104506664A CN104506664A (en) | 2015-04-08 |
CN104506664B true CN104506664B (en) | 2017-12-29 |
Family
ID=52948379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410681782.XA Active CN104506664B (en) | 2014-11-24 | 2014-11-24 | The method and apparatus of domain name system caching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506664B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104935683A (en) * | 2015-06-29 | 2015-09-23 | 北京经天科技有限公司 | Buffer processing method and device for domain name resolution |
CN106959975B (en) * | 2016-01-11 | 2021-06-04 | 阿里巴巴(中国)有限公司 | Transcoding resource cache processing method, device and equipment |
CN108243265A (en) * | 2016-12-27 | 2018-07-03 | ***通信集团浙江有限公司 | A kind of dns resolution processing method and processing device |
CN106850813A (en) * | 2017-02-14 | 2017-06-13 | 合网络技术(北京)有限公司 | Network service address changing method and device |
CN106790720B (en) * | 2017-03-21 | 2019-12-27 | 聚好看科技股份有限公司 | Business service request implementation method and device |
CN106998359A (en) * | 2017-03-24 | 2017-08-01 | 百度在线网络技术(北京)有限公司 | The method for network access and device of speech-recognition services based on artificial intelligence |
CN107197057A (en) * | 2017-06-09 | 2017-09-22 | 中国联合网络通信集团有限公司 | DNS account book processing method and processing devices |
CN107438114B (en) * | 2017-08-01 | 2020-12-22 | 台州智奥通信设备有限公司 | Method and system for optimizing domain name cache of wireless routing equipment |
CN108600788A (en) * | 2018-05-14 | 2018-09-28 | 广州市千钧网络科技有限公司 | A kind of broadcast address acquisition methods and device |
CN108551495A (en) * | 2018-07-26 | 2018-09-18 | 杭州云缔盟科技有限公司 | A kind of method for accessing domain name not using DNS Protocol or similar agreement |
CN108989487A (en) * | 2018-09-06 | 2018-12-11 | 北京泰策科技有限公司 | CDN Optimization Scheduling based on local dns |
CN110290233A (en) * | 2019-06-27 | 2019-09-27 | 广州虎牙科技有限公司 | Domain name analytic method, device, server and computer readable storage medium |
CN110321506A (en) * | 2019-07-04 | 2019-10-11 | 广州小鹏汽车科技有限公司 | Webpage data loading method, device, computer equipment and storage medium |
CN110716982B (en) * | 2019-09-09 | 2024-02-02 | 深圳点链科技有限公司 | Block chain real-time storage method, device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483648A (en) * | 2009-02-20 | 2009-07-15 | 杭州华三通信技术有限公司 | Method, system, apparatus and DNS server for DNS buffer probe |
CN102546847A (en) * | 2010-12-30 | 2012-07-04 | 中兴通讯股份有限公司 | Information processing method, domain name server and access router |
CN102647463A (en) * | 2012-03-30 | 2012-08-22 | 华为终端有限公司 | Website navigation generation method, wireless routing terminal and system |
CN103856569A (en) * | 2012-11-28 | 2014-06-11 | 方正宽带网络服务股份有限公司 | Method and device for synchronizing domain name system resource information |
-
2014
- 2014-11-24 CN CN201410681782.XA patent/CN104506664B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483648A (en) * | 2009-02-20 | 2009-07-15 | 杭州华三通信技术有限公司 | Method, system, apparatus and DNS server for DNS buffer probe |
CN102546847A (en) * | 2010-12-30 | 2012-07-04 | 中兴通讯股份有限公司 | Information processing method, domain name server and access router |
CN102647463A (en) * | 2012-03-30 | 2012-08-22 | 华为终端有限公司 | Website navigation generation method, wireless routing terminal and system |
CN103856569A (en) * | 2012-11-28 | 2014-06-11 | 方正宽带网络服务股份有限公司 | Method and device for synchronizing domain name system resource information |
Also Published As
Publication number | Publication date |
---|---|
CN104506664A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104506664B (en) | The method and apparatus of domain name system caching | |
CN104780155B (en) | Apparatus bound method and device | |
CN104468837B (en) | The binding method and device of smart machine | |
CN103546294B (en) | Entrance guard authorization method, device and equipment | |
CN104090785B (en) | Application program provides method, apparatus and system | |
WO2016008243A1 (en) | Network connection method and apparatus | |
CN104580637B (en) | Telephone number labeling method, terminal and Cloud Server | |
CN104159226A (en) | Network connection method and device | |
EP2978201B1 (en) | Method and device for identifying telephone call | |
CN104462570B (en) | Web page contents acquisition methods and device | |
CN104123341A (en) | Method and device for downloading file and route device | |
CN106254467A (en) | Sharing files method and device | |
CN104125162B (en) | The access processing method and device of Internet resources | |
KR101719599B1 (en) | Method, apparatus, program and recording medium for accessing network | |
CN104065762A (en) | Method and device for detecting hijacking of DNS (Domain Name Server) | |
CN104580409A (en) | Service request processing method, server and terminal | |
CN107820300A (en) | Network search method and device | |
CN105306199A (en) | Identity verification method, device and system | |
CN106657132A (en) | Method and device for accessing website | |
CN106488450B (en) | Connect the method and device of wireless network | |
CN105100513A (en) | Incoming call information processing method, device, and incoming call business server | |
CN105282162A (en) | Processing method and device for account management business | |
CN105488065A (en) | Webpage access method and device, and terminal | |
CN105808767A (en) | Data updating method and apparatus | |
CN103870544A (en) | Method and device for virtually operating file, and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |