Method and apparatus for managing dns domain name
By sending resolution rules synchronously when sending domain name resolution requests, the problem of domain name resolution errors caused by unstable links between the cloud management terminal and edge nodes is solved, and the DNS resolver achieves accurate and timely resolution.
Patent Information
- Application Number
- CN202310701394.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-06-13
AI Technical Summary
During the DNS resolution process between public and private cloud networks, the unstable link between the cloud management terminal and edge nodes can cause the domain name resolution rules to fail to be updated in a timely manner, which can easily lead to domain name resolution errors.
When a DNS server sends a domain name resolution request to a DNS resolver, it simultaneously sends the domain name resolution rules to ensure that the DNS resolver can perform domain name resolution based on the latest domain name resolution rules, thus avoiding resolution errors caused by not receiving update messages from the cloud management terminal.
This reduces the possibility of domain name resolution errors and ensures the accuracy and timeliness of domain name resolution results.
Smart Images

Figure CN116708366B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] One or more embodiments of the present specification relate to the field of network data, and in particular to a DNS domain name management method and device. BACKGROUND
[0002] With the development of enterprise service cloud, some large enterprises still retain offline private cloud networks, for example, offline Internet Data Center (IDC), and build corresponding private Domain Name System (DNS). The private DNS faces various difficulties if it is migrated to the public cloud network, and cannot guarantee the security requirements of the private cloud network.
[0003] The related technology introduces a DNS resolver corresponding to the private cloud network, which realizes the purpose of DNS fusion between the public cloud network and the private cloud network. The DNS resolver can process DNS resolution requests in the private cloud network. In order to obtain accurate DNS resolution results, the DNS resolver needs to real-time perceive the migration of service addresses of each cloud resource in the private cloud network, tenant isolation and other information. For this purpose, the DNS resolver needs to real-time obtain domain name resolution rules related to the private cloud network from the cloud management end of the public cloud network.
[0004] In actual application, there is a long distance between the DNS resolver as an edge node and the cloud management end, and the management capability of the edge node by the cloud management end is relatively weak, which cannot guarantee the link stability between the cloud management end and the edge node, so that the domain name resolution rules cannot be updated in time, which is easy to cause domain name resolution errors. SUMMARY
[0005] Therefore, one or more embodiments of the present specification provide a DNS domain name management method and device to solve the problems in the related art.
[0006] To achieve the above object, one or more embodiments of the present specification provide technical solutions as follows.
[0007] According to a first aspect of one or more embodiments of the present specification, a DNS domain name management method is provided, applied to a DNS server, comprising:
[0008] obtaining domain name resolution rules corresponding to the domain name of the target cloud resource;
[0009] In response to receiving a domain name resolution request for a domain name of the target cloud resource, sending the domain name resolution request and the domain name resolution rule to a DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource.
[0010] Receiving the domain name resolution result from the DNS resolver.
[0011] Optionally, the domain name resolution rule includes address information of a target DNS server; the target DNS server is a DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource.
[0012] Correspondingly, the domain name resolution result corresponding to the domain name of the target cloud resource is a domain name resolution result corresponding to the domain name of the target cloud resource obtained from the target DNS server based on the address information.
[0013] Optionally, the sending of the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource comprises:
[0014] Sending a request message based on a target data format to the DNS resolver corresponding to the target cloud resource, the request message including the domain name resolution request and the domain name resolution rule; wherein the target data format is a data format extended according to an extension mechanism of a DNS protocol.
[0015] Optionally, the extension mechanism of the DNS protocol is an ENDS0 extension mechanism.
[0016] Optionally, the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains domain name resolution rules corresponding to domain names of each cloud resource in the private cloud network uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network.
[0017] The obtaining of the domain name resolution rule corresponding to the domain name of the target cloud resource comprises:
[0018] Obtaining a domain name resolution rule corresponding to the domain name of the target cloud resource maintained on the cloud management end corresponding to the public cloud network.
[0019] According to a second aspect of one or more embodiments of the present specification, a DNS domain name management method is provided, applied to a DNS resolver, comprising:
[0020] receiving, from a DNS server, a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource;
[0021] performing domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource;
[0022] sending the domain name resolution result to the DNS server.
[0023] Optionally, the domain name resolution rule comprises address information of a target DNS server; the target DNS server is a DNS server that maintains the domain name resolution result corresponding to the domain name of the target cloud resource.
[0024] The performing domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource comprises:
[0025] sending, according to the address information of the target DNS server, a domain name resolution request for the domain name of the target cloud resource to the target DNS server;
[0026] obtaining, from the target DNS server, the domain name resolution result corresponding to the domain name of the target cloud resource.
[0027] Optionally, the receiving, from a DNS server, a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource comprises:
[0028] receiving, from a DNS server, a request message based on a target data format, the request message comprising a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the target data format is a data format extended according to an extension mechanism of a DNS protocol.
[0029] Optionally, the extension mechanism of the DNS protocol is an ENDS0 extension mechanism.
[0030] Optionally, the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network where the target cloud resource is located; the cloud management terminal corresponding to the public cloud network maintains domain name resolution rules corresponding to domain names of each cloud resource in the private cloud network uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network.
[0031] According to a third aspect of one or more embodiments of the present specification, a DNS domain name management apparatus is provided, comprising:
[0032] A rule receiving module configured to obtain a domain name resolution rule corresponding to a domain name of a target cloud resource;
[0033] A request forwarding module configured to, in response to receiving a domain name resolution request for the domain name of the target cloud resource, send the domain name resolution request and the domain name resolution rule to a DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource;
[0034] A result receiving module configured to receive the domain name resolution result from the DNS resolver.
[0035] According to a fourth aspect of one or more embodiments of the present specification, a DNS domain name management apparatus is provided, comprising:
[0036] A request receiving module configured to receive, from a DNS server, a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver, and a domain name resolution rule corresponding to the target cloud resource;
[0037] A domain name resolution module configured to perform domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource;
[0038] A result sending module configured to send the domain name resolution result to the DNS server.
[0039] According to a fifth aspect of one or more embodiments of the present specification, an electronic device is provided, comprising:
[0040] A processor;
[0041] A memory for storing processor-executable instructions;
[0042] The processor implements the method of the first aspect by running the executable instructions.
[0043] According to a sixth aspect of one or more embodiments of the present specification, a computer readable storage medium is provided, having stored thereon computer instructions that, when executed by a processor, implement the steps of the method according to the first aspect.
[0044] The embodiments of the present application can ensure that the DNS resolver can perform domain name resolution based on the latest domain name resolution rules by sending the domain name resolution rules to the DNS resolver when sending a domain name resolution request to the DNS resolver, thereby avoiding domain name resolution errors caused by not receiving the update message of the domain name resolution rules from the cloud management end, and reducing the possibility of domain name resolution errors. BRIEF DESCRIPTION OF DRAWINGS
[0045] Figure 1 is a flowchart of a DNS domain name management method provided by an exemplary embodiment;
[0046] Figure 2 is a flowchart of a DNS domain name management method provided by an exemplary embodiment;
[0047] Figure 3 is a schematic diagram of a target data format extended based on the EDNS0 extension mechanism provided by an exemplary embodiment;
[0048] Figure 4 is a flowchart of another DNS domain name management method provided by an exemplary embodiment;
[0049] Figure 5 is a flowchart of another DNS domain name management method provided by an exemplary embodiment;
[0050] Figure 6 is a structural schematic diagram of a DNS domain name management device provided by an exemplary embodiment;
[0051] Figure 7 is a structural schematic diagram of another DNS domain name management device provided by an exemplary embodiment;
[0052] Figure 8 is a structural schematic diagram of an electronic device provided by an exemplary embodiment. DETAILED DESCRIPTION
[0053] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The description herein relates to the drawings, in which like references indicate like elements, unless otherwise indicated. The following exemplary embodiments described are not meant to represent all embodiments consistent with one or more embodiments of the present description. Rather, they are merely examples of apparatuses and methods consistent with some aspects of one or more embodiments of the present description as detailed in the appended claims.
[0054] It should be noted that the steps of the methods in other embodiments are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps of the methods can be more or less than those described in this specification. Furthermore, a single step described in this specification can in other embodiments be split into multiple steps to be described; and multiple steps described in this specification can in other embodiments be combined into a single step to be described.
[0055] With the development of cloud services, some large enterprises still retain offline private cloud networks, for example, offline network data centers, and build corresponding private domain name systems. The private DNS faces various difficulties if it is migrated to a public cloud network and cannot guarantee the security requirements of the private cloud network.
[0056] The related technology introduces a DNS resolver corresponding to the private cloud network, which realizes the purpose of DNS fusion between the public cloud network and the private cloud network. The DNS resolver corresponding to the private cloud network can provide DNS resolution services for the private cloud network, be used to process domain name resolution requests in the private cloud network, and can also process DNS resolution requests in the private cloud network obtained from the public cloud network. Through the DNS resolver, the access problem between the private cloud network and the public cloud network can be solved, and a prerequisite is provided for migrating upper-layer services to the public cloud network or the private cloud network. In order to obtain accurate DNS resolution results, the DNS resolver needs to perceive the migration of the service addresses of each cloud resource in the private cloud network, tenant isolation and other information in real time. For this purpose, the DNS resolver needs to obtain domain name resolution rules related to the private cloud network from the cloud management end of the public cloud network in real time.
[0057] As Figure 1As shown, each private cloud network is respectively deployed with a corresponding DNS resolver, which can receive a DNS resolution request for the private cloud network sent by a DNS server deployed in the public cloud network, and perform domain name resolution based on the maintained domain name resolution rule, and return the obtained domain name resolution result to the DNS server. The DNS resolver can obtain the latest domain name resolution rule from the cloud management end deployed in the public cloud network, and update the domain name resolution rule maintained by the DNS resolver based on the update message for the domain name resolution rule received from the cloud management end.
[0058] In actual application, since the DNS resolver as an edge node may be far away from the cloud management end, the management capability of the cloud management end on the edge node is relatively weak, and the link stability between the cloud management end and the edge node cannot be guaranteed, so that the domain name resolution rule cannot be updated in time, and domain name resolution errors are easily caused.
[0059] Therefore, the present specification proposes a DNS domain name management method. The cloud management end no longer directly sends an update message of the domain name resolution rule to the DNS resolver, and the DNS server sends the domain name resolution rule to the DNS resolver when sending a domain name resolution request to the DNS resolver, so that the DNS resolver performs domain name resolution according to the received domain name resolution rule to obtain a domain name resolution result.
[0060] In implementation, the domain name resolution rule corresponding to the domain name of the target cloud resource is obtained; in response to receiving a domain name resolution request for the domain name of the target cloud resource, the domain name resolution request and the domain name resolution rule are sent to the DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource; and the domain name resolution result is received from the DNS resolver.
[0061] In the above technical solution, by sending the domain name resolution rule to the DNS resolver when sending the domain name resolution request to the DNS resolver, it can be ensured that the DNS resolver can perform domain name resolution based on the latest domain name resolution rule, and the possibility of domain name resolution error is reduced.
[0062] In order to enable personnel in the technical field to better understand the technical solutions in the present application, the technical solutions in the present specification will be described clearly and completely in conjunction with the drawings in the embodiments of the present application.
[0063] Please refer to Figure 2 , Figure 2A DNS domain name management method provided by an example embodiment. The method can be applied to a DNS server.
[0064] It should be noted that the DNS server can be a cloud server deployed in a public cloud network, and can be used to process domain name resolution requests for a private cloud network corresponding to the DNS server. The public cloud network can deploy one or more DNS servers in each region, and the DNS server described in the present specification can be a DNS server deployed in the public cloud network and located in the same region as the private cloud network, which can be referred to as a local (Local) DNS server or a central DNS server. The DNS server can correspond to one or more private cloud networks located in the same region.
[0065] The private cloud network corresponding to the DNS server can be a cloud environment built or managed by an enterprise or an individual, and can be connected to the public cloud network; or it can also be a private cloud network created by a tenant (user) of the public cloud network in the public cloud network. In the private cloud network, the user can build a private DNS to facilitate the user to manage the cloud resources in the private network.
[0066] It should be noted that the public cloud network can be a cloud environment provided by a professional cloud service provider, and an enterprise or an individual can rent its services to host applications, data and services.
[0067] The DNS domain name management method can include the following steps.
[0068] S210, obtaining a domain name resolution rule corresponding to a domain name of a target cloud resource.
[0069] The DNS server can pre-obtain a domain name resolution rule corresponding to the private cloud network, which can specifically include a domain name resolution rule corresponding to a domain name of each cloud resource in the private cloud network.
[0070] It should be noted that the cloud resource can refer to a resource in the cloud network that can be used for computing and storage, and can include virtual machines, containers, storage spaces, databases, applications, etc. The target cloud resource is a cloud resource in the private cloud network. In the private cloud network, the user can build a private DNS, configure a corresponding domain name for each cloud resource, and a domain name resolution rule corresponding to each domain name.
[0071] The DNS server can obtain the domain name resolution rule corresponding to the domain name of the target cloud resource in various ways. For example, the user can upload the domain name resolution rule corresponding to the domain name of the target cloud resource to the DNS server, or the DNS server can obtain the domain name resolution rule corresponding to the domain name of the target cloud resource from the cloud management end corresponding to the public cloud network.
[0072] For example, in an embodiment, the domain name resolution rule corresponding to the domain name of each cloud resource in each private cloud network can be maintained on the cloud management end corresponding to the public cloud network. If it is necessary to update the domain name resolution rule corresponding to the domain name, the user can upload the update information of the domain name resolution rule or the updated domain name resolution rule to the cloud management end, so that the cloud management end updates the maintained domain name resolution rule. The cloud management end can periodically send the domain name resolution rule corresponding to the domain name of each cloud resource in the private cloud network corresponding to the DNS server to the DNS server; or the cloud management end can send the updated domain name resolution rule to the DNS server after the update of the domain name resolution rule; or the DNS server can request the cloud management end to obtain the domain name resolution rule corresponding to the domain name of the target cloud resource in the private cloud network according to the actual needs.
[0073] S220, in response to receiving the domain name resolution request for the domain name of the target cloud resource, sending the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain the domain name resolution result corresponding to the domain name of the target cloud resource.
[0074] The DNS resolver corresponding to the target cloud resource can be the DNS resolver corresponding to the private cloud network where the target cloud resource is located. The DNS resolver can be a server in the private cloud network for processing the domain name resolution request for the domain name of the cloud resource in the private cloud network initiated by the public cloud network side.
[0075] The DNS resolver can maintain the domain name resolution rule corresponding to the domain name of each cloud resource in the private cloud network.
[0076] If the cloud resource in the public cloud network wants to access the target cloud resource in the private cloud network, a domain name resolution request for the domain name of the target cloud resource can be initiated to the DNS server corresponding to the private cloud network in the public cloud network. The cloud resource in the public cloud network can be a resource available for computing and storage, and can be a cloud resource corresponding to a service purchased by the user of the private cloud network.
[0077] The DNS server can determine whether the domain name resolution request is for a domain name of a cloud resource in a private cloud network. If not, the DNS server can perform domain name resolution in a conventional manner, such as recursively resolving the domain name to obtain a domain name resolution result corresponding to the domain name. If yes, the DNS server can determine that the domain name resolution request is for a domain name of a target cloud resource in the private cloud network. In this case, the DNS server can send the domain name resolution request and a domain name resolution rule corresponding to the domain name of the target cloud resource to a DNS resolver corresponding to the private network.
[0078] The DNS server can send the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource in various manners. For example, the DNS server can send the domain name resolution request and the domain name resolution rule in a same request message to the DNS resolver corresponding to the target cloud resource, or send the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource separately.
[0079] For example, in an embodiment, the DNS server can send a request message based on a target data format to the DNS resolver corresponding to the target cloud resource in response to receiving a domain name resolution request for a domain name of the target cloud resource. The request message can include the domain name resolution request and the domain name resolution rule.
[0080] It should be noted that the target data format of the request message can be a data format extended according to an extension mechanism of a DNS protocol. The extension mechanism of the DNS protocol can be various, such as DNS security extension (DNSSEC), extension mechanism for DNS (EDNS), and the like. The EDNS is an extension mechanism of the DNS message format.
[0081] For example, in an embodiment, the extension mechanism of the DNS protocol is an EDNS0 extension mechanism. Please refer to Figure 3 , Figure 3A target data format extended based on the EDNS0 extension mechanism is shown, which includes an OPTION-CODE field indicating a data type, an Option length field indicating a data length, and a field containing a domain name resolution rule, etc. The domain name resolution rule can include address information of a target DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource in the cloud network. The target data format includes a DNSSERVER-NUM field indicating a server identifier of the target DNS server, an ADDRESS field and a PORT field indicating an IP address and a port number of the target DNS server.
[0082] For example, in an embodiment, the DNS server can check whether the DNS server has saved a domain name resolution rule corresponding to the domain name of the target cloud resource in response to receiving a domain name resolution request for the domain name of the target cloud resource. If the DNS server has not saved a domain name resolution rule corresponding to the domain name of the target cloud resource, the DNS server can send a rule request for the domain name of the target cloud resource or a rule request for a private cloud network in which the target cloud resource is located to the cloud management end to obtain a domain name resolution rule corresponding to the domain name of the target cloud resource or a domain name resolution rule corresponding to the domain names of all cloud resources in the private cloud network from the cloud management end, and save the received domain name resolution rule.
[0083] It should be noted that the DNS server can maintain a survival time corresponding to each domain name resolution rule. If the survival time of any domain name resolution rule reaches a preset time threshold, the DNS server can discard the domain name resolution rule or request the cloud management end to update the domain name resolution rule.
[0084] After the DNS resolver obtains the domain name resolution request and the domain name resolution rule corresponding to the domain name of the target cloud resource from the DNS server, the DNS resolver can perform domain name resolution on the domain name of the target cloud resource based on the received domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource. The domain name resolution result can include address information such as an IP address corresponding to the domain name of the target cloud resource.
[0085] The DNS resolver can resolve the domain name of the target cloud resource based on the received domain name resolution rule in various manners. If the DNS resolver maintains the domain name resolution result corresponding to the domain name of the target cloud resource, the domain name resolution result corresponding to the domain name of the target cloud resource can be obtained from the data maintained by the DNS resolver. Alternatively, if the DNS resolver does not maintain the domain name resolution result corresponding to the domain name of the target cloud resource, and the domain name resolution rule includes the address information of the target DNS server, for example, as shown in Figure 3 The domain name resolution rule in the request message can include the server identifier of the target DNS server and the address information (IP address and port number) of the target DNS server. Then, the DNS resolver can send a domain name resolution request for the domain name of the target cloud resource to the target DNS server according to the address information of the target DNS server, and obtain the domain name resolution result corresponding to the domain name of the target cloud resource from the target DNS server.
[0086] S230, receiving the domain name resolution result from the DNS resolver.
[0087] After the DNS resolver resolves the domain name of the target cloud resource based on the domain name resolution rule and obtains the domain name resolution result corresponding to the domain name of the target cloud resource, the DNS resolver can send the domain name resolution result to the DNS server.
[0088] After receiving the domain name resolution result, the DNS server can return the domain name resolution result to the cloud resource of the public cloud network that initiates the domain name resolution request, so that the cloud resource of the public cloud network can access the target cloud resource in the private cloud network based on the domain name resolution result.
[0089] Please refer to Figure 4 , Figure 4 a DNS domain name management method is shown, the method comprises:
[0090] The cloud management end can periodically send the domain name resolution rule uploaded by the user and corresponding to the domain name of each cloud resource in the private cloud network to the DNS server corresponding to the private cloud network, to update the domain name resolution rule maintained by the DNS server and corresponding to the domain name of each cloud resource in the private cloud network.
[0091] The DNS server sends a request message to the DNS resolver corresponding to the private cloud network in response to receiving the domain name resolution request for the domain name of the target cloud resource of the private cloud network, the request message including the domain name resolution request for the domain name of the target cloud resource of the private cloud network and the domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the domain name resolution rule includes address information of a target DNS server corresponding to the target cloud resource, the target DNS server being a DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource in the private cloud network;
[0092] After receiving the domain name resolution request and the domain name resolution rule, the DNS resolver can send the domain name resolution request to the target DNS server according to the address information of the target DNS server in the received domain name resolution rule;
[0093] The target DNS server performs domain name resolution on the domain name of the target cloud resource according to the received domain name resolution request for the domain name of the target cloud resource, obtains a domain name resolution result corresponding to the domain name of the target cloud resource, and returns the obtained domain name resolution result to the DNS resolver;
[0094] The DNS resolver returns the obtained domain name resolution result to the DNS server;
[0095] The DNS server returns the domain name resolution result to the initiator of the domain name resolution request, so that the initiator can access the target cloud resource in the private cloud network according to the domain name resolution result.
[0096] It should be noted that the domain name resolution result can be successful or failed, if successful, the domain name resolution result can also include an IP address corresponding to the domain name of the target cloud resource; if failed, the domain name resolution result can also include the reason for the failure.
[0097] In an embodiment, if the DNS server receives the domain name resolution result as successful resolution, the DNS server can return the domain name resolution result to the cloud resource of the public cloud network which initiates the domain name resolution request, so that the cloud resource of the public cloud network can access the target cloud resource in the private cloud network based on the domain name resolution result; if the domain name resolution result is a failed resolution, the DNS server can request the cloud management end to obtain new domain name resolution rules corresponding to the domain name of the target cloud resource in the cloud network again, and after receiving the new domain name resolution rules, the DNS server sends the domain name resolution request and the new domain name resolution rules to the DNS resolver corresponding to the private cloud network again, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the new domain name resolution rules to obtain a domain name resolution result corresponding to the domain name of the target cloud resource.
[0098] Since sending the domain name resolution rules at the same time when sending the domain name resolution request to the DNS resolver corresponding to the cloud network increases the network burden, the DNS server can not send the domain name resolution rules to the DNS resolver at first, and then send the domain name resolution rules to the DNS resolver when receiving the domain name resolution result as a failed resolution.
[0099] For example, in an embodiment, the DNS server sends the domain name resolution request to the DNS resolver corresponding to the private cloud network in response to receiving the domain name resolution request for the domain name of the target cloud resource of the private cloud network.
[0100] The DNS resolver can send the domain name resolution request to the target DNS server based on the address information of the target DNS server in the currently maintained domain name resolution rules after receiving the domain name resolution request for the domain name of the target cloud resource, to obtain a domain name resolution result corresponding to the domain name of the target cloud resource from the target DNS server.
[0101] If the address of the target DNS server corresponding to the domain name of the target cloud resource has been migrated, the obtained domain name resolution result can be a failed resolution.
[0102] The DNS resolver returns the domain name resolution result to the DNS server, and the DNS server can request the cloud management end to obtain new domain name resolution rules for the domain name of the target cloud resource of the private cloud network when determining that the obtained domain name resolution result is a failed resolution, and the new domain name resolution rules can include address information of a new target DNS server.
[0103] After obtaining the new domain name resolution rule, a request message is sent to the DNS resolver, the request message including the domain name resolution request and the new domain name resolution rule;
[0104] After receiving the domain name resolution request and the new domain name resolution rule, the DNS resolver can send the domain name resolution request to a new target DNS server according to the address information of the new target DNS server in the new domain name resolution rule, to obtain a new domain name resolution result corresponding to the domain name of the target cloud resource from the new target DNS server;
[0105] The DNS resolver returns the new domain name resolution result to the DNS server, and the DNS server returns the new domain name resolution result to the initiator of the domain name resolution request in a case where it is determined that the new domain name resolution result is a resolution success, so that the initiator can access the target cloud resource in the private cloud network according to the domain name resolution result.
[0106] From the technical solutions of the above embodiments, it can be seen that the embodiments of the present application can ensure that the DNS resolver can perform domain name resolution based on the latest domain name resolution rule by sending the DNS resolver a domain name resolution rule when the DNS server sends a domain name resolution request to the DNS resolver, thereby avoiding domain name resolution errors due to the failure to receive an update message of the domain name resolution rule from the cloud management end, and reducing the possibility of domain name resolution errors.
[0107] Please refer to Figure 5 , Figure 5 A DNS domain name management method is shown, which is applied to a DNS resolver corresponding to a cloud network, and the method includes the following steps.
[0108] S510, receiving a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver from a DNS server, and a domain name resolution rule corresponding to the domain name of the target cloud resource;
[0109] S530, performing domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule, to obtain a domain name resolution result corresponding to the domain name of the target cloud resource;
[0110] S530, sending the domain name resolution result to the DNS server.
[0111] Optionally, the domain name resolution rule includes address information of a target DNS server; the target DNS server is a DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource;
[0112] The domain name resolution rule is used to perform domain name resolution on the domain name of the target cloud resource, to obtain a domain name resolution result corresponding to the domain name of the target cloud resource.
[0113] According to the address information of the target DNS server, a domain name resolution request for the domain name of the target cloud resource is sent to the target DNS server.
[0114] The domain name resolution result corresponding to the domain name of the target cloud resource is obtained from the target DNS server.
[0115] Optionally, the domain name resolution request for the domain name of the target cloud resource corresponding to the DNS resolver and the domain name resolution rule corresponding to the domain name of the target cloud resource received from the DNS server include:
[0116] The DNS server receives a request message based on a target data format, and the request message includes a domain name resolution request for the domain name of the target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the target data format is a data format extended according to an extension mechanism of the DNS protocol.
[0117] Optionally, the extension mechanism based on the DNS protocol is an ENDS0 extension mechanism.
[0118] Optionally, the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to the private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains domain name resolution rules uploaded by the tenant and corresponding to the domain names of each cloud resource in the private cloud network; and the DNS server is a cloud server deployed on the public cloud network.
[0119] The DNS resolver can perform domain name resolution based on the latest domain name resolution rule by sending the domain name resolution rule to the DNS resolver when sending the domain name resolution request to the DNS resolver by the DNS server, so that the possibility of domain name resolution error is reduced.
[0120] Corresponding to the foregoing embodiments of the DNS domain name management method, the application also provides embodiments of a DNS domain name management device.
[0121] As shown in Figure 6 The DNS domain name management device includes a rule receiving module 601, a request forwarding module 602, and a result receiving module 603.
[0122] The rule receiving module 601 is configured to acquire a domain name resolution rule corresponding to a domain name of a target cloud resource.
[0123] The request forwarding module 602 is configured to, in response to receiving a domain name resolution request for the domain name of the target cloud resource, send the domain name resolution request and the domain name resolution rule to a DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource.
[0124] The result receiving module 603 is configured to receive the domain name resolution result from the DNS resolver.
[0125] The domain name resolution rule includes address information of a target DNS server; the target DNS server is a DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource.
[0126] Correspondingly, the domain name resolution result corresponding to the domain name of the target cloud resource is a domain name resolution result corresponding to the domain name of the target cloud resource and acquired from the target DNS server based on the address information.
[0127] Optionally, the request forwarding module 602 is configured to send a request message based on a target data format to the DNS resolver corresponding to the target cloud resource, where the request message includes the domain name resolution request and the domain name resolution rule; and the target data format is a data format extended according to an extension mechanism of a DNS protocol.
[0128] Optionally, the extension mechanism based on the DNS protocol is an ENDS0 extension mechanism.
[0129] Optionally, the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains domain name resolution rules corresponding to domain names of each cloud resource in the private cloud network and uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network.
[0130] The rule receiving module 601 is configured to acquire a domain name resolution rule corresponding to a domain name of a target cloud resource in the private cloud network and maintained on the cloud management end corresponding to the public cloud network.
[0131] In the above technical solution, the DNS resolver can perform domain name resolution based on the latest domain name resolution rule by sending the domain name resolution rule to the DNS resolver when the DNS server sends a domain name resolution request to the DNS resolver, thereby avoiding domain name resolution errors caused by the DNS resolver not receiving the update message of the domain name resolution rule of the cloud management end, and reducing the possibility of domain name resolution errors.
[0132] Corresponding to the above-mentioned embodiments of the DNS domain name management method, the present application also provides embodiments of a DNS domain name management device.
[0133] As shown in Figure 7 , the DNS domain name management device comprises a request receiving module 701, a domain name resolution module 702 and a result sending module 703.
[0134] The request receiving module 701 is configured to receive, from a DNS server, a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver, and a domain name resolution rule corresponding to the domain name of the target cloud resource;
[0135] The domain name resolution module 702 is configured to perform domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule, to obtain a domain name resolution result corresponding to the domain name of the target cloud resource;
[0136] The result sending module 703 is configured to send the domain name resolution result to the DNS server.
[0137] Optionally, the domain name resolution rule comprises address information of a target DNS server; the target DNS server is a DNS server that maintains the domain name resolution result corresponding to the domain name of the target cloud resource;
[0138] The domain name resolution module 702 is configured to:
[0139] According to the address information of the target DNS server, send a domain name resolution request for the domain name of the target cloud resource to the target DNS server;
[0140] Obtain the domain name resolution result corresponding to the domain name of the target cloud resource from the target DNS server.
[0141] Optionally, the request receiving module 701 is configured to receive a request message based on a target data format from the DNS server, the request message comprising a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the target data format is a data format extended according to an extension mechanism of a DNS protocol.
[0142] Optionally, the DNS protocol-based extension mechanism is an ENDS0 extension mechanism.
[0143] Optionally, the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network in which the target cloud resource is located; the cloud management terminal corresponding to the public cloud network maintains domain name resolution rules corresponding to domain names of each cloud resource in the private cloud network uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network.
[0144] In the above technical solution, by sending the domain name resolution rules to the DNS resolver when sending the domain name resolution request to the DNS resolver, it can be ensured that the DNS resolver can perform domain name resolution based on the latest domain name resolution rules, and the possibility of domain name resolution error is reduced.
[0145] Figure 8 is a schematic structural diagram of a device provided by an exemplary embodiment. Please refer to Figure 8 At the hardware level, the device includes a processor 802, an internal bus 804, a network interface 806, a memory 808, and a non-volatile memory 810, and can also include other required hardware. One or more embodiments of the present specification can be implemented in a software manner, such as reading a corresponding computer program from the non-volatile memory 810 into the memory 808 by the processor 802 and then running. Of course, in addition to the software implementation, one or more embodiments of the present specification do not exclude other implementation manners, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or a logic device.
[0146] The system, device, module, or unit illustrated in the above embodiments can be specifically implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0147] In a typical configuration, a computer includes one or more processors (CPUs), input / output interfaces, network interfaces, and memories.
[0148] Memory can include non-persistent memory, Random Access Memory (RAM), and / or non-volatile memory, such as read only memory (ROM) or flash memory, in computer readable media. Memory is an example of computer readable media.
[0149] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media, or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to computing devices. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0150] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal.
[0151] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or equipment including the element.
[0152] The above-described embodiments of the application have several aspects, no single one of which is solely responsible for the application's desirable attributes. Without limiting the scope of this application as expressed by the claims which follow, some further examples of aspects of the application are discussed below.
[0153] The terminology used in this description is for the purpose of describing particular embodiments only and is not intended to limit one or more embodiments of the present description. As used in one or more embodiments of the present description and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0154] It will be understood that, although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a temporal sequence. Rather, these terms are used only as distinguishable to reference various information. For example, without departing from the scope of one or more embodiments, first information can also be referred to as second information, and similarly, second information can also be referred to as first information. Depending on the context, the word "if' as used herein can be interpreted to mean "when" or "in response to determining" or "in response to a determination."
[0155] The foregoing is considered as illustrative only of the principles of one or more embodiments of the present description. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the one or more embodiments of the present description to the exact construction and operation described. Accordingly, all such variations are intended to be included within the scope of one or more embodiments of the present description as defined in the claims below and any equivalents thereto.
Claims
1. A DNS domain name management method, characterized by, Applied to a DNS server, comprising: Obtain the domain name resolution rule corresponding to the domain name of the target cloud resource in the private cloud network maintained on the cloud management end corresponding to the public cloud network; wherein the target cloud resource is a cloud resource in a private cloud network created by a tenant of the public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is the DNS resolver corresponding to the private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains the domain name resolution rule corresponding to the domain name of each cloud resource in the private cloud network uploaded by the tenant; the DNS server is a cloud server deployed on the public cloud network; In response to receiving a domain name resolution request for the domain name of the target cloud resource, send the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain the domain name resolution result corresponding to the domain name of the target cloud resource; Receive the domain name resolution result from the DNS resolver.
2. The method of claim 1, wherein, The domain name resolution rule includes address information of a target DNS server; the target DNS server is a DNS server that maintains the domain name resolution result corresponding to the domain name of the target cloud resource; Correspondingly, the domain name resolution result corresponding to the domain name of the target cloud resource is the domain name resolution result corresponding to the domain name of the target cloud resource obtained from the target DNS server based on the address information.
3. The method of claim 1, wherein, The sending of the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource comprises: Send a request message based on a target data format to the DNS resolver corresponding to the target cloud resource, wherein the request message includes the domain name resolution request and the domain name resolution rule; wherein the target data format is a data format extended according to the extension mechanism of the DNS protocol.
4. The method of claim 3, wherein, The extension mechanism based on the DNS protocol is the ENDS0 extension mechanism.
5. A DNS domain name management method characterized by, Applied to a DNS resolver, comprising: Receive a domain name resolution request for the domain name of a target cloud resource corresponding to the DNS resolver from a DNS server, and a domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is the DNS resolver corresponding to the private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains the domain name resolution rule corresponding to the domain name of each cloud resource in the private cloud network uploaded by the tenant; the DNS server is a cloud server deployed on the public cloud network; Perform domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain the domain name resolution result corresponding to the domain name of the target cloud resource; Send the domain name resolution result to the DNS server.
6. The method of claim 5, wherein, The domain name resolution rule comprises address information of a target DNS server; the target DNS server is a DNS server that maintains a domain name resolution result corresponding to the domain name of the target cloud resource; The domain name resolution based on the domain name resolution rule on the domain name of the target cloud resource to obtain the domain name resolution result corresponding to the domain name of the target cloud resource comprises: According to the address information of the target DNS server, a domain name resolution request for the domain name of the target cloud resource is sent to the target DNS server; The domain name resolution result corresponding to the domain name of the target cloud resource is obtained from the target DNS server.
7. The method of claim 5, wherein, The DNS resolver receives a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource from a DNS server, and the DNS resolver comprises: The DNS resolver receives a request message based on a target data format from a DNS server, the request message comprising a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the domain name of the target cloud resource; wherein the target data format is a data format extended according to an extension mechanism of a DNS protocol.
8. The method of claim 7, wherein, The extension mechanism based on the DNS protocol is an ENDS0 extension mechanism.
9. A DNS domain name management apparatus characterized by comprising: The DNS resolver comprises: A rule receiving module configured to obtain a domain name resolution rule corresponding to a domain name of a target cloud resource in a private cloud network maintained on a cloud management terminal corresponding to a public cloud network; wherein the target cloud resource is a cloud resource in the private cloud network created by a tenant of the public cloud network; a DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network where the target cloud resource is located; the cloud management terminal corresponding to the public cloud network maintains a domain name resolution rule corresponding to a domain name of each cloud resource in the private cloud network uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network; A request forwarding module configured to, in response to receiving a domain name resolution request for the domain name of the target cloud resource, send the domain name resolution request and the domain name resolution rule to the DNS resolver corresponding to the target cloud resource, so that the DNS resolver performs domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource; A result receiving module configured to receive the domain name resolution result from the DNS resolver.
10. A DNS domain name management apparatus characterized by comprising: The DNS resolver comprises: The request receiving module is configured to receive, from a DNS server, a domain name resolution request for a domain name of a target cloud resource corresponding to the DNS resolver and a domain name resolution rule corresponding to the target cloud resource; the target cloud resource is a cloud resource in a private cloud network created by a tenant of a public cloud network in the public cloud network; the DNS resolver corresponding to the target cloud resource is a DNS resolver corresponding to a private cloud network where the target cloud resource is located; the cloud management end corresponding to the public cloud network maintains domain name resolution rules corresponding to domain names of each cloud resource in the private cloud network uploaded by the tenant; and the DNS server is a cloud server deployed on the public cloud network. The domain name resolution module is configured to perform domain name resolution on the domain name of the target cloud resource based on the domain name resolution rule to obtain a domain name resolution result corresponding to the domain name of the target cloud resource. The result sending module is configured to send the domain name resolution result to the DNS server.
11. An electronic device, comprising: The method comprises: a processor; a memory for storing processor-executable instructions; wherein the processor implements the method of any one of claims 1-8 by running the executable instructions.
12. A computer-readable storage medium, characterized in that, A computer program product comprising a computer readable medium having stored thereon computer instructions that, when executed by a processor, implement the steps of the method of any one of claims 1-8.
Citation Information
Patent Citations
Resolution of domain name requests in heterogeneous network environments
US10862852B1