














技术领域technical field
本发明涉及信息技术领域,具体涉及一种更新域名系统缓存的方法、授权域名服务器和缓存域名服务器。The invention relates to the field of information technology, in particular to a method for updating a domain name system cache, an authorized domain name server and a cache domain name server.
背景技术Background technique
域名系统(Domain Name System,DNS)是一个分布式的主机信息数据库,采用客户机/服务器模式,它主要包括缓存域名服务器和授权域名服务器。其中,授权域名服务器保存有该网络中域名和互联网协议(Internet Protocol,IP)地址之间的对应关系。授权域名服务器可以将域名解析为对应的IP地址。The Domain Name System (Domain Name System, DNS) is a distributed host information database, using the client/server model, which mainly includes caching domain name servers and authoritative domain name servers. Wherein, the authorized domain name server stores the corresponding relationship between domain names and Internet Protocol (Internet Protocol, IP) addresses in the network. The authorized domain name server can resolve the domain name to the corresponding IP address.
在现有的域名解析过程中,终端向缓存域名服务器发送域名解析请求,该域名解析请求中携带终端请求解析的域名。缓存域名服务器向授权域名服务器发送域名解析请求。授权域名服务器根据域名解析请求执行域名解析,获得域名解析结果,并向缓存域名服务器发送域名解析响应,该域名解析响应中包括域名解析结果,域名解析结果中包括内容服务器的IP地址和解析结果的生存时间(Time To Live,TTL)。缓存域名服务器向终端发送域名解析结果。In the existing domain name resolution process, the terminal sends a domain name resolution request to the caching domain name server, and the domain name resolution request carries the domain name requested by the terminal to be resolved. The caching domain name server sends a domain name resolution request to the authoritative domain name server. The authorized domain name server performs domain name resolution according to the domain name resolution request, obtains the domain name resolution result, and sends a domain name resolution response to the caching domain name server. The domain name resolution response includes the domain name resolution result, and the domain name resolution result includes the IP address of the content server and the address of the resolution result Time to Live (Time To Live, TTL). The caching domain name server sends the domain name resolution result to the terminal.
其中,缓存域名服务器在接收到域名解析响应后,根据生存时间来缓存域名解析结果,在接收到终端发送的针对同样的域名进行解析的域名解析请求后,直接将缓存的域名解析结果向终端发送。在TTL超时后,缓存域名服务器从缓存中删除该域名解析结果。Among them, after receiving the domain name resolution response, the caching domain name server caches the domain name resolution result according to the survival time, and directly sends the cached domain name resolution result to the terminal after receiving the domain name resolution request for the same domain name sent by the terminal. . After the TTL expires, the caching domain name server deletes the domain name resolution result from the cache.
在TTL超时之前,如果所述域名解析结果中域名对应的内容服务器故障,缓存域名服务器仍会基于域名解析请求返回故障的内容服务器的地址,导致终端根据该域名解析结果向故障的内容服务器请求内容时,内容请求失败。Before the TTL expires, if the content server corresponding to the domain name in the domain name resolution result is faulty, the caching domain name server will still return the address of the faulty content server based on the domain name resolution request, causing the terminal to request content from the faulty content server based on the domain name resolution result , the content request failed.
发明内容Contents of the invention
本发明实施例提供一种更新域名系统缓存的方法以及授权域名服务器、缓存域名服务器,以在内容服务器故障后,及时删除自身缓存域名服务器上的域名解析结果,避免终端向故障的内容服务器发送请求。Embodiments of the present invention provide a method for updating domain name system cache, authorized domain name servers, and caching domain name servers, so as to delete the domain name resolution results on the cached domain name server in time after the content server fails, and prevent the terminal from sending requests to the failed content server .
为解决上述技术问题,本发明实施例是通过以下技术方案来实现的:In order to solve the above technical problems, the embodiments of the present invention are achieved through the following technical solutions:
本发明实施例提供的更新域名系统缓存的方法,包括:The method for updating the domain name system cache provided by the embodiment of the present invention includes:
在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,获取请求解析的域名的第二域名解析结果,所述请求解析的域名和所述第一域名解析结果对应,所述第二域名解析结果对应的内容服务器的工作状态正常;When it is detected that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds the threshold value, obtain the second domain name resolution result of the domain name requested for resolution, the domain name requested for resolution and the first domain name Corresponding to the resolution result, the working status of the content server corresponding to the second domain name resolution result is normal;
向所述请求解析的域名对应的缓存域名服务器发送域名解析更新消息,所述域名解析更新消息中携带所述请求解析的域名,所述域名解析更新消息用于指示所述缓存域名服务器将缓存的第一域名解析结果更新为所述第二域名解析结果。Sending a domain name resolution update message to the caching domain name server corresponding to the domain name resolution requested, the domain name resolution update message carrying the domain name resolution request, the domain name resolution update message is used to instruct the caching domain name server to cache the The first domain name resolution result is updated to the second domain name resolution result.
本发明实施例还提供一种更新域名系统缓存的方法,包括:The embodiment of the present invention also provides a method for updating the domain name system cache, including:
在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,生成域名解析结果删除消息,所述域名解析结果删除消息用于删除缓存域名服务器中的第一域名解析结果,所述域名解析结果删除消息中携带请求解析的域名,所述请求解析的域名和所述第一域名解析结果对应;When it is detected that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds the threshold value, a domain name resolution result deletion message is generated, and the domain name resolution result deletion message is used to delete the first domain name resolution result in the cached domain name server. A domain name resolution result, the domain name resolution result deletion message carries a domain name that is requested to be resolved, and the domain name that is requested to be resolved corresponds to the first domain name resolution result;
向所述缓存域名服务器发送所述域名解析结果删除消息,以使所述缓存域名服务器删除自身缓存中的第一域名解析结果,所述缓存域名服务器和所述请求解析的域名对应。Sending the domain name resolution result deletion message to the caching domain name server, so that the caching domain name server deletes the first domain name resolution result in its own cache, and the caching domain name server corresponds to the domain name requested to be resolved.
本发明实施例还提供一种更新域名系统缓存的方法,包括:The embodiment of the present invention also provides a method for updating the domain name system cache, including:
接收授权域名服务器发送的域名解析更新消息,所述域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为所述第二域名解析结果,所述域名解析更新消息中携带请求解析的域名;Receive a domain name resolution update message sent by an authorized domain name server, the domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result, and the domain name resolution update message carries a request the resolved domain name;
将自身缓存中的第一域名解析结果更新为所述第二域名解析结果,所述第一域名解析结果和所述请求解析的域名对应。Updating the first domain name resolution result in its own cache to the second domain name resolution result, where the first domain name resolution result corresponds to the domain name requested for resolution.
本发明实施例还提供一种更新域名系统缓存的方法,包括:The embodiment of the present invention also provides a method for updating the domain name system cache, including:
接收授权域名服务器发送的域名解析结果删除消息,所述域名解析结果删除消息中携带请求解析的域名,所述域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,所述第一域名解析结果和所述请求解析的域名对应;receiving a domain name resolution result deletion message sent by an authorized domain name server, the domain name resolution result deletion message carrying the domain name to be resolved, the domain name resolution result deletion message being used to delete the first domain name resolution result carried in the cached domain name server, the The first domain name resolution result corresponds to the domain name requested for resolution;
删除自身缓存中与所述请求解析的域名对应的第一域名解析结果。Deleting the first domain name resolution result corresponding to the domain name requested for resolution in its own cache.
本发明实施例还提供一种授权域名服务器,包括:The embodiment of the present invention also provides an authorized domain name server, including:
解析结果获取单元,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,获取请求解析的域名的第二域名解析结果,所述请求解析的域名和所述第一域名解析结果对应,所述第二域名解析结果对应的内容服务器的工作状态正常;The resolution result obtaining unit is used to obtain the second domain name resolution result of the domain name requested for resolution when detecting that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds a threshold value, and the request for resolution The domain name corresponds to the first domain name resolution result, and the working status of the content server corresponding to the second domain name resolution result is normal;
更新消息发送单元,用于向所述请求解析的域名对应的缓存域名服务器发送域名解析更新消息,所述域名解析更新消息中携带所述请求解析的域名,所述域名解析更新消息用于指示所述缓存域名服务器将缓存的第一域名解析结果更新为所述第二域名解析结果。An update message sending unit, configured to send a domain name resolution update message to the caching domain name server corresponding to the domain name resolution request, where the domain name resolution update message carries the domain name resolution request, and the domain name resolution update message is used to indicate the The caching domain name server updates the cached first domain name resolution result to the second domain name resolution result.
本发明实施例还提供一种授权域名服务器,包括The embodiment of the present invention also provides an authorized domain name server, including
删除消息生成单元,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,生成域名解析结果删除消息,所述域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,所述域名解析结果删除消息中携带请求解析的域名,请求解析的域名和所述第一域名解析结果对应;A deletion message generation unit, configured to generate a domain name resolution result deletion message when it detects that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds a threshold value, and the domain name resolution result deletion message is used to delete Cache the first domain name resolution result carried in the domain name server, the domain name resolution result deletion message carries the domain name requested for resolution, and the domain name requested for resolution corresponds to the first domain name resolution result;
删除消息发送单元,用于向所述缓存域名服务器发送所述域名解析结果删除消息,以使所述缓存域名服务器删除自身缓存中的第一域名解析结果,所述缓存域名服务器和所述请求解析的域名对应。A deletion message sending unit, configured to send the domain name resolution result deletion message to the caching domain name server, so that the caching domain name server deletes the first domain name resolution result in its own cache, and the caching domain name server and the request resolution corresponding to the domain name.
本发明实施例还提供一种缓存域名服务器,包括:The embodiment of the present invention also provides a caching domain name server, including:
更新消息接收单元,用于接收授权域名服务器发送的域名解析更新消息,所述域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为所述第二域名解析结果,所述域名解析更新消息中携带请求解析的域名;An update message receiving unit, configured to receive a domain name resolution update message sent by an authorized domain name server, where the domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result, the The domain name resolution update message carries the domain name requested for resolution;
第二更新单元,用于将自身缓存中的第一域名解析结果更新为所述第二域名解析结果,所述第一域名解析结果和所述请求解析的域名对应。The second updating unit is configured to update the first domain name resolution result in its own cache to the second domain name resolution result, the first domain name resolution result corresponding to the domain name requested to be resolved.
本发明实施例还提供一种缓存域名服务器,包括:The embodiment of the present invention also provides a caching domain name server, including:
删除消息接收单元,用于接收授权域名服务器发送的域名解析结果删除消息,所述域名解析结果删除消息中携带请求解析的域名,所述域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,所述第一域名解析结果和所述请求解析的域名对应;The deletion message receiving unit is configured to receive a domain name resolution result deletion message sent by an authorized domain name server, the domain name resolution result deletion message carries the domain name requested to be resolved, and the domain name resolution result deletion message is used to delete the first domain name carried in the cached domain name server. A domain name resolution result, the first domain name resolution result corresponds to the domain name requested for resolution;
删除执行单元,用于删除自身缓存中与所述请求解析的域名对应的第一域名解析结果。The deletion execution unit is configured to delete the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache.
在本发明实施例提供的更新域名系统缓存的方法可以应用在第一域名解析结果对应的内容服务器发生故障或负荷超过门限值的场景中,本发明实施例通过向缓存域名服务器发送域名解析更新消息,使得缓存域名服务器删除自身缓存的第一域名解析结果为第二域名解析结果或删除缓存的第一域名解析结果,避免向终端返回错误的第一域名解析结果。本发明实施例可以使得缓存域名服务器在随后接收到终端的域名解析请求后,向终端返回第二域名解析结果,而第二域名解析结果对应的内容服务器工作状态正常,终端可以向工作状态正常的内容服务器请求内容。The method for updating the domain name system cache provided by the embodiment of the present invention can be applied in the scenario where the content server corresponding to the first domain name resolution result fails or the load exceeds the threshold. message, so that the caching domain name server deletes the first domain name resolution result cached by itself as the second domain name resolution result or deletes the cached first domain name resolution result, so as to avoid returning the wrong first domain name resolution result to the terminal. The embodiment of the present invention can enable the caching domain name server to return the second domain name resolution result to the terminal after receiving the domain name resolution request from the terminal, and the content server corresponding to the second domain name resolution result is in normal working state, and the terminal can send a request to the normal working state A content server requests content.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the prior art and the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例一提供的更新域名系统缓存的方法的流程图;FIG. 1 is a flowchart of a method for updating a domain name system cache provided by Embodiment 1 of the present invention;
图2是本发明实施例一中授权域名服务器向请求解析的域名对应的缓存域名服务器发送域名解析更新消息的方法流程图;2 is a flow chart of a method for an authorized domain name server to send a domain name resolution update message to a caching domain name server corresponding to a domain name requesting resolution in Embodiment 1 of the present invention;
图3是本发明实施例二提供的更新域名系统缓存的方法的流程图;FIG. 3 is a flowchart of a method for updating a domain name system cache provided by Embodiment 2 of the present invention;
图4是本发明实施例三提供的更新域名系统缓存的方法的流程图;FIG. 4 is a flowchart of a method for updating a domain name system cache provided by Embodiment 3 of the present invention;
图5是本发明实施例三中授权域名服务器在执行向缓存域名服务器发送域名解析结果删除消息的方法流程图;FIG. 5 is a flow chart of a method for sending a domain name resolution result deletion message to a caching domain name server by an authorized domain name server in Embodiment 3 of the present invention;
图6是本发明实施例四提供的更新域名系统缓存的方法流程图;FIG. 6 is a flowchart of a method for updating domain name system cache provided by Embodiment 4 of the present invention;
图7是本发明实施例五提供的更新域名系统缓存的方法的流程图;FIG. 7 is a flow chart of a method for updating a domain name system cache provided by Embodiment 5 of the present invention;
图8是本发明实施例五中缓存域名服务器将自身缓存中的第一域名解析结果更新为第二域名解析结果的流程图;FIG. 8 is a flow chart of updating the first domain name resolution result in its own cache to the second domain name resolution result by the caching domain name server in Embodiment 5 of the present invention;
图9是本发明实施例六提供的更新域名系统缓存的方法的流程图;FIG. 9 is a flowchart of a method for updating a domain name system cache provided by Embodiment 6 of the present invention;
图10是本发明实施例六中缓存域名服务器删除自身缓存中与请求解析的域名对应的第一域名解析结果的方法流程图;10 is a flow chart of a method for caching a domain name server to delete the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache in Embodiment 6 of the present invention;
图11是本发明实施例七提供的更新域名系统缓存的方法的应用场景图;FIG. 11 is an application scenario diagram of the method for updating the domain name system cache provided by Embodiment 7 of the present invention;
图12是本发明实施例八提供的授权域名服务器的结构示意图;FIG. 12 is a schematic structural diagram of an authorized domain name server provided in Embodiment 8 of the present invention;
图13是本发明实施例九提供的授权域名服务器的结构示意图;FIG. 13 is a schematic structural diagram of an authorized domain name server provided in Embodiment 9 of the present invention;
图14是本发明实施例九提供的授权域名服务器中更新消息发送单元的结构示意图;FIG. 14 is a schematic structural diagram of an update message sending unit in an authorized domain name server provided in Embodiment 9 of the present invention;
图15是本发明实施例十提供的授权域名服务器的结构示意图;FIG. 15 is a schematic structural diagram of an authorized domain name server provided in Embodiment 10 of the present invention;
图16是本发明实施例十提供的授权域名服务器中删除消息发送单元的结构示意图;FIG. 16 is a schematic structural diagram of the delete message sending unit in the authorized domain name server provided by Embodiment 10 of the present invention;
图17是本发明实施例十一提供的授权域名服务器的结构示意图;FIG. 17 is a schematic structural diagram of an authorized domain name server provided by Embodiment 11 of the present invention;
图18是本发明实施例十二提供的缓存域名服务器的结构示意图;FIG. 18 is a schematic structural diagram of a caching domain name server provided by Embodiment 12 of the present invention;
图19是本发明实施例十二提供的缓存域名服务器中第二更新单元的结构示意图;FIG. 19 is a schematic structural diagram of a second update unit in the caching domain name server provided by Embodiment 12 of the present invention;
图20是本发明实施例十三提供的缓存域名服务器的结构示意图;FIG. 20 is a schematic structural diagram of a caching domain name server provided by Embodiment 13 of the present invention;
图21是本发明实施例十三提供的缓存域名服务器中删除执行单元的结构示意图。FIG. 21 is a schematic structural diagram of a deletion execution unit in a caching domain name server provided by Embodiment 13 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明提供了一种更新域名系统缓存的方法、授权域名服务器和缓存域名服务器。为了更好的理解本发明的技术方案,下面结合附图对本发明提供的实施例进行详细地描述。The invention provides a method for updating the domain name system cache, an authorized domain name server and a cache domain name server. In order to better understand the technical solutions of the present invention, the embodiments provided by the present invention will be described in detail below in conjunction with the accompanying drawings.
参见图1,图1是本发明实施例一提供的更新域名系统缓存的方法流程图。Referring to FIG. 1 , FIG. 1 is a flowchart of a method for updating a domain name system cache provided by Embodiment 1 of the present invention.
本发明实施例一提供的更新域名系统缓存的方法包括:The method for updating the domain name system cache provided by Embodiment 1 of the present invention includes:
A1、在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,获取请求解析的域名的第二域名解析结果,该请求解析的域名和第一域名解析结果对应,第二域名解析结果对应的内容服务器的工作状态正常。A1. When it is detected that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds the threshold value, obtain the second domain name resolution result of the domain name requested for resolution, the domain name resolved by the request and the first domain name resolution The result corresponds to that the working status of the content server corresponding to the second domain name resolution result is normal.
具体的,授权域名服务器中缓存有第一域名解析结果,授权域名服务器在检测到第一域名解析结果对应的内容服务器发生故障、或负荷超过门限值时,获取请求解析的域名的第二域名解析结果。Specifically, the first domain name resolution result is cached in the authorized domain name server, and when the authorized domain name server detects that the content server corresponding to the first domain name resolution result fails or the load exceeds a threshold value, it obtains the second domain name of the domain name requested for resolution parse the result.
其中,请求解析的域名和第一域名解析结果对应,第二域名解析结果对应的内容服务器的工作状态正常。其中,内容服务器的工作状态正常可以理解为内容服务器当前没有发生故障,可以正常的为用户终端提供内容服务。另外,内容服务器的负荷的门限可以根据实际情况灵活确定。Wherein, the domain name requested to be resolved corresponds to the first domain name resolution result, and the working state of the content server corresponding to the second domain name resolution result is normal. Wherein, the normal working status of the content server can be understood as that the content server is not currently faulty and can normally provide content services for the user terminal. In addition, the threshold of the load of the content server can be flexibly determined according to the actual situation.
A2、向请求解析的域名对应的缓存域名服务器发送域名解析更新消息,域名解析更新消息中携带上述请求解析的域名,该域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。A2. Send a domain name resolution update message to the caching domain name server corresponding to the requested domain name resolution. The domain name resolution update message carries the above-mentioned domain name resolution request. The domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result It is the resolution result of the second domain name.
具体的,授权域名服务器在获取第二域名解析结果之后,向请求解析的域名对应的缓存域名服务器发送域名解析更新消息。Specifically, after obtaining the second domain name resolution result, the authorized domain name server sends a domain name resolution update message to the caching domain name server corresponding to the domain name requested for resolution.
其中,授权域名服务器可以根据请求解析的域名与缓存域名服务器的对应关系获取对应的缓存域名服务器的地址。请求解析的域名对应的缓存域名服务器均针对该域名向授权域名服务器发送过了域名解析请求。Wherein, the authoritative domain name server can obtain the address of the corresponding cache domain name server according to the corresponding relationship between the domain name requested to be resolved and the cache domain name server. The caching domain name server corresponding to the domain name requested to be resolved has sent a domain name resolution request to the authorized domain name server for the domain name.
需要说明的是,请求解析的域名可以对应多个缓存域名服务器,即对应同一请求解析的域名的多个缓存域名服务器均可以接收到域名解析更新消息。It should be noted that the domain name requested for resolution may correspond to multiple cache domain name servers, that is, multiple cache domain name servers corresponding to the same domain name requested for resolution may receive domain name resolution update messages.
缓存域名服务器将自身缓存中的第一域名解析结果更新为第二域名解析结果,可以在后续接收到域名解析请求后,将缓存的第二域名解析结果发送给终端,从而使得终端向第二域名解析结果对应的内容服务器请求内容。The caching domain name server updates the first domain name resolution result in its own cache to the second domain name resolution result, and can send the cached second domain name resolution result to the terminal after receiving a domain name resolution request, so that the terminal sends the second domain name resolution result to the terminal. The content server request content corresponding to the analysis result.
在本发明实施例提供的更新域名系统缓存的方法可以应用在第一域名解析结果对应的内容服务器发生故障或负荷超过门限值的场景中,本发明实施例通过向缓存域名服务器发送域名解析更新消息,使得缓存域名服务器删除自身缓存的第一域名解析结果为第二域名解析结果,避免向终端返回错误的第一域名解析结果。缓存域名服务器在随后接收到终端的域名解析请求后,向终端返回第二域名解析结果,而第二域名解析结果对应的内容服务器工作状态正常,终端可以向工作状态正常的内容服务器请求内容。The method for updating the domain name system cache provided by the embodiment of the present invention can be applied in the scenario where the content server corresponding to the first domain name resolution result fails or the load exceeds the threshold. message, so that the caching domain name server deletes the first domain name resolution result cached by itself as the second domain name resolution result, so as to avoid returning the wrong first domain name resolution result to the terminal. The caching domain name server then returns the second domain name resolution result to the terminal after receiving the domain name resolution request from the terminal, and the content server corresponding to the second domain name resolution result is in normal working state, and the terminal can request content from the content server in normal working state.
参见图2,本发明实施例一中授权域名服务器在执行向请求解析的域名对应的缓存域名服务器发送域名解析更新消息的步骤具体可以包括:Referring to FIG. 2 , in Embodiment 1 of the present invention, the step in which the authorized domain name server sends a domain name resolution update message to the cache domain name server corresponding to the domain name requested for resolution may specifically include:
B1、根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的缓存域名服务器的地址。B1. Find the address of the cached domain name server corresponding to the domain name requested to be resolved in its own cache according to the pre-saved correspondence.
具体的,授权域名服务器根据预先保存的对应关系,即请求解析的域名和缓存域名服务器之间的对应关系,在自身缓存中查找与请求解析的域名对应的缓存域名服务器的地址,获取该缓存域名服务器的IP地址。Specifically, the authoritative domain name server looks up the address of the cached domain name server corresponding to the domain name requested to be resolved in its own cache according to the pre-saved correspondence, that is, the correspondence between the domain name requested for resolution and the cached domain name server, and obtains the cached domain name The IP address of the server.
B2、向查找到的缓存域名服务器发送域名解析更新消息。B2. Send a domain name resolution update message to the found caching domain name server.
具体的,授权域名服务器根据缓存域名服务器的IP地址向查找到的缓存域名服务器发送域名解析更新消息,以便于接收到更新消息的缓存域名服务器删除自身缓存的域名解析结果。Specifically, the authoritative domain name server sends a domain name resolution update message to the found cache domain name server according to the IP address of the cache domain name server, so that the cache domain name server that receives the update message deletes the domain name resolution result cached by itself.
进一步的,本发明实施例提供的域名解析更新消息中还包含缓存更新指示信息和第二域名解析结果。缓存更新指示信息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。缓存域名服务器在接收到域名解析更新消息后,根据该更新指示信息来删除自身缓存的第一域名解析结果。Further, the domain name resolution update message provided by the embodiment of the present invention also includes cache update indication information and the second domain name resolution result. The cache update instruction information is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result. After receiving the domain name resolution update message, the caching domain name server deletes the first domain name resolution result cached by itself according to the update indication information.
参见图3,图3是本发明实施例二提供的更新域名系统缓存的方法流程图。Referring to FIG. 3 , FIG. 3 is a flowchart of a method for updating a domain name system cache provided by Embodiment 2 of the present invention.
在本发明实施例中,终端向缓存域名服务器发送域名解析请求,该域名解析请求中携带终端请求解析的域名。缓存域名服务器向授权域名服务器发送域名解析请求。In the embodiment of the present invention, the terminal sends a domain name resolution request to the caching domain name server, and the domain name resolution request carries the domain name requested by the terminal to be resolved. The caching domain name server sends a domain name resolution request to the authoritative domain name server.
本发明实施例二提供的更新域名系统缓存的方法可以包括:The method for updating the domain name system cache provided by Embodiment 2 of the present invention may include:
C1、接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名。C1. Receive the domain name resolution request sent by the caching domain name server, the domain name resolution request includes the domain name to be resolved.
具体的,授权域名服务器接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名。Specifically, the authorized domain name server receives the domain name resolution request sent by the caching domain name server, and the domain name resolution request includes the domain name requested to be resolved.
C2、根据接收到的域名解析请求对请求解析的域名进行解析,获得第一域名解析结果。C2. Analyzing the requested domain name according to the received domain name resolution request, and obtaining a first domain name resolution result.
具体的,授权域名服务器根据接收到的域名解析请求对请求解析的域名进行解析,获得第一域名解析结果。其中,第一域名解析结果中包括该域名对应的内容服务器的地址以及该第一域名解析结果的生存时间。在本发明实施例中,第一域名解析结果的生存时间称为第一生存时间。Specifically, the authorized domain name server resolves the requested domain name according to the received domain name resolution request, and obtains the first domain name resolution result. Wherein, the first domain name resolution result includes the address of the content server corresponding to the domain name and the survival time of the first domain name resolution result. In the embodiment of the present invention, the survival time of the first domain name resolution result is referred to as the first survival time.
C3、缓存第一域名解析结果和请求解析的域名之间的对应关系,以及请求解析的域名和缓存域名服务器之间的对应关系,向该缓存域名服务器发送域名解析响应,该域名解析响应中包括第一域名解析结果和请求解析的域名。C3. Cache the corresponding relationship between the first domain name resolution result and the domain name requested for resolution, and the corresponding relationship between the domain name requested for resolution and the cached domain name server, and send a domain name resolution response to the cached domain name server. The domain name resolution response includes The first domain name resolution result and the domain name requested to be resolved.
具体的,授权域名服务器将第一域名解析结果和请求解析的域名之间的对应关系、请求解析的域名和缓存域名服务器之间的对应关系进行缓存。其中,授权域名服务器缓存上述对应关系的时间可以根据需要来灵活确定,例如以秒计或小时来计算。Specifically, the authorizing domain name server caches the correspondence between the first domain name resolution result and the domain name requested for resolution, and the correspondence between the domain name requested for resolution and the caching domain name server. Wherein, the time for the authorized domain name server to cache the above correspondence can be flexibly determined according to needs, for example, it is calculated in seconds or hours.
授权域名服务器还根据域名解析请求向缓存域名服务器发送域名解析响应,域名解析响应中包括该第一域名解析结果和请求解析的域名。The authorized domain name server also sends a domain name resolution response to the caching domain name server according to the domain name resolution request, and the domain name resolution response includes the first domain name resolution result and the domain name requested to be resolved.
其中,缓存域名服务器接收到域名解析响应后,向对应的终端发送第一域名解析结果,使终端根据可以根据第一域名解析结果访问对应的内容服务器。Wherein, after receiving the domain name resolution response, the caching domain name server sends the first domain name resolution result to the corresponding terminal, so that the terminal can access the corresponding content server according to the first domain name resolution result.
C4、在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值,获取请求解析的域名的第二域名解析结果,该请求解析的域名和第一域名解析结果对应,该第二域名解析结果对应的内容服务器的工作状态正常。C4. After detecting that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds the threshold value, obtain the second domain name resolution result of the domain name requested for resolution, the domain name resolved by the request and the first domain name resolution result Correspondingly, the working state of the content server corresponding to the second domain name resolution result is normal.
在本发明实施例中,授权域名服务器在向对应的缓存域名服务器发送域名解析响应后,若随后检测到第一域名解析结果对应的内容服务器发生故障或负荷超过门限值,则授权域名服务器对请求解析的域名再次进行域名解析,获得请求解析的域名的第二域名解析结果,第二域名解析结果对应的内容服务器当前的工作状态正常。In the embodiment of the present invention, after the authorized domain name server sends the domain name resolution response to the corresponding caching domain name server, if it subsequently detects that the content server corresponding to the first domain name resolution result fails or the load exceeds the threshold value, the authorized domain name server The domain name requested to be resolved is analyzed again to obtain a second domain name resolution result of the domain name requested to be resolved, and the current working state of the content server corresponding to the second domain name resolution result is normal.
C5、向请求解析的域名对应的缓存域名服务器发送域名解析更新消息,域名解析更新消息中携带上述请求解析的域名,该域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。C5. Send a domain name resolution update message to the caching domain name server corresponding to the requested domain name resolution. The domain name resolution update message carries the above-mentioned domain name resolution request. The domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result It is the resolution result of the second domain name.
具体的,授权域名服务器在获取第二域名解析结果之后,向请求解析的域名对应的缓存域名服务器发送域名解析更新消息。Specifically, after obtaining the second domain name resolution result, the authorized domain name server sends a domain name resolution update message to the caching domain name server corresponding to the domain name requested for resolution.
其中,授权域名服务器可以根据请求解析的域名与缓存域名服务器的对应关系获取对应的缓存域名服务器的地址。请求解析的域名对应的缓存域名服务器均针对该域名向授权域名服务器发送过了域名解析请求。需要说明的是,请求解析的域名可以对应多个缓存域名服务器,即对应同一请求解析的域名的多个缓存域名服务器均可以接收到域名解析更新消息。Wherein, the authoritative domain name server can obtain the address of the corresponding cache domain name server according to the corresponding relationship between the domain name requested to be resolved and the cache domain name server. The caching domain name server corresponding to the domain name requested to be resolved has sent a domain name resolution request to the authorized domain name server for the domain name. It should be noted that the domain name requested for resolution may correspond to multiple cache domain name servers, that is, multiple cache domain name servers corresponding to the same domain name requested for resolution may receive domain name resolution update messages.
在本发明实施例中,授权域名服务器发送的域名解析更新消息中携带请求解析的域名,域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。In the embodiment of the present invention, the domain name resolution update message sent by the authorized domain name server carries the domain name to be resolved, and the domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result.
缓存域名服务器将自身缓存中的第一域名解析结果更新为第二域名解析结果,可以在后续接收到域名解析请求后,将缓存的第二域名解析结果发送给终端,从而使得终端向第二域名解析结果对应的内容服务器请求内容。The caching domain name server updates the first domain name resolution result in its own cache to the second domain name resolution result, and can send the cached second domain name resolution result to the terminal after receiving a domain name resolution request, so that the terminal sends the second domain name resolution result to the terminal. The content server request content corresponding to the analysis result.
进一步的,本发明实施例二还可以在第一域名解析结果的第一生存时间超时后,自动删除自身缓存中的第一域名解析结果和缓存域名服务器的地址,不仅可以节省缓存空间,还可以提高授权域名服务器的性能。Furthermore, Embodiment 2 of the present invention can also automatically delete the first domain name resolution result and the address of the cached domain name server in its own cache after the first lifetime of the first domain name resolution result expires, which can not only save cache space, but also Improved performance of authoritative nameservers.
在本发明实施例二提供的更新域名系统缓存的方法还可以执行以下步骤:The method for updating the domain name system cache provided in Embodiment 2 of the present invention may also perform the following steps:
C6、将自身缓存中的第一域名解析结果更新为第二域名解析结果。C6. Update the first domain name resolution result in its own cache to the second domain name resolution result.
具体的,授权域名服务器还可以在获取与请求解析的域名对应的第二域名解析结果之后,将自身缓存中的第一域名解析结果更新为第二域名解析结果。Specifically, the authorized domain name server may also update the first domain name resolution result in its own cache with the second domain name resolution result after obtaining the second domain name resolution result corresponding to the domain name requested for resolution.
需要说明的是,上述步骤C5和步骤C6之间的执行顺序是时隙无关的,其先后执行顺序不构成对本发明实施例的限制。It should be noted that the execution sequence between the above step C5 and step C6 is irrelevant to the time slot, and the execution sequence does not constitute a limitation to the embodiment of the present invention.
本发明实施例一、二提供的更新域名系统缓存的方法中,授权域名服务器检测到域名解析结果对应的内容服务器发生故障可以采用如下方式:In the method for updating the domain name system cache provided by Embodiments 1 and 2 of the present invention, the authorized domain name server detects that the content server corresponding to the domain name resolution result fails in the following manner:
1)接收到域名解析结果对应的内容服务器发送的故障上报消息,则判断内容服务器发生故障。1) After receiving a fault report message sent by the content server corresponding to the domain name resolution result, it is determined that the content server is faulty.
具体的,授权域名服务器在接收到第一域名解析结果对应的内容服务器发送的故障上报消息,则判断该内容服务器发生故障。Specifically, after receiving the failure reporting message sent by the content server corresponding to the first domain name resolution result, the authorized domain name server judges that the content server has failed.
2)在预置时间内未接收到域名解析结果对应的内容服务器发送的状态上报消息,判断内容服务器发生故障。2) If the status report message sent by the content server corresponding to the domain name resolution result is not received within the preset time, it is determined that the content server is faulty.
具体的,授权域名服务器在预置时间内未接收到第一域名解析结果对应的内容服务器发送的状态上报消息,则判断内容服务器发生故障。其中,预置时间可以根据具体的内容服务器来确定。Specifically, if the authorized domain name server does not receive the status report message sent by the content server corresponding to the first domain name resolution result within a preset time, it is determined that the content server is faulty. Wherein, the preset time may be determined according to a specific content server.
需要指出的是,以上仅给出两种可能的状态获取方式,授权域名服务器获知内容服务器的是否发生故障还可以有其他的实现方式。It should be pointed out that the above only gives two possible ways to obtain the status, and there may be other implementation ways for the authorized domain name server to know whether the content server is faulty.
参见图4,图4是本发明实施例三提供的更新域名系统缓存的方法的流程图。Referring to FIG. 4 , FIG. 4 is a flowchart of a method for updating a domain name system cache provided by Embodiment 3 of the present invention.
本发明实施例三提供的更新域名系统缓存的方法主要包括:The method for updating the domain name system cache provided by Embodiment 3 of the present invention mainly includes:
D1、在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,生成域名解析结果删除消息,该域名解析结果删除消息用于删除缓存域名服务器中缓存的第一域名解析结果,该域名解析结果删除消息中携带请求解析的域名,第一域名解析结果和请求解析的域名对应。D1. When it is detected that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds the threshold value, a domain name resolution result deletion message is generated, and the domain name resolution result deletion message is used to delete the cached domain name server. The first domain name analysis result, the domain name resolution requesting domain name is carried in the domain name resolution result deletion message, and the first domain name resolution result corresponds to the domain name resolution requesting.
具体的,授权域名服务器缓存有第一域名解析结果,授权域名服务器在检测到第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,则生成域名解析结果删除消息,域名解析结果删除消息用于删除缓存域名服务器中缓存的第一域名解析结果。其中,域名解析结果删除消息中携带请求解析的域名,缓存的第一域名解析结果和请求解析的域名之间存在对应关系。Specifically, the authorized domain name server caches the first domain name resolution result, and when the authorized domain name server detects that the content server corresponding to the first domain name resolution result fails or the load exceeds a threshold value, it generates a domain name resolution result deletion message, and the domain name resolution result The deletion message is used to delete the first domain name resolution result cached in the caching domain name server. Wherein, the domain name resolution request is carried in the domain name resolution result deletion message, and there is a corresponding relationship between the cached first domain name resolution result and the domain name resolution request.
D2、向缓存域名服务器发送域名解析结果删除消息,以便于该缓存域名服务器删除自身缓存中的第一域名解析结果,缓存域名服务器和请求解析的域名对应。D2. Send a domain name resolution result deletion message to the caching domain name server, so that the caching domain name server deletes the first domain name resolution result in its own cache, and the caching domain name server corresponds to the domain name requested to be resolved.
具体的,授权域名服务器在生成域名解析结果删除消息后,向请求解析的域名对应的缓存域名服务器发送该消息。需要指出的是,请求解析的域名可以对应多个缓存域名服务器。Specifically, after generating the domain name resolution result deletion message, the authorized domain name server sends the message to the caching domain name server corresponding to the domain name requested to be resolved. It should be pointed out that the domain name requested for resolution may correspond to multiple caching domain name servers.
缓存域名服务器在接收到域名解析结果删除消息后,将删除自身缓存中的与请求解析的域名对应的第一域名解析结果。缓存域名服务器在删除自身缓存中的第一域名解析结果之后,可以在后续接收到域名解析请求后,重新向授权域名服务器请求域名解析结果,进而获得正确的域名解析结果。After receiving the domain name resolution result deletion message, the caching domain name server will delete the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache. After the caching domain name server deletes the first domain name resolution result in its own cache, it can re-request the domain name resolution result from the authorized domain name server after receiving a domain name resolution request, so as to obtain the correct domain name resolution result.
在本发明实施例提供的更新域名系统缓存的方法可以应用在第一域名解析结果对应的内容服务器发生故障或负荷高于预设门限的场景中,本发明实施例通过向缓存域名服务器发送域名解析结果删除消息,使得缓存域名服务器删除缓存的第一域名解析结果,避免向终端返回错误的第一域名解析结果。缓存域名服务器在随后接收到终端的域名解析请求后,重新向授权域名服务器请求正确的域名解析结果,将正确的域名解析结果发送给缓存域名服务器,进而使得终端可以向正确的内容服务器请求内容。The method for updating the domain name system cache provided by the embodiment of the present invention can be applied in the scenario where the content server corresponding to the first domain name resolution result fails or the load is higher than the preset threshold. The result deletion message enables the caching domain name server to delete the cached first domain name resolution result, so as to avoid returning a wrong first domain name resolution result to the terminal. After receiving the domain name resolution request from the terminal, the caching domain name server re-requests the correct domain name resolution result from the authorized domain name server, and sends the correct domain name resolution result to the caching domain name server, so that the terminal can request content from the correct content server.
参见图5,本发明实施例三中授权域名服务器在执行向缓存域名服务器发送域名解析结果删除消息的步骤(步骤D2)具体可以包括:Referring to FIG. 5 , the step (step D2) of the authorized domain name server in Embodiment 3 of the present invention to send a domain name resolution result deletion message to the caching domain name server may specifically include:
E1、根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的缓存域名服务器的地址。E1. According to the pre-saved correspondence, look up the address of the caching domain name server corresponding to the domain name requested to be resolved in its own cache.
具体的,授权域名服务器根据预先保存的对应关系,即第一域名解析结果和请求解析的域名之间的对应关系、请求解析的域名和缓存域名服务器之间的对应关系,在自身缓存中查找与第一域名解析结果对应的缓存域名服务器的地址,获取该缓存域名服务器的IP地址。Specifically, the authoritative domain name server searches its own cache for the corresponding relationship according to the pre-saved correspondence, that is, the correspondence between the first domain name resolution result and the domain name requested for resolution, and the correspondence between the domain name requested for resolution and the caching domain name server. The address of the cached domain name server corresponding to the first domain name resolution result is obtained to obtain the IP address of the cached domain name server.
E2、向查找到的缓存域名服务器发送域名解析结果删除消息。E2. Send a domain name resolution result deletion message to the found caching domain name server.
具体的,授权域名服务器根据缓存域名服务器的IP地址向查找到的缓存域名服务器发送域名结果删除消息,以便于接收到该删除消息的缓存域名服务器删除自身缓存的与请求解析的域名对应的第一域名解析结果。Specifically, the authoritative domain name server sends a domain name result deletion message to the cached domain name server found based on the IP address of the cached domain name server, so that the cached domain name server that receives the deletion message deletes the first cached domain name corresponding to the requested domain name. Domain name resolution result.
参见图6,图6是本发明实施例四提供的更新域名系统缓存的方法流程图。Referring to FIG. 6 , FIG. 6 is a flowchart of a method for updating a domain name system cache provided by Embodiment 4 of the present invention.
在本发明实施例中,终端向缓存域名服务器发送域名解析请求,该域名解析请求中携带请求解析的域名。缓存域名服务器向授权域名服务器发送域名解析请求。In the embodiment of the present invention, the terminal sends a domain name resolution request to the caching domain name server, and the domain name resolution request carries the domain name requested to be resolved. The caching domain name server sends a domain name resolution request to the authoritative domain name server.
本发明实施例四提供的更新域名系统缓存的方法可以包括:The method for updating the domain name system cache provided by Embodiment 4 of the present invention may include:
F1、接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名。F1. Receive the domain name resolution request sent by the caching domain name server, the domain name resolution request includes the domain name requested to be resolved.
具体的,授权域名服务器接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名。Specifically, the authorized domain name server receives the domain name resolution request sent by the caching domain name server, and the domain name resolution request includes the domain name requested to be resolved.
F2、根据该域名解析请求对请求解析的域名进行解析,获得第一域名解析结果。F2. Analyzing the requested domain name according to the domain name resolution request to obtain a first domain name resolution result.
具体的,授权域名服务器根据接收到的域名解析请求对请求解析的域名进行解析,获得第一域名解析结果。其中,第一域名解析结果中包括该域名对应的内容服务器的地址以及该第一域名解析结果的生存时间。在本发明实施例中,第一域名解析结果的生存时间称为第一生存时间。Specifically, the authorized domain name server resolves the requested domain name according to the received domain name resolution request, and obtains the first domain name resolution result. Wherein, the first domain name resolution result includes the address of the content server corresponding to the domain name and the survival time of the first domain name resolution result. In the embodiment of the present invention, the survival time of the first domain name resolution result is referred to as the first survival time.
F3、缓存该第一域名解析结果和请求解析的域名之间的对应关系、以及请求解析的域名和该缓存域名服务器之间的对应关系,向该缓存域名服务器发送域名解析响应,该域名解析响应中包括第一域名解析结果和请求解析的域名。F3. Cache the corresponding relationship between the first domain name resolution result and the domain name requested for resolution, and the corresponding relationship between the domain name requested for resolution and the cached domain name server, and send a domain name resolution response to the cached domain name server, and the domain name resolution response includes the first domain name resolution result and the domain name requested to be resolved.
具体的,授权域名服务器将第一域名解析结果和请求解析的域名之间的对应关系、请求解析的域名和发送域名解析请求的缓存域名服务器之间的对应关系进行缓存。其中,授权域名服务器缓存上述对应关系的时间可以根据需要来灵活确定,例如以秒计或小时来计算。本发明实施例通过缓存上述对应关系,可以在检测到自身缓存中的域名解析结果对应的内容服务器发生故障时,根据缓存的对应关系获取对应的缓存域名服务器的地址,以便于更新该缓存域名服务器中缓存的域名解析结果。Specifically, the authorizing domain name server caches the correspondence between the first domain name resolution result and the domain name requested for resolution, and the correspondence between the domain name requested for resolution and the caching domain name server sending the domain name resolution request. Wherein, the time for the authorized domain name server to cache the above correspondence can be flexibly determined according to needs, for example, it is calculated in seconds or hours. By caching the above-mentioned corresponding relationship, the embodiment of the present invention can obtain the address of the corresponding cached domain name server according to the cached corresponding relationship when it is detected that the content server corresponding to the domain name resolution result in its own cache fails, so as to update the cached domain name server Domain name resolution results cached in .
授权域名服务器还根据域名解析请求向缓存域名服务器发送域名解析响应,域名解析响应中包括该第一域名解析结果和请求解析的域名。The authorized domain name server also sends a domain name resolution response to the caching domain name server according to the domain name resolution request, and the domain name resolution response includes the first domain name resolution result and the domain name requested to be resolved.
其中,缓存域名服务器接收到域名解析响应后,向对应的终端发送第一域名解析结果,终端根据第一域名解析结果访问对应的内容服务器。Wherein, after receiving the domain name resolution response, the caching domain name server sends the first domain name resolution result to the corresponding terminal, and the terminal accesses the corresponding content server according to the first domain name resolution result.
F4、在检测到第一域名解析结果对应的内容服务器发生故障或负荷超过门限值,生成域名解析结果删除消息,该域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,域名解析结果删除消息中携带请求解析的域名,该第一域名解析结果和请求解析的域名对应。F4. When it is detected that the content server corresponding to the first domain name resolution result fails or the load exceeds the threshold value, a domain name resolution result deletion message is generated, and the domain name resolution result deletion message is used to delete the first domain name resolution result carried in the caching domain name server , the domain name resolution result deletion message carries the domain name that is requested to be resolved, and the first domain name resolution result corresponds to the domain name that is requested to be resolved.
其中,域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果。域名解析结果删除消息中携带请求解析的域名,缓存的第一域名解析结果和请求解析的域名之间存在对应关系。Wherein, the domain name resolution result deletion message is used to delete the first domain name resolution result carried in the cached domain name server. The domain name resolution result deletion message carries the domain name that is requested to be resolved, and there is a corresponding relationship between the cached first domain name resolution result and the domain name that is requested to be resolved.
F5、向该缓存域名服务器发送域名解析结果删除消息,以便于该缓存域名服务器删除自身缓存中的第一域名解析结果,该缓存域名服务器和请求解析的域名对应。F5. Send a domain name resolution result deletion message to the caching domain name server, so that the caching domain name server deletes the first domain name resolution result in its own cache, and the caching domain name server corresponds to the domain name requested to be resolved.
具体的,授权域名服务器可以生成域名解析结果删除消息后,向请求解析的域名对应的缓存域名服务器发送该消息。需要指出的是,请求解析的域名可以对应多个缓存域名服务器,授权域名服务器可以向多个缓存域名服务器发送域名解析结果删除消息,进而使得多个缓存域名服务器删除自身缓存中的第一域名解析结果。Specifically, the authorized domain name server may generate a domain name resolution result deletion message, and then send the message to the caching domain name server corresponding to the domain name requested to be resolved. It should be pointed out that the domain name requested for resolution can correspond to multiple caching domain name servers, and the authoritative domain name server can send domain name resolution result deletion messages to multiple caching domain name servers, thereby causing multiple caching domain name servers to delete the first domain name resolution domain name server in their own caches. result.
缓存域名服务器在接收到域名解析结果删除消息后,将删除自身缓存中的与请求解析的域名对应的第一域名解析结果。缓存域名服务器在删除自身缓存中的第一域名解析结果之后,可以在后续接收到终端针对该请求解析的域名解析请求后,重新向授权域名服务器请求域名解析结果,进而获得正确的域名解析结果。After receiving the domain name resolution result deletion message, the caching domain name server will delete the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache. After the caching domain name server deletes the first domain name resolution result in its own cache, it can re-request the domain name resolution result from the authorized domain name server after receiving a domain name resolution request from the terminal for resolution of the request, so as to obtain the correct domain name resolution result.
本发明实施例三、四提供的更新域名系统缓存的方法中,授权域名服务器检测到域名解析结果对应的内容服务器发生故障可以采用如下方式:In the method for updating the domain name system cache provided by Embodiments 3 and 4 of the present invention, the authorized domain name server detects that the content server corresponding to the domain name resolution result fails in the following manner:
1)接收到域名解析结果对应的内容服务器发送的故障上报消息,则判断内容服务器发生故障。1) After receiving a fault report message sent by the content server corresponding to the domain name resolution result, it is determined that the content server is faulty.
具体的,授权域名服务器在接收到第一域名解析结果对应的内容服务器发送的故障上报消息,则判断该内容服务器发生故障。Specifically, after receiving the failure reporting message sent by the content server corresponding to the first domain name resolution result, the authorized domain name server judges that the content server has failed.
2)在预置时间内未接收到域名解析结果对应的内容服务器发送的状态上报消息,判断内容服务器发生故障。2) If the status report message sent by the content server corresponding to the domain name resolution result is not received within the preset time, it is determined that the content server is faulty.
具体的,授权域名服务器在预置时间内未接收到第一域名解析结果对应的内容服务器发送的状态上报消息,则判断内容服务器发生故障。其中,预置时间可以根据具体的内容服务器来确定。Specifically, if the authorized domain name server does not receive the status report message sent by the content server corresponding to the first domain name resolution result within a preset time, it is determined that the content server is faulty. Wherein, the preset time may be determined according to a specific content server.
需要指出的是,以上仅给出两种可能的获取方式,授权域名服务器获知内容服务器的是否发生故障还可以有其他的实现方式。It should be pointed out that the above only gives two possible acquisition methods, and there may be other implementation methods for the authorized domain name server to know whether the content server is faulty.
以上从授权域名服务器一侧描述了本发明实施例提供的更新系统缓存的方法,下面从域名缓存服务器一侧来描述本发明实施例提供的更新系统缓存的方法。The method for updating the system cache provided by the embodiment of the present invention is described above from the side of the authoritative domain name server, and the method for updating the system cache provided by the embodiment of the present invention is described below from the side of the domain name cache server.
参见图7,图7是本发明实施例五提供的更新域名系统缓存的方法的流程图。Referring to FIG. 7 , FIG. 7 is a flowchart of a method for updating a domain name system cache provided by Embodiment 5 of the present invention.
在本发明实施例五中,缓存域名服务器的自身缓存中包括请求解析的域名以及该域名对应的第一域名解析结果。授权域名服务器在需要删除自身缓存域名服务中缓存的域名解析结果时,例如检测到第一域名解析结果对应的内容服务器发生故障或负荷高于预设门限,则向缓存域名服务器发送域名解析更新消息。本发明实施例五提供的更新域名系统缓存的方法可以包括:In Embodiment 5 of the present invention, the cache of the caching domain name server includes the domain name requested for resolution and the first domain name resolution result corresponding to the domain name. When the authoritative domain name server needs to delete the domain name resolution results cached in its own caching domain name service, for example, if it detects that the content server corresponding to the first domain name resolution result is faulty or the load is higher than the preset threshold, it will send a domain name resolution update message to the caching domain name server . The method for updating the domain name system cache provided by Embodiment 5 of the present invention may include:
G1、接收授权域名服务器发送的域名解析更新消息,该域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果,该域名解析更新消息中携带请求解析的域名。G1. Receive the domain name resolution update message sent by the authorized domain name server. The domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result. The domain name resolution update message carries the requested resolution domain name.
具体的,缓存域名服务器接收授权域名服务器发送的域名解析更新消息,该域名解析更新消息用于指示缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果,域名解析更新消息中携带请求解析的域名。Specifically, the caching domain name server receives the domain name resolution update message sent by the authorized domain name server. The domain name resolution update message is used to instruct the caching domain name server to update the cached first domain name resolution result to the second domain name resolution result. The domain name resolution update message carries The domain name to request resolution.
其中,缓存域名服务器可以在自身缓存中根据该请求解析的域名查找到需要更新的第一域名解析结果。Wherein, the caching domain name server can find the first domain name resolution result that needs to be updated according to the domain name resolved by the request in its own cache.
G2、将自身缓存中第一域名解析结果更新为第二域名解析结果,该第一域名解析结果和请求解析的域名对应。G2. Update the first domain name resolution result in its own cache to the second domain name resolution result, where the first domain name resolution result corresponds to the domain name requested to be resolved.
具体的,缓存域名服务器根据更新指示信息将缓存中与请求解析的域名对应的第一域名解析结果更新为第二域名解析结果。Specifically, the caching domain name server updates the first domain name resolution result in the cache corresponding to the domain name requested to be resolved to the second domain name resolution result according to the update instruction information.
在本发明实施例中,缓存域名服务器通过将自身缓存中与请求解析的域名对应的第一域名解析结果更新为第二域名解析结果,可以在随后接收到域名解析请求后,将更新的域名解析结果,即第二域名解析结果向终端发送。和现有技术相比,本发明实施例通过删除自身缓存中的域名解析结果,可以避免终端向发生故障的内容服务器请求内容,进一步使得终端向当前可用的内容服务器请求内容。In the embodiment of the present invention, the caching domain name server updates the first domain name resolution result corresponding to the requested domain name resolution in its own cache to the second domain name resolution result, and can resolve the updated domain name after receiving the domain name resolution request. The result, that is, the second domain name resolution result is sent to the terminal. Compared with the prior art, the embodiment of the present invention can prevent the terminal from requesting content from the failed content server by deleting the domain name resolution result in its own cache, and further enables the terminal to request content from the currently available content server.
进一步的,缓存域名服务器中缓存的第二域名解析结果中还包括生存时间,第二域名解析结果的生存时间在本发明实施例中称为第二生存时间,则本发明实施例还可以包括:Further, the second domain name resolution result cached in the caching domain name server also includes a survival time, and the survival time of the second domain name resolution result is called the second survival time in the embodiment of the present invention, then the embodiment of the present invention may also include:
G3、在第二生存时间超时后,删除自身缓存中的第二域名解析结果。G3. After the second lifetime expires, delete the second domain name resolution result in its own cache.
本发明实施例通过删除超过生存时间的第二域名解析结果,不仅可以节约缓存域名服务器的缓存资源,还可以使得终端获得较新的域名解析结果。In the embodiment of the present invention, by deleting the second domain name resolution result exceeding the survival time, not only the cache resource of the domain name server can be saved, but also the terminal can obtain a newer domain name resolution result.
参见图8,本发明实施例五中缓存域名服务器将自身缓存中的第一域名解析结果更新为第二域名解析结果的过程(上述步骤G2),具体可以为:Referring to FIG. 8 , the process in which the caching domain name server in Embodiment 5 of the present invention updates the first domain name resolution result in its own cache to the second domain name resolution result (above-mentioned step G2) may specifically be:
H1、根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的第一域名解析结果。H1. Find the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache according to the pre-stored correspondence.
具体的,缓存域名服务器根据预先保存的对应关系,即请求解析的域名和第一域名解析结果之间的对应关系,在自身缓存中查找与请求解析的域名对应的第一域名解析结果。Specifically, the caching domain name server looks up the first domain name resolution result corresponding to the domain name resolution request in its own cache according to the pre-saved correspondence, that is, the correspondence between the domain name requested for resolution and the first domain name resolution result.
其中,缓存域名服务器中预先保存有请求解析的域名和第一域名解析结果之间的对应关系。缓存域名服务器可以在接收到授权域名服务器发送的域名解析响应之后,预先保存域名解析响应中的第一域名解析结果和请求解析的域名之间的对应关系。Wherein, the corresponding relationship between the domain name requested to be resolved and the first domain name resolution result is pre-stored in the caching domain name server. After receiving the domain name resolution response sent by the authoritative domain name server, the caching domain name server may pre-save the correspondence between the first domain name resolution result in the domain name resolution response and the domain name requested to be resolved.
H2、将查找到的第一域名解析结果更新为第二域名解析结果。H2. Update the found first domain name resolution result to the second domain name resolution result.
具体的,缓存域名服务器将查找到的第一域名解析结果更新为第二域名解析结果。Specifically, the caching domain name server updates the found first domain name resolution result to the second domain name resolution result.
参见图9,图9是本发明实施例六提供的更新域名系统缓存的方法的流程图。Referring to FIG. 9 , FIG. 9 is a flowchart of a method for updating a domain name system cache provided by Embodiment 6 of the present invention.
在本发明实施例六中,缓存域名服务器的自身缓存中包括请求解析的域名以及该域名对应的第一域名解析结果。授权域名服务器在需要删除自身缓存域名服务器中缓存的域名解析结果时,例如检测到该第一域名解析结果对应的内容服务器发生故障或负荷高于预设门限,则向缓存域名服务器发送域名解析结果删除消息。本发明实施例六提供的更新域名系统缓存的方法可以包括:In Embodiment 6 of the present invention, the cache of the caching domain name server includes the domain name requested for resolution and the first domain name resolution result corresponding to the domain name. When the authoritative domain name server needs to delete the domain name resolution result cached in its own caching domain name server, for example, if it detects that the content server corresponding to the first domain name resolution result fails or the load is higher than the preset threshold, it will send the domain name resolution result to the caching domain name server delete message. The method for updating the domain name system cache provided by Embodiment 6 of the present invention may include:
J1、接收授权域名服务器发送的域名解析结果删除消息,该域名解析结果删除消息中携带请求解析的域名,该域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,该第一域名解析结果和请求解析的域名对应。J1. Receive the domain name resolution result deletion message sent by the authorized domain name server. The domain name resolution result deletion message carries the domain name requested to be resolved. The domain name resolution result deletion message is used to delete the first domain name resolution result carried in the cached domain name server. A domain name resolution result corresponds to the domain name requested to be resolved.
具体的,缓存域名服务器接收授权域名服务器发送的域名解析结果删除消息,该域名解析结果删除消息中携带请求解析的域名,域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,第一域名解析结果和请求解析的域名对应。Specifically, the caching domain name server receives the domain name resolution result deletion message sent by the authorized domain name server, the domain name resolution result deletion message carries the domain name requested for resolution, and the domain name resolution result deletion message is used to delete the first domain name resolution result carried in the caching domain name server , the first domain name resolution result corresponds to the domain name requested to be resolved.
J2、删除自身缓存中与请求解析的域名对应的第一域名解析结果。J2. Delete the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache.
具体的,缓存域名服务器根据该域名解析结果删除信息从缓存中删除与请求解析的域名对应的第一域名解析结果。Specifically, the caching domain name server deletes the first domain name resolution result corresponding to the domain name requested to be resolved from the cache according to the domain name resolution result deletion information.
在本发明实施例中,若第一域名解析结果对应的内容服务器发生故障或负荷超过预设门限,缓存域名服务器通过删除自身缓存中与该请求解析的域名对应的第一域名解析结果,从而在随后接收到域名解析请求后,判断缓存中不存在对应的域名解析结果,则重新向授权域名服务器请求域名解析结果,即向授权域名服务器发送域名解析请求,进而从授权域名服务器获得更新的域名解析结果,缓存域名服务器则将更新的域名解析结果向对应的终端发送。In the embodiment of the present invention, if the content server corresponding to the first domain name resolution result fails or the load exceeds the preset threshold, the caching domain name server deletes the first domain name resolution result corresponding to the requested domain name in its own cache, thereby After receiving the domain name resolution request, it is judged that there is no corresponding domain name resolution result in the cache, and then re-request the domain name resolution result from the authorized domain name server, that is, send a domain name resolution request to the authorized domain name server, and then obtain an updated domain name resolution from the authorized domain name server As a result, the caching domain name server sends the updated domain name resolution result to the corresponding terminal.
与现有技术相比,本发明实施例可以避免向终端发送存在故障或负荷超过门限的内容服务器的地址,可以避免终端向发生故障或负荷超过门限的内容服务器请求内容,相反可以使得终端向当前可用的内容服务器请求内容。Compared with the prior art, the embodiment of the present invention can avoid sending the address of a content server with a fault or load exceeding the threshold to the terminal, and can prevent the terminal from requesting content from a content server with a fault or load exceeding the threshold. On the contrary, it can make the terminal send the current Available content servers request content.
进一步的,在本发明实施例六提供的更新域名系统缓存的方法中,缓存域名服务器删除自身缓存中与请求解析的域名对应的第一域名解析结果的步骤(步骤J2)可以通过将请求解析的域名对应的第一域名解析结果的生存时间修改为0,即将第一生存时间修改为0,缓存域名服务器将自动删除该第一域名解析结果。Further, in the method for updating the domain name system cache provided in Embodiment 6 of the present invention, the step of deleting the first domain name resolution result (step J2) corresponding to the domain name requested to be resolved by the caching domain name server in its own cache can be performed by Modify the survival time of the first domain name resolution result corresponding to the domain name to 0, that is, modify the first survival time to 0, and the caching domain name server will automatically delete the first domain name resolution result.
参见图10,本发明实施例六中缓存域名服务器删除自身缓存中与请求解析的域名对应的第一域名解析结果的过程(上述步骤F2),具体可以为:Referring to FIG. 10 , the process in which the caching domain name server deletes the first domain name resolution result corresponding to the domain name requested to be resolved in its own cache in Embodiment 6 of the present invention (the above step F2) may specifically be:
L1、根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的第一域名解析结果。L1. Search the first domain name resolution result corresponding to the domain name requested for resolution in its own cache according to the pre-stored correspondence.
具体的,缓存域名服务器根据预先保存的对应关系,即请求解析的域名和第一域名解析结果之间的对应关系,在自身缓存中查找与请求解析的域名对应的第一域名解析结果。Specifically, the caching domain name server looks up the first domain name resolution result corresponding to the domain name resolution request in its own cache according to the pre-saved correspondence, that is, the correspondence between the domain name requested for resolution and the first domain name resolution result.
其中,缓存域名服务器中预先保存有请求解析的域名和第一域名解析结果之间的对应关系。缓存域名服务器可以在接收到授权域名服务器发送的域名解析响应之后,预先保存域名解析响应中的第一域名解析结果和请求解析的域名之间的对应关系。Wherein, the corresponding relationship between the domain name requested to be resolved and the first domain name resolution result is pre-stored in the caching domain name server. After receiving the domain name resolution response sent by the authoritative domain name server, the caching domain name server may pre-save the correspondence between the first domain name resolution result in the domain name resolution response and the domain name requested to be resolved.
L2、将查找到的第一域名解析结果删除。L2. Delete the found first domain name resolution result.
具体的,缓存域名服务器将查找到的第一域名解析结果删除。Specifically, the caching domain name server deletes the found first domain name resolution result.
以上对本发明实施例提供的更新域名系统缓存的方法进行了详细描述,为更详细的理解本发明实施例,下面给出本发明实施例更新域名系统缓存的方法的具体应用场景。The method for updating the domain name system cache provided by the embodiment of the present invention is described above in detail. For a more detailed understanding of the embodiment of the present invention, a specific application scenario of the method for updating the domain name system cache of the embodiment of the present invention is given below.
参见图11,图11是本发明实施例七提供的更新域名系统缓存的方法的应用场景图。Referring to FIG. 11 , FIG. 11 is an application scenario diagram of the method for updating the domain name system cache provided by Embodiment 7 of the present invention.
该实施例中,某内容提供商(域名为www.abc.com)在某个区域部署2台内容服务器Server1和Server2,授权域名服务器负责管理Server1和Server2的状态,Server1和Server2在工作正常的情况下,周期性向授权域名服务器发送状态上报消息。Local DNS为该区域的缓存域名服务器,该区域中存在一些用户终端,例如UE1和UE2。In this embodiment, a content provider (domain name is www.abc.com) deploys two content servers Server1 and Server2 in a certain area, and the authorized domain name server is responsible for managing the status of Server1 and Server2, and Server1 and Server2 are working normally Next, periodically send a status report message to the authoritative domain name server. Local DNS is the caching domain name server of this area, and there are some user terminals in this area, such as UE1 and UE2.
本发明实施例七提供的更新域名系统缓存的方法主要包括:The method for updating the domain name system cache provided by Embodiment 7 of the present invention mainly includes:
S1、Local DNS接收UE1发送的域名解析请求。S1. The Local DNS receives the domain name resolution request sent by UE1.
在本发明实施例七中,UE1发送的域名解析请求中携带请求解析的域名www.abc.com和终端的地址。In Embodiment 7 of the present invention, the domain name resolution request sent by UE1 carries the domain name www.abc.com to be resolved and the address of the terminal.
S2、Local DNS向授权域名服务器发送域名解析请求。S2. Local DNS sends a domain name resolution request to the authorized domain name server.
具体的,Local DNS在本地没有缓存该域名www.abc.com对应的域名解析结果时,向授权域名服务器发送域名解析请求,该域名解析请求中携带请求解析的域名www.abc.com和缓存域名服务器的地址。其中,缓存域名服务器的地址可以为缓存域名服务器的IP地址。Specifically, when the Local DNS does not cache the domain name resolution result corresponding to the domain name www.abc.com locally, it sends a domain name resolution request to the authorized domain name server, and the domain name resolution request carries the domain name www.abc.com requested for resolution and the cached domain name The address of the server. Wherein, the address of the caching domain name server may be the IP address of the caching domain name server.
S3、授权域名服务器根据域名解析请求进行域名解析,获得第一域名解析结果。S3. The authorized domain name server performs domain name resolution according to the domain name resolution request, and obtains a first domain name resolution result.
具体的,授权域名服务器可以查找与请求解析的域名对应的第一域名解析结果,第一域名解析结果中包括内容服务器的地址。在本发明实施例中,当Server1工作正常,即可以为用户终端提供内容服务时,第一域名解析结果中包括Server1的地址ip1以及第一域名解析结果的生存时间。Specifically, the authorized domain name server may search for a first domain name resolution result corresponding to the domain name requested for resolution, and the first domain name resolution result includes the address of the content server. In the embodiment of the present invention, when Server1 works normally, that is, it can provide content services for the user terminal, the first domain name resolution result includes the address ip1 of Server1 and the survival time of the first domain name resolution result.
S4、授权域名服务器缓存第一域名解析结果和请求解析的域名之间的对应关系、Local DNS的地址和请求解析的域名之间的对应关系,并向Local DNS发送域名解析响应。S4. The authorized domain name server caches the correspondence between the first domain name resolution result and the domain name requested for resolution, the correspondence between the address of the Local DNS and the domain name requested for resolution, and sends a domain name resolution response to the Local DNS.
具体的,授权域名服务器根据接收到的域名解析请求向Local DNS发送域名解析响应,该域名解析响应中携带第一域名解析结果。Specifically, the authorized domain name server sends a domain name resolution response to the Local DNS according to the received domain name resolution request, and the domain name resolution response carries the first domain name resolution result.
授权域名服务器在自身缓存第一域名解析结果和请求解析的域名之间的对应关系、请求解析的域名和请求域名解析的缓存域名服务器之间的对应关系。在本发明实施例中,授权域名服务器在自身缓存域名www.abc.com和LocalDNS的地址之间的对应关系、以及域名www.abc.com和第一域名解析结果之间的对应关系。The authoritative domain name server caches the correspondence between the first domain name resolution result and the domain name requested for resolution, and the correspondence between the domain name requested for resolution and the caching domain name server requesting domain name resolution. In the embodiment of the present invention, the authoritative domain name server caches the corresponding relationship between the domain name www.abc.com and the address of LocalDNS, and the corresponding relationship between the domain name www.abc.com and the first domain name resolution result.
S5、授权域名服务器向Local DNS发送域名解析响应。S5. The authorized domain name server sends a domain name resolution response to the Local DNS.
具体的,授权域名服务器根据域名解析请求向Local DNS发送域名解析响应,其中携带第一域名解析结果。Specifically, the authorized domain name server sends a domain name resolution response to the Local DNS according to the domain name resolution request, which carries the first domain name resolution result.
S6、Local DNS接收域名解析响应,缓存第一域名解析结果。S6. The Local DNS receives the domain name resolution response, and caches the first domain name resolution result.
S7、Local DNS向UE1发送域名解析响应,其中携带第一域名解析结果。S7. The Local DNS sends a domain name resolution response to UE1, which carries the first domain name resolution result.
S8、UE1根据第一域名解析结果向内容服务器Server1请求内容。S8. UE1 requests content from the content server Server1 according to the first domain name resolution result.
S9-S10、授权域名服务器检测到Server1发生故障,获取第二域名解析结果。S9-S10. The authorized domain name server detects that Server1 fails, and acquires a second domain name resolution result.
具体的,授权域名服务器接收到Server1发送的故障上报消息,或预置时间内接收不到Server1的状态上报消息后判断Server1故障,获取第二域名解析结果。在本发明实施例中,授权域名服务器在未接收到Server 2发送的故障上报消息或在预置时间内接收到Server 2发送的状态上报消息,则判断Server 2的状态正常,获取Server2的IP地址。第二域名解析结果中包括server2的IP地址以及第二生存时间。Specifically, the authorized domain name server determines that Server1 is faulty after receiving the failure report message sent by Server1, or fails to receive the status report message from Server1 within a preset time, and obtains the second domain name resolution result. In the embodiment of the present invention, if the authorized domain name server does not receive the fault report message sent by Server 2 or receives the status report message sent by Server 2 within the preset time, it judges that the status of Server 2 is normal, and obtains the IP address of Server 2 . The second domain name resolution result includes the IP address of server2 and the second survival time.
S11、授权域名服务器将自身缓存中与www.abc.com对应的第一域名解析结果更新为第二域名解析结果。S11. The authorized domain name server updates the first domain name resolution result corresponding to www.abc.com in its own cache with the second domain name resolution result.
本发明实施例七中授权域名服务器查找自身缓存中www.abc.com对应的第一域名解析结果,将第一域名解析结果更新为第二域名解析结果,具体包括将第一域名解析结果中的Server1的地址更新为Server 2的地址,并将第一域名解析结果的生存时间(即第一生存时间)更新为第二域名解析结果的生存时间(即第二生存时间)。In Embodiment 7 of the present invention, the authorized domain name server searches for the first domain name resolution result corresponding to www.abc.com in its own cache, and updates the first domain name resolution result to the second domain name resolution result, specifically including updating the first domain name resolution result in the first domain name resolution result The address of Server1 is updated to the address of Server 2, and the survival time of the first domain name resolution result (ie, the first survival time) is updated to the survival time of the second domain name resolution result (ie, the second survival time).
S12、授权域名服务器向Local DNS发送域名解析更新消息,域名解析更新消息中包含缓存更新指示信息、第二域名解析结果以及域名www.abc.com。S12. The authorized domain name server sends a domain name resolution update message to the Local DNS. The domain name resolution update message includes cache update instruction information, the second domain name resolution result, and the domain name www.abc.com.
具体的,域名解析更新消息可以是本发明实施例新增的消息类型,该消息中包含缓存更新指示信息、第二域名解析结果和域名www.abc.com。Specifically, the domain name resolution update message may be a newly added message type in the embodiment of the present invention, and the message includes cache update instruction information, the second domain name resolution result, and the domain name www.abc.com.
其中,第二域名解析结果中包括Server 2的地址、以及Server 2的地址的生存时间(第二生存时间)。Wherein, the second domain name resolution result includes the address of Server 2 and the survival time (second survival time) of the address of Server 2.
S13、Local DNS接收域名解析更新消息,将缓存中与Server1对应的第一域名解析结果更新为第二域名解析结果。S13. The Local DNS receives the domain name resolution update message, and updates the first domain name resolution result corresponding to Server1 in the cache to the second domain name resolution result.
在本发明实施例中,Local DNS将缓存中与域名www.abc.com对应的第一域名解析结果更新为第二域名解析结果。更新过程具体包括将将第一域名解析结果中的Server1的地址更新为Server 2的地址,并将第一域名解析结果的生存时间(即第一生存时间)更新为第二域名解析结果的生存时间(即第二生存时间)。In the embodiment of the present invention, the Local DNS updates the first domain name resolution result corresponding to the domain name www.abc.com in the cache to the second domain name resolution result. The update process specifically includes updating the address of Server1 in the first domain name resolution result to the address of Server 2, and updating the survival time (i.e. the first survival time) of the first domain name resolution result to the survival time of the second domain name resolution result (i.e. second survival time).
其中,Local DNS在接收到域名解析更新消息后,还可对该更新消息的合法性进行认证,例如,对发送方的IP地址进行认证,是否与上次发送域名解析响应的源IP地址一致。授权域名服务器还可以同时携带根据一定密钥生成的认证码,密钥和使用的加密算法可以在域名解析响应消息中预先返回给Local DNS。Local DNS接收到域名解析更新消息后,根据事先获取的密码和加密算法,重新计算认证码,判断接收到的认证码和计算得到的认证码是否一致,若一致,则认证通过,根据域名解析更新消息中的指示信息删除自身缓存的第一域名解析结果。Among them, after Local DNS receives the domain name resolution update message, it can also verify the legitimacy of the update message, for example, verify whether the IP address of the sender is consistent with the source IP address that sent the domain name resolution response last time. The authorized domain name server can also carry the authentication code generated according to a certain key, and the key and the encryption algorithm used can be returned to Local DNS in advance in the domain name resolution response message. After Local DNS receives the domain name resolution update message, it recalculates the authentication code according to the password and encryption algorithm obtained in advance, and judges whether the received authentication code is consistent with the calculated authentication code. If they are consistent, the authentication is passed and updated according to the domain name resolution The instruction information in the message deletes the first domain name resolution result cached by itself.
本发明实施例通过增加对域名解析更新消息的合法性认证,可以增强域名系统的安全性。The embodiment of the present invention can enhance the security of the domain name system by increasing the legality authentication of the domain name resolution update message.
在本发明实施例七中,UE2可以向Local DNS请求域名解析。In Embodiment 7 of the present invention, UE2 may request domain name resolution from Local DNS.
S14、Local DNS接收UE2发送的域名解析请求。S14. The Local DNS receives the domain name resolution request sent by UE2.
在本发明实施例中,UE2发送的域名解析请求中携带请求解析的域名www.abc.com。In the embodiment of the present invention, the domain name resolution request sent by UE2 carries the domain name www.abc.com to be resolved.
S15、Local DNS在自身缓存中获取该域名的解析结果,向UE2返回域名解析响应,其中携带Server 2的地址。S15. The Local DNS acquires the resolution result of the domain name in its own cache, and returns a domain name resolution response to UE2, which carries the address of Server 2.
其中,Local DNS在自身缓存中查找与域名www.abc.com对应的域名解析结果,在本发明实施例中为第二域名解析结果,其中包含Server 2的地址。Wherein, the Local DNS searches the domain name resolution result corresponding to the domain name www.abc.com in its own cache, which is the second domain name resolution result in the embodiment of the present invention, which includes the address of Server 2.
S16、UE2根据第二域名解析结果向内容服务器Server 2请求内容。S16. UE2 requests content from the content server Server 2 according to the second domain name resolution result.
在本发明实施例中,Server的工作状态正常,UE2可以向Server 2请求所需的内容。In the embodiment of the present invention, the working state of the Server is normal, and the UE2 can request the required content from the Server 2.
在本发明实施例中,Local DNS和授权域名服务器在TTL超时后删除自身缓存中的域名解析结果。Local DNS在删除域名解析结果后,若再次接收到域名解析请求后,此时缓存中不存在该域名解析结果则,向授权域名服务器发送域名解析请求,授权域名服务器则根据域名解析请求进行域名解析,返回域名解析的结果,并对域名解析的结果进行缓存。Local DNS接收到域名解析结果后,在本地进行缓存该域名解析结果,并返回域名解析结果给请求的用户终端。In the embodiment of the present invention, the Local DNS and the authorized domain name server delete the domain name resolution result in their own cache after the TTL expires. After Local DNS deletes the domain name resolution result, if the domain name resolution result does not exist in the cache after receiving the domain name resolution request again, it will send a domain name resolution request to the authorized domain name server, and the authorized domain name server will perform domain name resolution according to the domain name resolution request , returns the domain name resolution result, and caches the domain name resolution result. After Local DNS receives the domain name resolution result, it caches the domain name resolution result locally, and returns the domain name resolution result to the requesting user terminal.
本发明实施例七提供的更新域名系统缓存的方法可以在仍使用原TTL机制基础上,及时更新Local DNS上缓存的域名解析的结果,避免终端请求内容服务失败或服务延迟。The method for updating the domain name system cache provided by Embodiment 7 of the present invention can update the results of domain name resolution cached on the Local DNS in a timely manner while still using the original TTL mechanism, so as to avoid the failure or delay of the content service requested by the terminal.
以上对本发明实施例提供的更新域名系统缓存的方法进行了详细说明,。The method for updating the domain name system cache provided by the embodiment of the present invention has been described in detail above.
参见图12,图12是本发明实施例八提供的授权域名服务器的结构示意图。Referring to FIG. 12 , FIG. 12 is a schematic structural diagram of an authorized domain name server provided in Embodiment 8 of the present invention.
本发明实施例八提供的授权域名服务器包括:The authorized domain name server provided by Embodiment 8 of the present invention includes:
解析结果获取单元110,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,获取请求解析的域名的第二域名解析结果,该请求解析的域名和该第一域名解析结果对应,该第二域名解析结果对应的内容服务器的工作状态正常;The resolution
更新消息发送单元120,用于向请求解析的域名对应的缓存域名服务器发送域名解析更新消息,该域名解析更新消息中携带请求解析的域名,该域名解析更新消息用于指示该缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。The update
其中,本发明实施例八提供的授权域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例一中,详情参见上述实施例一的描述。本发明实施例提供的授权域名服务器通过向缓存域名服务器发送域名解析更新消息,使得缓存域名服务器删除自身缓存的第一域名解析结果为第二域名解析结果,避免向终端返回错误的第一域名解析结果。缓存域名服务器在随后接收到终端的域名解析请求后,向终端返回第二域名解析结果,而第二域名解析结果对应的内容服务器工作状态正常,终端可以向工作状态正常的内容服务器请求内容。Wherein, the authoritative domain name server provided in the eighth embodiment of the present invention can be used in the corresponding first embodiment of the method for updating the domain name system cache. For details, refer to the description of the first embodiment above. The authorized domain name server provided by the embodiment of the present invention sends a domain name resolution update message to the caching domain name server, so that the caching domain name server deletes the first domain name resolution result cached by itself as the second domain name resolution result, avoiding returning the wrong first domain name resolution to the terminal result. The caching domain name server then returns the second domain name resolution result to the terminal after receiving the domain name resolution request from the terminal, and the content server corresponding to the second domain name resolution result is in normal working state, and the terminal can request content from the content server in normal working state.
本发明实施例八提供的授权域名服务器还可以包括:The authorized domain name server provided in Embodiment 8 of the present invention may also include:
第一更新单元130,用于在上述解析结果获取单元110获取请求解析的域名的第二域名解析结果之后,将自身缓存中的第一域名解析结果更新为第二域名解析结果。The
参见图13,图13是本发明实施例九提供的授权域名服务器的结构示意图。Referring to FIG. 13 , FIG. 13 is a schematic structural diagram of an authorized domain name server provided in Embodiment 9 of the present invention.
本发明实施例九提供的授权域名服务器包括:The authorized domain name server provided by Embodiment 9 of the present invention includes:
第一接收单元210,用于接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名;The first receiving unit 210 is configured to receive a domain name resolution request sent by a caching domain name server, where the domain name resolution request includes a domain name to be resolved;
域名解析单元220,用于根据该域名解析请求对请求解析的域名进行解析,获得第一域名解析结果;The domain name resolution unit 220 is configured to analyze the requested domain name according to the domain name resolution request, and obtain a first domain name resolution result;
缓存单元230,用于缓存该第一域名解析结果和请求解析的域名之间的对应关系、以及请求解析的域名和该缓存域名服务器之间的对应关系;Caching unit 230, configured to cache the correspondence between the first domain name resolution result and the domain name requested for resolution, and the correspondence between the domain name requested for resolution and the cached domain name server;
解析响应发送单元240,用于向该缓存域名服务器发送域名解析响应,该域名解析响应中包括上述第一域名解析结果和上述请求解析的域名;A resolution response sending unit 240, configured to send a domain name resolution response to the caching domain name server, where the domain name resolution response includes the first domain name resolution result and the domain name requested to be resolved;
解析结果获取单元250,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,获取请求解析的域名的第二域名解析结果,请求解析的域名和上述第一域名解析结果对应,该第二域名解析结果对应的内容服务器的工作状态正常;The resolution result obtaining unit 250 is configured to obtain the second domain name resolution result of the domain name requested for resolution when detecting that the content server corresponding to the first domain name resolution result in its own cache fails or the load exceeds a threshold value, and the domain name requested for resolution Corresponding to the first domain name resolution result above, the working status of the content server corresponding to the second domain name resolution result is normal;
更新消息发送单元260,用于向请求解析的域名对应的缓存域名服务器发送域名解析更新消息,该域名解析更新消息中携带上述请求解析的域名,该域名解析更新消息用于指示该缓存域名服务器将缓存的第一域名解析结果更新为第二域名解析结果。The update
其中,本发明实施例九提供的授权域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例二中,详情参见上述实施例二的描述。Wherein, the authoritative domain name server provided in the ninth embodiment of the present invention can be used in the aforementioned corresponding second embodiment of the method for updating the domain name system cache. For details, refer to the description of the second embodiment above.
进一步的,本发明实施例九提供的授权域名服务器还包括:Further, the authorized domain name server provided in Embodiment 9 of the present invention also includes:
第一更新单元270,用于在解析结果获取单元250获取请求解析的域名的第二域名解析结果之后,将自身缓存中的第一域名解析结果更新为第二域名解析结果。The first updating unit 270 is configured to update the first domain name resolution result in its own cache to the second domain name resolution result after the resolution result obtaining unit 250 obtains the second domain name resolution result of the domain name requested to be resolved.
参见图14,图14是本发明实施例九提供的授权域名服务器中更新消息发送单元的结构示意图。Referring to FIG. 14 , FIG. 14 is a schematic structural diagram of an update message sending unit in an authorized domain name server provided in Embodiment 9 of the present invention.
本发明实施例九提供的授权域名服务器中更新消息发送单元260可以包括:The update
第一查找模块261,用于根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的缓存域名服务器的地址;The
更新消息发送模块262,用于向查找到的缓存域名服务器发送域名解析更新消息,该域名解析更新消息中携带请求解析的域名,该域名解析更新消息用于指示该缓存域名服务器将缓存的第一域名解析结果更新为上述第二域名解析结果。The update
需要指出的是,本发明实施例八提供的更新消息发送单元120的具体结构和实施例九中的更新消息发送单元260的具体结构相同,这里不再详细描述。It should be pointed out that the specific structure of the update
参见15,图15是本发明实施例十提供的授权域名服务器的结构示意图。Referring to 15, FIG. 15 is a schematic structural diagram of an authorized domain name server provided by Embodiment 10 of the present invention.
本发明实施例十提供的授权域名服务器可以包括:The authorized domain name server provided by Embodiment 10 of the present invention may include:
删除消息生成单元310,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,生成域名解析结果删除消息,该域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,该域名解析结果删除消息中携带请求解析的域名,请求解析的域名和上述第一域名解析结果对应;The deletion
删除消息发送单元320,用于向该缓存域名服务器发送该域名解析结果删除消息,以便于该缓存域名服务器删除自身缓存中的第一域名解析结果,该该缓存域名服务器和上述请求解析的域名对应。The deletion
其中,本发明实施例十提供的授权域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例三中,详情参见上述实施例三的描述。本发明实施例提供的授权域名服务器通过向缓存域名服务器发送域名解析结果删除消息,使得缓存域名服务器删除缓存的第一域名解析结果,避免向终端返回错误的第一域名解析结果。缓存域名服务器在随后接收到终端的域名解析请求后,重新向授权域名服务器请求正确的域名解析结果,将正确的域名解析结果发送给缓存域名服务器,进而使得终端可以向正确的内容服务器请求内容。Wherein, the authorized domain name server provided in the tenth embodiment of the present invention can be used in the corresponding third embodiment of the method for updating the cache of the domain name system mentioned above. For details, refer to the description of the third embodiment above. The authorized domain name server provided by the embodiment of the present invention sends a domain name resolution result deletion message to the caching domain name server, so that the caching domain name server deletes the cached first domain name resolution result, so as to avoid returning the wrong first domain name resolution result to the terminal. After receiving the domain name resolution request from the terminal, the caching domain name server re-requests the correct domain name resolution result from the authorized domain name server, and sends the correct domain name resolution result to the caching domain name server, so that the terminal can request content from the correct content server.
参见图16,图16是本发明实施例十提供的授权域名服务器中删除消息发送单元的结构示意图。Referring to FIG. 16 , FIG. 16 is a schematic structural diagram of the deletion message sending unit in the authorized domain name server provided by Embodiment 10 of the present invention.
本发明实施例十提供的授权域名服务器中删除消息发送单元320具体可以包括:The deletion
第二查找模块321,用于根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的缓存域名服务器的地址;The second search module 321 is configured to search the address of the cache domain name server corresponding to the domain name requested to be resolved in its own cache according to the pre-saved correspondence;
删除消息发送模块322,用于向查找到的缓存域名服务器发送域名解析结果删除消息,以便于该缓存域名服务器删除自身缓存中的第一域名解析结果,该缓存域名服务器和请求解析的域名对应。The deletion message sending module 322 is configured to send a domain name resolution result deletion message to the found cache domain name server, so that the cache domain name server can delete the first domain name resolution result in its own cache, and the cache domain name server corresponds to the domain name requested to be resolved.
参见图17,图17是本发明实施例十一提供的授权域名服务器的结构示意图。Referring to FIG. 17 , FIG. 17 is a schematic structural diagram of an authorized domain name server provided by Embodiment 11 of the present invention.
本发明实施例十一提供的授权域名服务器可以包括:The authorized domain name server provided by Embodiment 11 of the present invention may include:
第一接收单元410,用于接收缓存域名服务器发送的域名解析请求,该域名解析请求中包括请求解析的域名;The
域名解析单元420,用于根据该域名解析请求对请求解析的域名进行解析,获得第一域名解析结果;The domain
缓存单元430,用于缓存第一域名解析结果和请求解析的域名之间的对应关系、以及请求解析的域名和该缓存域名服务器之间的对应关系;A
解析响应发送单元440,用于向该缓存域名服务器发送域名解析响应,该域名解析响应中包括上述第一域名解析结果和上述请求解析的域名。The resolution
删除消息生成单元450,用于在检测到自身缓存中的第一域名解析结果对应的内容服务器发生故障或负荷超过门限值时,生成域名解析结果删除消息,该域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,该域名解析结果删除消息中携带请求解析的域名,请求解析的域名和第一域名解析结果对应;The deletion
删除消息发送单元460,用于向该缓存域名服务器发送该域名解析结果删除消息,以便于该缓存域名服务器删除自身缓存中的第一域名解析结果,该缓存域名服务器和上述请求解析的域名对应。The deletion
其中,本发明实施例十一提供的授权域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例四中,详情参见上述实施例四的描述。Wherein, the authoritative domain name server provided by the eleventh embodiment of the present invention can be used in the corresponding fourth embodiment of the method for updating the domain name system cache. For details, refer to the description of the fourth embodiment above.
需要指出的是,本发明实施例十一提供的删除消息发送单元460的具体结构和实施例十中的删除消息发送单元320的具体结构相同,这里不再详细描述。It should be pointed out that the specific structure of the deletion
参见图18,图18是本发明实施例十二提供的缓存域名服务器的结构示意图。Referring to FIG. 18 , FIG. 18 is a schematic structural diagram of a caching domain name server provided by Embodiment 12 of the present invention.
本发明实施例十二提供的缓存域名服务器包括:The caching domain name server provided by Embodiment 12 of the present invention includes:
更新消息接收单元510,用于接收授权域名服务器发送的域名解析更新消息,该域名解析更新消息用于指示该缓存域名服务器将缓存的第一域名解析结果更新为上述第二域名解析结果,该域名解析更新消息中携带请求解析的域名;The update
第二更新单元520,用于将自身缓存中的第一域名解析结果更新为上述第二域名解析结果,第一域名解析结果和请求解析的域名对应。The
本发明实施例十二提供的缓存域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例五中,详情参见上述实施例五的描述。在本发明实施例提供的缓存域名服务器通过将自身缓存中与请求解析的域名对应的第一域名解析结果更新为第二域名解析结果,可以在随后接收到域名解析请求后,将更新的域名解析结果,即第二域名解析结果向终端发送。和现有技术相比,本发明实施例通过删除自身缓存中的域名解析结果,可以避免终端向发生故障的内容服务器请求内容,进一步使得终端向当前可用的内容服务器请求内容。The caching domain name server provided by Embodiment 12 of the present invention can be used in the foregoing corresponding Embodiment 5 of the method for updating the domain name system cache. For details, refer to the description of Embodiment 5 above. In the caching domain name server provided in the embodiment of the present invention, by updating the first domain name resolution result corresponding to the requested domain name resolution in its own cache to the second domain name resolution result, it can resolve the updated domain name after receiving the domain name resolution request. The result, that is, the second domain name resolution result is sent to the terminal. Compared with the prior art, the embodiment of the present invention can prevent the terminal from requesting content from the failed content server by deleting the domain name resolution result in its own cache, and further enables the terminal to request content from the currently available content server.
进一步的,本发明实施例十二提供的缓存域名服务器还可以进一步包括:Further, the caching domain name server provided in Embodiment 12 of the present invention may further include:
超时删除单元530,用于在第二生存时间超时后,删除自身缓存中的该第二域名解析结果。The
参见图19,图19是本发明实施例十二提供的缓存域名服务器中第二更新单元的结构示意图。Referring to FIG. 19 , FIG. 19 is a schematic structural diagram of a second update unit in the caching domain name server provided by Embodiment 12 of the present invention.
本发明实施例十二提供的缓存域名服务器中第二更新单元520可以包括:The
第三查找模块521,用于根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的第一域名解析结果,该第一域名解析结果和上述请求解析的域名对应;The
缓存更新模块522,用于将查找到的第一域名解析结果更新为该第二域名解析结果。The
参见图20,图20是本发明实施例十三提供的缓存域名服务器的结构示意图。Referring to FIG. 20 , FIG. 20 is a schematic structural diagram of a caching domain name server provided by Embodiment 13 of the present invention.
本发明实施例十三提供的缓存域名服务器包括:The caching domain name server provided by Embodiment 13 of the present invention includes:
删除消息接收单元610,用于接收授权域名服务器发送的域名解析结果删除消息,该域名解析结果删除消息中携带请求解析的域名,该域名解析结果删除消息用于删除缓存域名服务器中携带的第一域名解析结果,该第一域名解析结果和上述请求解析的域名对应;The deletion
删除执行单元620,用于删除自身缓存中与请求解析的域名对应的第一域名解析结果。The
本发明实施例十三提供的缓存域名服务器可以使用在前述对应的更新域名系统缓存的方法实施例六中,详情参见上述实施例六的描述。本发明实施例提供的缓存域名服务器通过删除自身缓存中与该请求解析的域名对应的第一域名解析结果,从而在随后接收到域名解析请求后,判断缓存中不存在对应的域名解析结果,则重新向授权域名服务器请求域名解析结果,即向授权域名服务器发送域名解析请求,进而从授权域名服务器获得更新的域名解析结果,缓存域名服务器将更新的域名解析结果向对应的终端发送。与现有技术相比,本发明实施例可以避免向终端发送存在故障或负荷超过门限的内容服务器的地址,可以避免终端向发生故障或负荷超过门限的内容服务器请求内容,相反可以使得终端向当前可用的内容服务器请求内容。The caching domain name server provided by the thirteenth embodiment of the present invention can be used in the corresponding sixth embodiment of the method for updating the domain name system cache. For details, refer to the description of the sixth embodiment above. The caching domain name server provided by the embodiment of the present invention deletes the first domain name resolution result corresponding to the requested domain name resolution in its own cache, so that after receiving the domain name resolution request, it determines that there is no corresponding domain name resolution result in the cache, then Re-request the domain name resolution result from the authorized domain name server, that is, send the domain name resolution request to the authorized domain name server, and then obtain the updated domain name resolution result from the authorized domain name server, and the caching domain name server will send the updated domain name resolution result to the corresponding terminal. Compared with the prior art, the embodiment of the present invention can avoid sending the address of a content server with a fault or load exceeding the threshold to the terminal, and can prevent the terminal from requesting content from a content server with a fault or load exceeding the threshold. On the contrary, it can make the terminal send the current Available content servers request content.
参见图21,图21是本发明实施例十三提供的缓存域名服务器中删除执行单元的结构示意图。Referring to FIG. 21 , FIG. 21 is a schematic structural diagram of the deletion execution unit in the caching domain name server provided by Embodiment 13 of the present invention.
本发明实施例十三提供的缓存域名服务器中删除执行单元620可以包括:The
第四查找模块621,用于根据预先保存的对应关系在自身缓存中查找与请求解析的域名对应的第一域名解析结果;The
缓存删除模块622,用于将查找到的第一域名解析结果删除。The
需要说明的是,上述缓存域名服务器和授权域名服务器中各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned caching domain name server and authorized domain name server are based on the same idea as the embodiment of the method of the present invention, and the specific content can refer to the description in the embodiment of the method of the present invention , which will not be repeated here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccess Memory,RAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed , may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上对本发明实施例提供的更新域名系统缓存的方法和授权域名服务器、缓存域名服务器进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,本说明书内容不应理解为对本发明的限制。The method for updating the domain name system cache provided by the embodiment of the present invention, the authorized domain name server, and the caching domain name server have been introduced in detail above. For those of ordinary skill in the art, based on the idea of the embodiment of the present invention, in terms of specific implementation and application scope There will be changes, and the content of this specification should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010612278.6ACN102137174B (en) | 2010-12-29 | 2010-12-29 | Domain Name System caching methods, authoritative domain name servers, caching domain name servers |
| PCT/CN2011/083913WO2012089013A1 (en) | 2010-12-29 | 2011-12-14 | Domain name system caching method, authorized domain name server and caching domain name server |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010612278.6ACN102137174B (en) | 2010-12-29 | 2010-12-29 | Domain Name System caching methods, authoritative domain name servers, caching domain name servers |
| Publication Number | Publication Date |
|---|---|
| CN102137174A CN102137174A (en) | 2011-07-27 |
| CN102137174Btrue CN102137174B (en) | 2013-10-09 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010612278.6AExpired - Fee RelatedCN102137174B (en) | 2010-12-29 | 2010-12-29 | Domain Name System caching methods, authoritative domain name servers, caching domain name servers |
| Country | Link |
|---|---|
| CN (1) | CN102137174B (en) |
| WO (1) | WO2012089013A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102137174B (en)* | 2010-12-29 | 2013-10-09 | 华为技术有限公司 | Domain Name System caching methods, authoritative domain name servers, caching domain name servers |
| CN102984286B (en)* | 2012-11-14 | 2015-03-04 | 上海牙木通讯技术有限公司 | Method and device and system of domain name server (DNS) for buffering updating |
| CN104427011B (en)* | 2013-09-02 | 2019-03-22 | 中兴通讯股份有限公司 | The method and domain name cache server of domain name mapping |
| CN104639666B (en)* | 2013-11-06 | 2019-04-16 | 腾讯科技(深圳)有限公司 | Method for accessing domain name and device |
| CN106210158B (en)* | 2015-05-04 | 2020-03-27 | 阿里巴巴集团控股有限公司 | Domain name resolution synchronization method and device |
| CN104935683A (en)* | 2015-06-29 | 2015-09-23 | 北京经天科技有限公司 | Buffer processing method and device for domain name resolution |
| CN106331205B (en)* | 2015-07-01 | 2019-02-05 | 中兴通讯股份有限公司 | The centralized management method, apparatus and relevant device of domain name resources record buffer memory |
| CN106331201A (en)* | 2015-07-01 | 2017-01-11 | 中兴通讯股份有限公司 | Domain name system resource record caching control method and server |
| CN105245633A (en)* | 2015-10-19 | 2016-01-13 | 北京奇虎科技有限公司 | A secure domain name system and its troubleshooting method |
| CN106610975A (en)* | 2015-10-21 | 2017-05-03 | 北京国双科技有限公司 | Method and device for updating configuration list of cache server |
| CN105939399A (en)* | 2015-11-30 | 2016-09-14 | 杭州迪普科技有限公司 | Domain name resolution method and device |
| CN109639748B (en)* | 2017-10-09 | 2021-10-26 | 阿里巴巴集团控股有限公司 | Cache updating method, device and system of DNS (Domain name Server) and domain name system |
| CN109451090B (en)* | 2018-11-13 | 2021-08-10 | 郑州云海信息技术有限公司 | Domain name resolution method and device |
| CN114143230B (en)* | 2020-09-02 | 2023-07-21 | 中国移动通信集团安徽有限公司 | Method and device for calculating DNS resolution duration of dual-stack users |
| CN114157635B (en)* | 2020-09-07 | 2023-08-15 | 中国移动通信集团湖南有限公司 | Domain name back-to-source method and device, equipment and storage medium for content distribution network |
| CN113286016B (en)* | 2021-07-20 | 2021-09-28 | 中国人民解放军国防科技大学 | A method and device for analyzing the service scope of a cached domain name system |
| CN116074195B (en)* | 2023-02-08 | 2025-08-01 | 恒生电子股份有限公司 | Domain name synchronization method, service container, cluster, computing node and storage medium |
| CN116382809B (en)* | 2023-05-26 | 2023-10-20 | 荣耀终端有限公司 | Application program starting method and electronic equipment |
| CN118018528A (en)* | 2023-12-15 | 2024-05-10 | 中国移动通信集团有限公司 | Domain name resolution record updating method, device and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101272407A (en)* | 2008-04-28 | 2008-09-24 | 杭州华三通信技术有限公司 | Caching detecting method, caching detecting device and detection responding device for domain name system |
| CN101431539A (en)* | 2008-12-11 | 2009-05-13 | 华为技术有限公司 | Domain name resolution method, system and apparatus |
| CN101465768A (en)* | 2009-01-12 | 2009-06-24 | 上海及第熊软件科技有限公司 | Method and system for implementing website disaster-tolerating and error-tolerating operation |
| CN101895591A (en)* | 2010-07-23 | 2010-11-24 | 北京邮电大学 | Method and domain name server for increasing robustness of credible Internet domain name service |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7725602B2 (en)* | 2000-07-19 | 2010-05-25 | Akamai Technologies, Inc. | Domain name resolution using a distributed DNS network |
| EP2159983A1 (en)* | 2008-08-26 | 2010-03-03 | BRITISH TELECOMMUNICATIONS public limited company | Content distribution network |
| CN102137174B (en)* | 2010-12-29 | 2013-10-09 | 华为技术有限公司 | Domain Name System caching methods, authoritative domain name servers, caching domain name servers |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101272407A (en)* | 2008-04-28 | 2008-09-24 | 杭州华三通信技术有限公司 | Caching detecting method, caching detecting device and detection responding device for domain name system |
| CN101431539A (en)* | 2008-12-11 | 2009-05-13 | 华为技术有限公司 | Domain name resolution method, system and apparatus |
| CN101465768A (en)* | 2009-01-12 | 2009-06-24 | 上海及第熊软件科技有限公司 | Method and system for implementing website disaster-tolerating and error-tolerating operation |
| CN101895591A (en)* | 2010-07-23 | 2010-11-24 | 北京邮电大学 | Method and domain name server for increasing robustness of credible Internet domain name service |
| Publication number | Publication date |
|---|---|
| WO2012089013A1 (en) | 2012-07-05 |
| CN102137174A (en) | 2011-07-27 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102137174B (en) | Domain Name System caching methods, authoritative domain name servers, caching domain name servers | |
| US10158620B2 (en) | DNSSEC signing server | |
| EP1303109B1 (en) | Resolving virtual network names | |
| US9590946B2 (en) | Managing content delivery network service providers | |
| US9088415B2 (en) | Authentication of cache DNS server responses | |
| US7415536B2 (en) | Address query response method, program, and apparatus, and address notification method, program, and apparatus | |
| JP5499183B2 (en) | Method and system for preventing DNS cache poisoning | |
| EP2769307B1 (en) | Answer augmentation system for authoritative dns servers | |
| US20090106453A1 (en) | Domain name system using dynamic dns and global address management method for dynamic dns server | |
| CN101834911B (en) | Defense method of domain name hijacking and network outlet equipment | |
| JP2015072694A (en) | Method and system for content management | |
| US11658995B1 (en) | Methods for dynamically mitigating network attacks and devices thereof | |
| WO2015027743A1 (en) | Domain name resolution method, domain name cache server, and final domain name server | |
| CN106878161B (en) | Method and system for resolving domain name system requests | |
| CN103118145A (en) | IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system) | |
| CN114268605B (en) | Intelligent DNS realization method and device and computer storage medium | |
| CN105743936B (en) | A kind of method and device sending linkage data update instruction | |
| Waldvogel et al. | Boost DNS Privacy, Reliability, and Efficiency with opDNS Safe Query Elimination | |
| HK1235936A1 (en) | A method and system for resolving the domain name system requests | |
| HK1235936B (en) | A method and system for resolving the domain name system requests |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| ASS | Succession or assignment of patent right | Owner name:NANTONG TIANYUAN GAS CO., LTD. Free format text:FORMER OWNER: HUIZHOU ZHITAI ENTERPRISE MANAGEMENT CO., LTD. Effective date:20141231 Owner name:HUIZHOU ZHITAI ENTERPRISE MANAGEMENT CO., LTD. Free format text:FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD. Effective date:20141231 | |
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data | Free format text:CORRECT: ADDRESS; FROM: 516003 HUIZHOU, GUANGDONG PROVINCE TO: 226000 NANTONG, JIANGSU PROVINCE Free format text:CORRECT: ADDRESS; FROM: 518129 SHENZHEN, GUANGDONG PROVINCE TO: 516003 HUIZHOU, GUANGDONG PROVINCE | |
| TR01 | Transfer of patent right | Effective date of registration:20141231 Address after:Chen Qiao street Gangzha District 226000 Jiangsu city of Nantong Province Rong Sheng Lu No. 99 Patentee after:NANTONG TIANYUAN GAS Co.,Ltd. Address before:516003 Guangdong province Huizhou City Mountain Road No. 4 Building 12 layer Dweh No. 06 A District Patentee before:HUIZHOU ZHITAI ENTERPRISE MANAGEMENT CO.,LTD. Effective date of registration:20141231 Address after:516003 Guangdong province Huizhou City Mountain Road No. 4 Building 12 layer Dweh No. 06 A District Patentee after:HUIZHOU ZHITAI ENTERPRISE MANAGEMENT CO.,LTD. Address before:518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before:HUAWEI TECHNOLOGIES Co.,Ltd. | |
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20131009 Termination date:20181229 |