CN104506664A - Domain name system caching method and device - Google Patents

Domain name system caching method and device Download PDF

Info

Publication number
CN104506664A
CN104506664A CN201410681782.XA CN201410681782A CN104506664A CN 104506664 A CN104506664 A CN 104506664A CN 201410681782 A CN201410681782 A CN 201410681782A CN 104506664 A CN104506664 A CN 104506664A
Authority
CN
China
Prior art keywords
domain name
dns item
dns
item
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410681782.XA
Other languages
Chinese (zh)
Other versions
CN104506664B (en
Inventor
於一飞
范金松
张少伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410681782.XA priority Critical patent/CN104506664B/en
Publication of CN104506664A publication Critical patent/CN104506664A/en
Application granted granted Critical
Publication of CN104506664B publication Critical patent/CN104506664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/58Caching 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 relates to a domain name system caching method and device, and belongs to the field of communication. The method comprises the following steps: pre-caching one or more domain name system (DNS) items locally, wherein the DNS items comprise a domain name, a corresponding Internet protocol (IP) address and time to live; and when connection is established with a terminal, transmitting the locally-cached DNS items to the terminal for synchronous saving, wherein the DNS items are used for performing network access on the terminal within the time to live according to an IP address corresponding to the domain name. The device comprises a caching module and a synchronizing module. Through adoption of the method and the device, rapid DNS caching on a terminal side can be realized without requiring the terminal to perform a domain name resolving process, and the speed of network access performed by the terminal based on DNS caching is increased.

Description

The method and apparatus of domain name system buffer memory
Technical field
The disclosure relates to the communications field, particularly relates to a kind of method and apparatus of domain name system buffer memory.
Background technology
(Domain Name System is called for short: DNS) be that (InternetProtocol is called for short: an IP) distributed data base mutually mapping of address domain name and Internet protocol on the Internet domain name system.Domain name easy to remember can be converted to IP address by domain name mapping, user can be made to access the Internet more easily.When user uses terminal to surf the Net, a domain name can be inputted on the browser of terminal, dns server then searches for the IP address corresponding with this domain name, and the IP address found is returned to the browser of terminal, at this moment browser sends access request according to this IP address again, thus completes the process of domain name addressing.
Need to expend time in because dns server carries out domain name mapping, for reducing to postpone, way common at present carries out DNS cache in terminal, the corresponding relation of domain name user often browsed and IP address is cached in terminal local, when user accesses again, just directly can extract corresponding IP address from DNS cache, without the need to the request of dns server initiated domain name analysis, thus accelerate the speed of terminal line website.
But said method is also not suitable with the feature of mobile Internet.Because the possibility of result of dns resolution under different networks is different, so when the network at terminal place changes, terminal can empty DNS cache, otherwise connection error may be caused.In this case terminal also needs to re-start DNS cache, therefore greatly reduces the access speed of network.
Summary of the invention
In view of this, present disclose provides a kind of method and apparatus of domain name system buffer memory, to improve the speed of carrying out access to netwoks based on DNS cache.
According to the first aspect of disclosure embodiment, a kind of method of domain name system buffer memory is provided, comprises:
In advance at the one or more domain name system DNS item of local cache, described DNS item comprises; (Time To Live, is called for short: TTL) for the Internet protocol IP address of domain name and correspondence and life span;
When connecting with terminal, send to described terminal synchronously to preserve the described DNS item of local cache, access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
Optionally, described method also comprises:
DNS item according to the life span regular update in described DNS item;
Described DNS item after upgrading synchronously is saved to described terminal.
Optionally, described method also comprises:
Described in local cache during DNS item, receive and preserve the password that user that described terminal sends arranges;
When sending to described terminal synchronously to preserve the described DNS item of local cache, first by described terminal to described user rs authentication password, if described password is correct, then send to described terminal synchronously to preserve the described DNS item of local cache.
Optionally, described method also comprises:
To the described DNS item of local cache, record the frequency of DNS item described in described terminal access;
The DNS item of frequency lower than designated value is deleted in local cache.
Optionally, described in advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span, comprising:
Receive the DNS item that described terminal sends after domain name mapping success, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality.
According to the second aspect of disclosure embodiment, a kind of method of domain name system buffer memory is provided, comprises:
When connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality;
When to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
Optionally, described method also comprises:
Receive described router regular update and the DNS item sent;
DNS item after upgrading with the described router received, upgrades the described DNS item of local cache.
Optionally, described method also comprises:
To the described DNS item of local cache, the frequency of DNS item described in record access;
The DNS item of frequency lower than designated value is deleted in local cache.
Optionally, after the described DNS item of described inquiry local cache, also comprise:
If domain name does not exist or domain name exists but the life span of correspondence is overtime, then according to domain name to the request of network initiated domain name analysis, receive IP address corresponding to domain name that described network returns and life span, access to netwoks is carried out in the IP address corresponding according to the domain name received, domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to described router synchronization to preserve described DNS item.
Optionally, send to described router synchronization to preserve described DNS item, comprising:
Receive the password that user is arranged, send to described router synchronization to preserve in described password together with described DNS item, described password is used for carrying out password authentification when described router sends DNS item again.
According to the third aspect of disclosure embodiment, a kind of device of domain name system buffer memory is provided, comprises:
Cache module, in advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
Synchronization module, for when connecting with terminal, sends to described terminal synchronously to preserve the described DNS item of local cache, and access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
Optionally, described device also comprises:
Update module, for DNS item according to the life span regular update in described DNS item;
Described synchronization module also for: the described DNS item after described update module being upgraded synchronously is saved to described terminal.
Optionally, described cache module also for: described in local cache during DNS item, receive and preserve the password that user that described terminal sends arranges;
Described synchronization module also for: when sending to described terminal synchronously to preserve the described DNS item of local cache, first by described terminal to described user rs authentication password, if described password is correct, then sends to described terminal synchronously to preserve the described DNS item of local cache.
Optionally, described device also comprises:
Logging modle, for the described DNS item to local cache, records the frequency of DNS item described in described terminal access;
Removing module, for deleting the DNS item of the frequency of described logging modle record lower than designated value in local cache.
Optionally, described cache module comprises:
Receive submodule, for receiving the DNS item that described terminal sends after domain name mapping success, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
Cache sub-module, is buffered in this locality for the described DNS item received by described reception submodule.
According to the fourth aspect of disclosure embodiment, a kind of device of domain name system buffer memory is provided, comprises:
Receiver module, for when connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
Cache module, is buffered in this locality for the described DNS item received by described receiver module;
Access modules, for when to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
Optionally, described receiver module also for: receive described router regular update and send DNS item;
Described device also comprises:
Update module, the DNS item after the described router for receiving with described receiver module upgrades, upgrades the described DNS item of local cache.
Optionally, described device also comprises:
Logging modle, for the described DNS item to local cache, the frequency of DNS item described in record access;
Removing module, for deleting the DNS item of the frequency of described logging modle record lower than designated value in local cache.
Optionally, described access modules also for:
After the described DNS item of inquiry local cache, if domain name does not exist or domain name exists but the life span of correspondence is overtime, then according to domain name to the request of network initiated domain name analysis, receive IP address corresponding to domain name that described network returns and life span, access to netwoks is carried out in the IP address corresponding according to the domain name received, domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to described router synchronization to preserve described DNS item.
Optionally, described access modules comprises:
Sending submodule, for receiving the password that user is arranged, sending to described router synchronization to preserve in described password together with described DNS item, described password is used for carrying out password authentification when described router sends DNS item again.
According to the 5th aspect of disclosure embodiment, a kind of device of domain name system buffer memory is provided, comprises:
Processor and the memory for storage of processor executable instruction;
Wherein, described processor is configured to:
In advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
When connecting with terminal, send to described terminal synchronously to preserve the described DNS item of local cache, access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
According to the 6th aspect of disclosure embodiment, a kind of device of domain name system buffer memory is provided, comprises:
Processor and the memory for storage of processor executable instruction;
Wherein, described processor is configured to:
When connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality;
When to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by advance at the one or more DNS item of local cache, and this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span; When connecting with terminal, terminal is sent to synchronously to preserve this DNS item of local cache, access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to domain name in described life span, owing to just having issued the DNS item of buffer memory when being connected with terminal to terminal, therefore, just can realize the quick DNS cache of end side without the need to terminal through domain name resolution process, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the network architecture schematic diagram of a kind of domain name system buffer memory according to an exemplary embodiment.
Fig. 2 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 3 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 4 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 5 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 6 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 7 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 8 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Fig. 9 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 10 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 11 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 12 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 13 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 14 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 15 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 16 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 17 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 18 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Figure 19 is the block diagram of the device of a kind of domain name system buffer memory according to another exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Disclosure embodiment relates to a kind of method and apparatus of domain name system buffer memory, to improve the speed of carrying out access to netwoks based on DNS cache, can be applied in the network architecture as shown in Figure 1.See Fig. 1, this network architecture comprises terminal and router.This terminal can be fixed terminal or mobile terminal.Terminal can pass through this router accessing Internet.This router own cache DNS item is also synchronously saved in terminal, thus improves the speed of terminal access network.
Fig. 2 is the flow chart of the method for a kind of domain name system buffer memory according to an exemplary embodiment, and as shown in Figure 2, the method is used for, in router, comprising the following steps.
In the step s 21, in advance at the one or more domain name system DNS item of local cache, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span.
In the present embodiment, the DNS item of local cache is at least one, is generally multiple.Optionally, this DNS item can also comprise other domain name mapping information, and the present embodiment is not specifically limited this.
In step S22, when connecting with terminal, send to this terminal synchronously to preserve this DNS item of local cache, access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to this domain name in this life span.
Usually, during terminal accessing Internet all can first and router connect, therefore, the DNS item of router cache be sent to terminal when terminal and router are set up, terminal can be made to obtain DNS item fast, timely, without the need to terminal self execution domains name analysis flow process again, dramatically saves on the time, improve the efficiency of access to netwoks.
In addition, whether router can also ask for consumers' opinions carries out DNS item synchronously, and as sent a request message to query field of terminal, terminal on obtaining confirmation from the user, reply acknowledge message to router, then the DNS item of local cache sends to terminal synchronously to preserve by router again.If user's refusal carries out synchronous, then terminal replies refuse information is to router, and router does not then send the DNS item of local cache to terminal.
In the present embodiment, optionally, said method can also comprise:
According to this DNS item of the life span regular update in this DNS item;
This DNS item after upgrading synchronously is saved to this terminal.
In the present embodiment, optionally, said method can also comprise:
When this DNS item of local cache, receive and preserve this terminal send user arrange password;
When sending to this terminal synchronously to preserve this DNS item of local cache, first passing through this terminal to this user rs authentication password, if this password is correct, then sending to this terminal synchronously to preserve this DNS item of local cache.
In the present embodiment, optionally, said method can also comprise:
To this DNS item of local cache, record the frequency of this DNS item of this terminal access;
The DNS item of frequency lower than designated value is deleted in local cache.
In the present embodiment, optionally, above-mentioned in advance at the one or more domain name system DNS item of local cache, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span, can comprise:
Receive the DNS item that this terminal sends after domain name mapping success, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
This DNS item received is buffered in this locality.
The said method that the present embodiment provides, just can realize the quick DNS cache of end side through domain name resolution process without the need to terminal, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Fig. 3 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment, and as shown in Figure 3, the method is used for, in router, comprising the following steps.
In step S31, in advance at the one or more domain name system DNS item of local cache, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span.
In step s 32, when connecting with terminal, send to this terminal synchronously to preserve this DNS item of local cache, access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to this domain name in this life span.
In step S33, according to this DNS item of the life span regular update in this DNS item.
Wherein, optionally, this step can comprise the following steps:
To each DNS item of local cache, judge its life span whether arrive or current time apart from the not enough designated value of duration of life span due in, then according to the domain name of this DNS item to the request of network side initiated domain name analysis, and address corresponding to this domain name returned with network side and TTL upgrade this DNS item of local cache.The concrete numerical value of the present embodiment to described designated value does not limit.For the DNS item that life span does not arrive, then without the need to upgrading.
In step S34, this DNS item after upgrading synchronously is saved to this terminal.
Wherein, the DNS item of regular update can be one, also can be multiple, and when being synchronously saved to terminal, can only send to terminal to upgrade the DNS item of renewal, the DNS item not carrying out upgrading then need not be transferred to terminal, thus can improve efficiency of transmission.
In step s 35, to this DNS item of local cache, the frequency of this DNS item of this terminal access is recorded.
Wherein, the frequency of terminal access DNS item is higher, shows that the website that in this DNS item, IP address is corresponding is the website that terminal use often accesses, can be buffered in this locality for a long time, is synchronized to terminal use to facilitate.The frequency of terminal access DNS item is lower, and show the website that in this DNS item, IP address is corresponding, terminal use seldom accesses, and can, by this DNS entry deletion, to save the memory space of router this locality, avoid storage resources to waste.
In step S36, the DNS item of frequency lower than designated value is deleted in local cache.
Wherein, described designated value can be arranged as required, and the present embodiment does not limit its concrete numerical value.
The said method that the present embodiment provides, just can realize the quick DNS cache of end side through domain name resolution process without the need to terminal, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.By regular update DNS item, the validity of DNS item can be ensured.By the DNS entry deletion of frequency lower than designated value, the DNS item be of little use can be avoided to take memory space, can saving resource.
Fig. 4 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment, and as shown in Figure 4, the method is used for, in router, comprising the following steps.
In step S41, the DNS item of receiving terminal transmission after domain name mapping success in advance, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span.
Wherein, domain name is resolved and is referred to and to be resolved by the dns server of network side and to return the process of DNS item, and terminal can according to the request of domain name to dns server initiated domain name analysis, and receives the DNS item that dns server returns, and then be sent to router, do not do too much explanation herein.
In step S42, this DNS item received is buffered in this locality.
Can ensure that terminal is when self carries out DNS cache, also synchronously can be saved to router by above-mentioned two steps, thus ensure that terminal and router synchronously can preserve identical DNS item, upgrade in time to facilitate both sides.
In step S43, receive and preserve this terminal send user arrange password, this password be used for safeguard protection is carried out to the DNS item corresponding with this terminal.
Described password can be arranged by user, and particular content does not limit.This password can set up corresponding relation with this terminal, and together preserves in the router, to determine whether to be synchronized to terminal with password authentification to during terminal at synchronous DNS item, thus improves fail safe.
Wherein, during local preservation DNS item, password, terminal iidentification and DNS item together can be preserved.Described password and terminal iidentification one_to_one corresponding, mark terminal that terminal iidentification can be unique, and a corresponding password.The DNS item that this terminal iidentification is corresponding can be one, is generally multiple.Can terminal be together sent to carry out buffer memory all DNS items corresponding for this terminal iidentification time synchronous.
In step S44, when connecting with terminal, first pass through this terminal to this user rs authentication password, if this password is correct, send to this terminal synchronously to preserve this DNS item of local cache again, access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to this domain name in this life span.
Wherein, router can to sending request the message of authentication password to terminal, terminal request user inputs password, and the password that user inputs is sent to router authentication, if authentication password is correct, then the DNS item of buffer memory is sent to terminal by router again, if authentication password mistake, then router does not send the DNS item of buffer memory to terminal.
The said method that the present embodiment provides, just can realize the quick DNS cache of end side through domain name resolution process without the need to terminal, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.By the mode of password authentification, can ensure that the DNS item of buffer memory is safer, reliable, also ensure that the personal secrets of user simultaneously.
Fig. 5 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment, and as shown in Figure 5, the method is used for, in terminal, comprising the following steps.
In step s 51, when connecting with router, receive the domain name system DNS item that this router sends, this DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span.
Wherein, the DNS item that router sends can be one, or is multiple, and the present embodiment is not specifically limited this.
In step S52, this DNS item received is buffered in this locality.
In step S53, when to this domain name initiate access request time, inquiry local cache this DNS item, if this domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to this domain name IP address.
Optionally, the DNS item that can be search index local cache with domain name to be visited, if find this domain name, then obtain IP address corresponding to this domain name and life span, judge that whether this life span is overtime, if not overtime, then carry out access to netwoks according to this IP address.Wherein, whether time-out can judge by the method for timing life span, comprises incremental manner or decreasing fashion etc., does not do too much explanation herein.
In the present embodiment, optionally, said method can also comprise:
Receive this router regular update and the DNS item sent;
DNS item after upgrading with this router received, upgrades this DNS item of local cache.
In the present embodiment, optionally, said method can also comprise:
To this DNS item of local cache, the frequency of this DNS item of record access;
The DNS item of frequency lower than designated value is deleted in local cache.
In the present embodiment, optionally, after this DNS item of above-mentioned inquiry local cache, can also comprise:
If this domain name does not exist or this domain name exists but the life span of correspondence is overtime, then according to this domain name to the request of network initiated domain name analysis, receive IP address corresponding to this domain name that this network returns and life span, access to netwoks is carried out in the IP address corresponding according to this domain name received, this domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to this router synchronization to preserve this DNS item.
In the present embodiment, optionally, send to this router synchronization to preserve this DNS item, can comprise:
Receive the password that user is arranged, send to this router synchronization to preserve in this password together with this DNS item, this password is used for carrying out password authentification when this router sends DNS item again.
The said method that the present embodiment provides, by receiving and the DNS item of cache routing device transmission, just can realize the quick DNS cache of end side, thus improve terminal carries out access to netwoks speed based on DNS cache through domain name resolution process without the need to terminal.Even if the network at terminal place changes, existing DNS item is cleared, this mode just obtaining DNS item when connecting with router, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Fig. 6 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment, and as shown in Figure 6, the method is used for, in terminal, comprising the following steps.
In step S61, when connecting with router, receive the domain name system DNS item that this router sends, this DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span.
In step S62, this DNS item received is buffered in this locality.
In step S63, when to this domain name initiate access request time, inquiry local cache this DNS item, if this domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to this domain name IP address.
In step S64, receive this router regular update and the DNS item sent.
In step S65, the DNS item after upgrading with this router received, upgrades this DNS item of local cache.
Wherein, the DNS item upgrading local cache can comprise: each the DNS item after the renewal that routers sends, judge in local cache, whether to there is this DNS item, if there is no, then be added in local cache, if existed, then this DNS item after the renewal that can send with router replaces this DNS item of local cache, thus ensures that terminal is consistent with the DNS item of router both sides buffer memory.
In step S66, to this DNS item of local cache, the frequency of this DNS item of record access.
In step S67, the DNS item of frequency lower than designated value is deleted in local cache.
Wherein, this designated value can be arranged as required, and the present embodiment is not specifically limited this.
The said method that the present embodiment provides, by receiving and the DNS item of cache routing device transmission, just can realize the quick DNS cache of end side, thus improve terminal carries out access to netwoks speed based on DNS cache through domain name resolution process without the need to terminal.Even if the network at terminal place changes, existing DNS item is cleared, this mode just obtaining DNS item when connecting with router, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.By regular update DNS item, the validity of DNS item can be ensured.By the DNS entry deletion of frequency lower than designated value, the DNS item be of little use can be avoided to take memory space, can saving resource.
Fig. 7 is the flow chart of the method for a kind of domain name system buffer memory according to another exemplary embodiment, and as shown in Figure 7, the method is used for, in terminal, comprising the following steps.
In step S71, when connecting with router, receive the domain name system DNS item that this router sends, this DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span.
In step S72, this DNS item received is buffered in this locality.
In step S73, when to this domain name initiate access request time, inquiry local cache this DNS item, if this domain name exist and the life span of correspondence is not overtime, then perform step S74; If this domain name does not exist or this domain name exists but the life span of correspondence is overtime, then perform step S75.
In step S74, access to netwoks is carried out in the IP address corresponding according to this domain name, and flow process terminates.
In step S75, according to this domain name to the request of network initiated domain name analysis, receive IP address corresponding to this domain name that this network returns and life span, access to netwoks is carried out in the IP address corresponding according to this domain name received.
In step S76, this domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to this router synchronization to preserve this DNS item, flow process terminates.
DNS item due to above-mentioned composition is the item that local cache newly increases, and therefore, sends to router to preserve, and can ensure that terminal is consistent with the DNS item of router cache, guarantee that both sides are synchronous.
Wherein, optionally, describedly send to this router synchronization to preserve this DNS item, can comprise:
Receive the password that user is arranged, send to this router synchronization to preserve in this password together with this DNS item, this password is used for carrying out password authentification when this router sends DNS item again.
When terminal is connected again with router, router can require that terminal carries out password authentification, and the password that user inputs sends to router to verify by terminal, again DNS item is sent to terminal, thus improve the fail safe of data after authentication password is correct.
The said method that the present embodiment provides, by receiving and the DNS item of cache routing device transmission, just can realize the quick DNS cache of end side, thus improve terminal carries out access to netwoks speed based on DNS cache through domain name resolution process without the need to terminal.Even if the network at terminal place changes, existing DNS item is cleared, this mode just obtaining DNS item when connecting with router, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.By the mode of password authentification, can ensure that the DNS item of buffer memory is safer, reliable, also ensure that the personal secrets of user simultaneously.
Fig. 8 is the device block diagram of a kind of domain name system buffer memory according to another exemplary embodiment.With reference to Fig. 8, this device comprises cache module 121 and synchronization module 122.
This cache module 121, be configured in advance at the one or more domain name system DNS item of local cache, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span.
This synchronization module 122, is configured to when connecting with terminal, sends to this terminal synchronously to preserve this DNS item of local cache, and access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to this domain name in this life span.
See Fig. 9, in the present embodiment, optionally, said apparatus can also comprise: update module 123.
This update module 123, is configured to according to this DNS item of the life span regular update in this DNS item;
Accordingly, this synchronization module 122 also for: this DNS item after this update module 123 being upgraded synchronously is saved to this terminal.
In the present embodiment, optionally, above-mentioned cache module 121 also for: when this DNS item of local cache, receive and preserve the password that user that this terminal sends arranges; This synchronization module 122 also for: when sending to this terminal synchronously to preserve this DNS item of local cache, first pass through this terminal to this user rs authentication password, if this password is correct, then sends to this terminal synchronously to preserve this DNS item of local cache.
See Figure 10, in the present embodiment, optionally, said apparatus can also comprise: logging modle 124 and removing module 125.
This logging modle 124, is configured to, to this DNS item of local cache, record the frequency of this DNS item of this terminal access;
This removing module 125, the frequency being configured to this logging modle 124 to record is deleted in local cache lower than the DNS item of designated value.
See Figure 11, in the present embodiment, optionally, above-mentioned cache module 121 can comprise: receive submodule 121a and cache sub-module 121b.
This reception submodule 121a, be configured to the DNS item receiving the transmission after domain name mapping success of this terminal, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
This cache sub-module 121b, this DNS item being configured to this reception submodule to receive is buffered in this locality.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The said apparatus that the present embodiment provides, can be applied in router, and this device just can realize the quick DNS cache of end side through domain name resolution process without the need to terminal, thus improves terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Figure 12 is the device block diagram of a kind of domain name system buffer memory according to another exemplary embodiment.With reference to Figure 12, this device comprises receiver module 221, cache module 222 and access modules 223.
This receiver module 221, is configured to when connecting with router, and receive the domain name system DNS item that this router sends, this DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span.
This cache module 222, this DNS item being configured to this receiver module to receive is buffered in this locality.
This access modules 223, be configured to when to this domain name initiate access request time, inquiry local cache this DNS item, if this domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to this domain name IP address.
See Figure 13, in the present embodiment, optionally, this receiver module 221 can also be used for: receive this router regular update and the DNS item sent; This device can also comprise: update module 224.
This update module 224, the DNS item after this router being configured to receive with this receiver module upgrades, upgrades this DNS item of local cache.
See Figure 14, in the present embodiment, optionally, said apparatus can also comprise: logging modle 225 and removing module 226.
This logging modle 225, is configured to this DNS item to local cache, the frequency of this DNS item of record access.
This removing module 226, is configured to the DNS item of the frequency of this logging modle record lower than designated value to delete in local cache.
In the present embodiment, optionally, this access modules 223 can also be configured to: after this DNS item of inquiry local cache, if this domain name does not exist or this domain name exists but the life span of correspondence is overtime, then according to this domain name to the request of network initiated domain name analysis, receive IP address corresponding to this domain name that this network returns and life span, access to netwoks is carried out in the IP address corresponding according to this domain name received, this domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to this router synchronization to preserve this DNS item.
See Figure 15, in the present embodiment, optionally, this access modules 223 can comprise: send submodule 223a.
This transmission submodule 223a, is configured to the password receiving user's setting, sends to this router synchronization to preserve in this password together with this DNS item, and this password is used for carrying out password authentification when this router sends DNS item again.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The said apparatus that the present embodiment provides, can be applied in terminal, by receiving and the DNS item of cache routing device transmission, just can realize the quick DNS cache of end side without the need to terminal through domain name resolution process, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just obtaining DNS item when connecting with router, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Figure 16 is the device block diagram of a kind of domain name system buffer memory according to another exemplary embodiment.With reference to Figure 16, this device comprises processor 61 and the memory 62 for storage of processor executable instruction;
Wherein, this processor 61 is configured to:
In advance at the one or more domain name system DNS item of local cache, this DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
When connecting with terminal, send to this terminal synchronously to preserve this DNS item of local cache, access to netwoks is carried out in the IP address that this DNS item is used for this terminal corresponding according to this domain name in this life span.
Figure 17 is the block diagram of the device 1900 of a kind of domain name system buffer memory according to another exemplary embodiment.Such as, device 1900 may be provided in a server.With reference to Figure 17, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by memory 1932, can such as, by the instruction of the execution of processing unit 1922, application program for storing.The application program stored in memory 1932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1922 is configured to perform instruction, to perform the above method.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in memory 1932, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
The said apparatus that the present embodiment provides, can be applied in router, and this device just can realize the quick DNS cache of end side through domain name resolution process without the need to terminal, thus improves terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just sending buffer memory DNS item when connecting with terminal, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Figure 18 is the device block diagram of a kind of domain name system buffer memory according to another exemplary embodiment.With reference to Figure 18, this device comprises processor 81 and the memory 82 for storage of processor executable instruction;
Wherein, this processor 81 is configured to:
When connecting with router, receive the domain name system DNS item that this router sends, this DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
This DNS item received is buffered in this locality;
When to this domain name initiate access request time, inquiry local cache this DNS item, if this domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to this domain name IP address.
Figure 19 is the block diagram of the device 800 of a kind of domain name system buffer memory according to another exemplary embodiment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 19, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing unit 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of domain name system buffer memory, described method comprises:
When connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality;
When to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
In the present embodiment, optionally, described method also comprises:
Receive described router regular update and the DNS item sent;
DNS item after upgrading with the described router received, upgrades the described DNS item of local cache.
In the present embodiment, optionally, described method also comprises:
To the described DNS item of local cache, the frequency of DNS item described in record access;
The DNS item of frequency lower than designated value is deleted in local cache.
In the present embodiment, optionally, after the described DNS item of described inquiry local cache, also comprise:
If domain name does not exist or domain name exists but the life span of correspondence is overtime, then according to domain name to the request of network initiated domain name analysis, receive IP address corresponding to domain name that described network returns and life span, access to netwoks is carried out in the IP address corresponding according to the domain name received, domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to described router synchronization to preserve described DNS item.
In the present embodiment, optionally, send to described router synchronization to preserve described DNS item, comprising:
Receive the password that user is arranged, send to described router synchronization to preserve in described password together with described DNS item, described password is used for carrying out password authentification when described router sends DNS item again.
The above-mentioned non-transitory computer-readable recording medium that the present embodiment provides, by receiving and the DNS item of cache routing device transmission, just can realize the quick DNS cache of end side without the need to terminal through domain name resolution process, thus improve terminal carries out access to netwoks speed based on DNS cache.Even if the network at terminal place changes, existing DNS item is cleared, this mode just obtaining DNS item when connecting with router, highly shortened the time of terminal field name analysis, also ensure that the correctness that network connects, reach the effect that DNS cache also can be applied to mobile Internet.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (22)

1. a method for domain name system buffer memory, is characterized in that, described method comprises:
In advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
When connecting with terminal, send to described terminal synchronously to preserve the described DNS item of local cache, access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
2. method according to claim 1, is characterized in that, described method also comprises:
DNS item according to the life span regular update in described DNS item;
Described DNS item after upgrading synchronously is saved to described terminal.
3. method according to claim 1, is characterized in that, described method also comprises:
Described in local cache during DNS item, receive and preserve the password that user that described terminal sends arranges;
When sending to described terminal synchronously to preserve the described DNS item of local cache, first by described terminal to described user rs authentication password, if described password is correct, then send to described terminal synchronously to preserve the described DNS item of local cache.
4. method according to claim 1, is characterized in that, described method also comprises:
To the described DNS item of local cache, record the frequency of DNS item described in described terminal access;
The DNS item of frequency lower than designated value is deleted in local cache.
5. method according to claim 1, is characterized in that, described in advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span, comprising:
Receive the DNS item that described terminal sends after domain name mapping success, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality.
6. a method for domain name system buffer memory, is characterized in that, described method comprises:
When connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality;
When to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
7. method according to claim 6, is characterized in that, described method also comprises:
Receive described router regular update and the DNS item sent;
DNS item after upgrading with the described router received, upgrades the described DNS item of local cache.
8. method according to claim 6, is characterized in that, described method also comprises:
To the described DNS item of local cache, the frequency of DNS item described in record access;
The DNS item of frequency lower than designated value is deleted in local cache.
9. method according to claim 6, is characterized in that, after the described DNS item of described inquiry local cache, also comprises:
If domain name does not exist or domain name exists but the life span of correspondence is overtime, then according to domain name to the request of network initiated domain name analysis, receive IP address corresponding to domain name that described network returns and life span, access to netwoks is carried out in the IP address corresponding according to the domain name received, domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to described router synchronization to preserve described DNS item.
10. method according to claim 9, is characterized in that, sends to described router synchronization to preserve described DNS item, comprising:
Receive the password that user is arranged, send to described router synchronization to preserve in described password together with described DNS item, described password is used for carrying out password authentification when described router sends DNS item again.
The device of 11. 1 kinds of domain name system buffer memorys, is characterized in that, described device comprises:
Cache module, in advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
Synchronization module, for when connecting with terminal, sends to described terminal synchronously to preserve the described DNS item of local cache, and access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
12. devices according to claim 11, is characterized in that, described device also comprises:
Update module, for DNS item according to the life span regular update in described DNS item;
Described synchronization module also for: the described DNS item after described update module being upgraded synchronously is saved to described terminal.
13. devices according to claim 11, is characterized in that,
Described cache module also for: described in local cache during DNS item, receive and preserve the password that user that described terminal sends arranges;
Described synchronization module also for: when sending to described terminal synchronously to preserve the described DNS item of local cache, first by described terminal to described user rs authentication password, if described password is correct, then sends to described terminal synchronously to preserve the described DNS item of local cache.
14. devices according to claim 11, is characterized in that, described device also comprises:
Logging modle, for the described DNS item to local cache, records the frequency of DNS item described in described terminal access;
Removing module, for deleting the DNS item of the frequency of described logging modle record lower than designated value in local cache.
15. devices according to claim 11, is characterized in that, described cache module comprises:
Receive submodule, for receiving the DNS item that described terminal sends after domain name mapping success, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
Cache sub-module, is buffered in this locality for the described DNS item received by described reception submodule.
The device of 16. 1 kinds of domain name system buffer memorys, is characterized in that, described device comprises:
Receiver module, for when connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
Cache module, is buffered in this locality for the described DNS item received by described receiver module;
Access modules, for when to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
17. devices according to claim 16, is characterized in that,
Described receiver module also for: receive described router regular update and send DNS item;
Described device also comprises:
Update module, the DNS item after the described router for receiving with described receiver module upgrades, upgrades the described DNS item of local cache.
18. devices according to claim 16, is characterized in that, described device also comprises:
Logging modle, for the described DNS item to local cache, the frequency of DNS item described in record access;
Removing module, for deleting the DNS item of the frequency of described logging modle record lower than designated value in local cache.
19. devices according to claim 16, is characterized in that, described access modules also for:
After the described DNS item of inquiry local cache, if domain name does not exist or domain name exists but the life span of correspondence is overtime, then according to domain name to the request of network initiated domain name analysis, receive IP address corresponding to domain name that described network returns and life span, access to netwoks is carried out in the IP address corresponding according to the domain name received, domain name and corresponding IP address and life span composition DNS item are buffered in this locality, and send to described router synchronization to preserve described DNS item.
20. devices according to claim 19, is characterized in that, described access modules comprises:
Sending submodule, for receiving the password that user is arranged, sending to described router synchronization to preserve in described password together with described DNS item, described password is used for carrying out password authentification when described router sends DNS item again.
The device of 21. 1 kinds of domain name system buffer memorys, is characterized in that, described device comprises:
Processor and the memory for storage of processor executable instruction;
Wherein, described processor is configured to:
In advance at the one or more domain name system DNS item of local cache, described DNS item comprises; The Internet protocol IP address of domain name and correspondence and life span;
When connecting with terminal, send to described terminal synchronously to preserve the described DNS item of local cache, access to netwoks is carried out in the IP address that described DNS item is used for described terminal corresponding according to domain name in described life span.
The device of 22. 1 kinds of domain name system buffer memorys, is characterized in that, described device comprises:
Processor and the memory for storage of processor executable instruction;
Wherein, described processor is configured to:
When connecting with router, receive the domain name system DNS item that described router sends, described DNS item comprises: the Internet protocol IP address of domain name and correspondence and life span;
The described DNS item received is buffered in this locality;
When to domain name initiate access request time, inquiry local cache described DNS item, if domain name exist and the life span of correspondence is not overtime, then access to netwoks is carried out in corresponding according to domain name IP address.
CN201410681782.XA 2014-11-24 2014-11-24 The method and apparatus of domain name system caching Active CN104506664B (en)

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 true CN104506664A (en) 2015-04-08
CN104506664B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
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
CN106790720A (en) * 2017-03-21 2017-05-31 聚好看科技股份有限公司 Business service asks implementation method and device
CN106850813A (en) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 Network service address changing method and device
CN106959975A (en) * 2016-01-11 2017-07-18 广州市动景计算机科技有限公司 A kind of transcoding caching resource processing method, device and equipment
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
CN107438114A (en) * 2017-08-01 2017-12-05 上海斐讯数据通信技术有限公司 A kind of wireless routing device domain name cache optimization method and system
CN108243265A (en) * 2016-12-27 2018-07-03 ***通信集团浙江有限公司 A kind of dns resolution processing method and processing device
CN108551495A (en) * 2018-07-26 2018-09-18 杭州云缔盟科技有限公司 A kind of method for accessing domain name not using DNS Protocol or similar agreement
CN108600788A (en) * 2018-05-14 2018-09-28 广州市千钧网络科技有限公司 A kind of broadcast address acquisition methods and device
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
CN110716982A (en) * 2019-09-09 2020-01-21 平安普惠企业管理有限公司 Block chain real-time storage method and device, computer equipment and storage medium

Citations (4)

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

Patent Citations (4)

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

Cited By (17)

* Cited by examiner, † Cited by third party
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
CN106959975A (en) * 2016-01-11 2017-07-18 广州市动景计算机科技有限公司 A kind of transcoding caching resource 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
CN106790720A (en) * 2017-03-21 2017-05-31 聚好看科技股份有限公司 Business service asks 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
US11399067B2 (en) 2017-03-24 2022-07-26 Baidu Online Network Technology (Beijing) Co., Ltd. Network access method and apparatus for speech recognition service 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
CN107438114A (en) * 2017-08-01 2017-12-05 上海斐讯数据通信技术有限公司 A kind of wireless routing device domain name cache optimization method and system
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
CN110716982A (en) * 2019-09-09 2020-01-21 平安普惠企业管理有限公司 Block chain real-time storage method and 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

Also Published As

Publication number Publication date
CN104506664B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN104506664A (en) Domain name system caching method and device
CN104159275B (en) Method for connecting network and device
CN104159226B (en) Method for connecting network and device
CN105243318A (en) User equipment control right determining method and apparatus and terminal device
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN104123341A (en) Method and device for downloading file and route device
CN104780155A (en) Method and device for binding equipment
CN104270404A (en) Login method and device based on terminal identification
CN105491048A (en) Account management method and apparatus
CN104133852A (en) Webpage access method, webpage access device, server and terminal
CN105263196A (en) Connection state prompting method and device
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN103888290A (en) Configuration information recovery method and device
CN104462570A (en) Webpage content obtaining method and device
CN104853336A (en) Method for discovering intelligent equipment, method for accessing to internet and devices thereof
CN103929796A (en) Access point sharing method and device
CN104954371A (en) Equipment information display method and device
CN106453685A (en) Method for resolving with public DNS (Domain Name System) server, system and server
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN104837178A (en) Network accessing method and device
CN104684106A (en) Network connection method and device
CN104158854B (en) Resource share method and device
CN104539812A (en) Recommendation information acquisition method, terminal and server
CN105138564A (en) Data file reading method and apparatus
CN105245675A (en) Method and device for managing contact account

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