Domain name configuration method and device, electronic equipment and storage medium

By configuring the association between the target domain name and the virtual private cloud in the cloud computing and generating the regional field information, the problems of logical complexity and data redundancy in multi-region domain name resolution are solved, and efficient domain name configuration is achieved.

CN116668401BActive Publication Date: 2026-01-02BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310652530.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2026-01-02
Estimated Expiration
2043-06-02

AI Technical Summary

Technical Problem

In cloud computing, existing technologies require unified allocation of control planes across multiple regions, leading to complex implementation logic and data redundancy, especially when multiple cloud servers need to resolve the same domain name.

Method used

By configuring the association between the target domain name and multiple virtual private clouds, regional field information is generated and transmitted to the data plane, simplifying it into a centralized control plane and regional data plane architecture, thus avoiding operations on multiple control planes.

Benefits of technology

The domain name configuration method has been optimized, data redundancy has been reduced, the implementation logic has been simplified, and the reliability and efficiency of domain name configuration have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668401B_ABST
    Figure CN116668401B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of cloud computing, and discloses a domain name configuration method and device, an electronic device and a storage medium. The domain name configuration method comprises: configuring an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect within the plurality of target virtual private clouds, and the plurality of target virtual private clouds comprise at least two virtual private clouds located in different regions; generating regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating a region in which the target domain name takes effect; and transmitting the regional field information to a data plane, the data plane comprising a data plane corresponding to a region in which the plurality of target virtual private clouds are located. The present disclosure effectively optimizes the domain name configuration mode and reduces data redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of cloud computing, in particular to a domain name configuration method and device, electronic equipment and storage medium. BACKGROUND

[0002] In the technical field of cloud computing, there is often a situation that cloud servers in different regions need to resolve the same domain name, and the data plane of the cloud servers in different regions needs to have the function of resolving the same domain name. In the related art, each data plane corresponds to a control plane, in order to realize the above function, the control planes of multiple regions need to be uniformly deployed, for example, a fusion layer is separately set to operate multiple control planes, so that the cloud servers in multiple regions can all resolve the same domain name. However, since the related art needs to uniformly deploy the control planes of multiple regions, there are problems of complex implementation logic and a large amount of data redundancy caused by operating multiple control planes. SUMMARY

[0003] Therefore, the present disclosure can provide a domain name configuration method, device, electronic equipment and storage medium to solve the problems of complex implementation logic and a large amount of data redundancy in the related art.

[0004] In a first aspect, the present disclosure provides a domain name configuration method, which comprises:

[0005] configuring an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, and the plurality of target virtual private clouds include at least two virtual private clouds located in different regions;

[0006] generating regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating the regions where the target domain name takes effect;

[0007] transmitting the regional field information to a data plane, the data plane including data planes corresponding to the regions where the plurality of target virtual private clouds are located.

[0008] The present disclosure transmits the regional field information generated according to the association relationship between the target domain name and the plurality of target virtual private clouds to the data plane, so that the data plane knows in which regions the target domain name takes effect. Compared with the related art, the present disclosure does not need to operate multiple control planes, but only solves the problems of complex implementation logic and data redundancy caused by operating multiple control planes by transmitting the generated regional field information. It can be seen that the present disclosure effectively optimizes the domain name configuration method and greatly reduces data redundancy.

[0009] In a second aspect, the present disclosure provides a domain name configuration device, which comprises:

[0010] The configuration module is configured to configure an association relationship between the target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, and the plurality of target virtual private clouds include at least two virtual private clouds located in different regions.

[0011] The generation module is configured to generate regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating a region in which the target domain name takes effect.

[0012] The transmission module is configured to transmit the regional field information to a data plane, the data plane including a data plane corresponding to a region in which the plurality of target virtual private clouds are located.

[0013] In a third aspect, the present disclosure provides an electronic device, including a memory and a processor, the memory and the processor being in communication connection with each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the domain name configuration method of the first aspect or any of the corresponding embodiments thereof.

[0014] In a fourth aspect, the present disclosure provides a computer readable storage medium, the computer readable storage medium storing computer instructions, and the computer instructions being used to make a computer execute the domain name configuration method of the first aspect or any of the corresponding embodiments thereof. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed in the specific embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.

[0016] Figure 1 is a flowchart of a domain name configuration method according to an embodiment of the present disclosure;

[0017] Figure 2 is a flowchart of another domain name configuration method according to an embodiment of the present disclosure;

[0018] Figure 3 is a flowchart of still another domain name configuration method according to an embodiment of the present disclosure;

[0019] Figure 4 is a schematic diagram of a domain name configuration architecture according to an embodiment of the present disclosure.

[0020] Figure 5 is a schematic diagram of a domain name configuration method according to an embodiment of the present disclosure combined with a specific example.

[0021] Figure 6 is a schematic diagram of a domain name configuration architecture used in the related art.

[0022] Figure 7 is a structural block diagram of a domain name configuration apparatus according to an embodiment of the present disclosure;

[0023] Figure 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] To make the objects, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.

[0025] In the field of cloud computing technology, region is a very important concept. Different regions correspond to different places in the physical sense. Different places are often far apart, and the cost of direct connection between these places by optical fiber is high. In general, a region is deployed in a place where the demand of users is relatively large. Therefore, for users, if resources purchased in different regions need to be interconnected, public network access is often required. In the cloud intranet DNS (Domain Name System), there is often a cross-region demand. Specifically, a cloud computing user will deploy domain name resources in multiple regions in order to achieve high availability and other purposes, and some domain name resources often need the same domain name resolution. For example, a user A builds a website on the cloud, the main website domain name is company.com, and the user A has purchased a batch of ECS (Elastic Compute Service) in region R1 and region R2. These ECSs all need to be able to resolve company.com.

[0026] To enable cloud servers in different regions to resolve the same domain name, the related art generally uses a classic architecture of deploying a control plane in different regions. To achieve the above purpose, a synchronization mechanism is needed. Specifically, a fusion layer is used to uniformly allocate the control planes of all regions, and a synchronization mechanism is used to synchronize the domain name configuration information of the control planes of all regions. Figure 6As shown, the architecture shows that the data plane (cn-beijing, cn-shanghai, cn-guangzhou) is controlled by the one-to-one corresponding control plane (cn-beijing, cn-shanghai, cn-guangzhou), and the fusion layer is used to control each control plane, for example, when the data plane cn-beijing and the data plane cn-shanghai both need to resolve the domain name example.com, the related technology needs to issue instructions to the control plane cn-beijing and the control plane cn-shanghai multiple times in the manner of the fusion layer; generally, two methods can be used: (1) the fusion layer synchronizes the operation results of the control plane to other related control planes after completing the operation on one control plane, for example, first operating the control plane cn-beijing, and then synchronizing the operation results to the control plane cn-shanghai; (2) the fusion layer simultaneously operates on each related control plane and ensures the consistency of the operation results; through the above methods, the consistency of the operation results of the control plane cn-beijing and the control plane cn-shanghai can be ensured, and it is ensured that different data planes can resolve the same domain name. It can be seen that the related technology needs the fusion layer to operate on multiple control planes respectively, and there are problems such as very complex implementation logic, and a large amount of data redundancy, especially in the case that the number of cloud servers for resolving the same domain name is large, the above problems are more obvious. Moreover, for the case that the user adds a subdomain name under the current domain name, the fusion layer needs to issue instructions to each control plane capable of resolving the current domain name again, and only when the operation on each control plane is successful, the function of adding the subdomain name can be realized, therefore, the related technology needs complex implementation logic to ensure the consistency of the distributed domain name resolution, and there is a large amount of data redundancy.

[0027] According to the embodiments of the present disclosure, a domain name configuration method is provided, and it should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] In the present embodiment, a domain name configuration method is provided, which can be used for a centralized control plane, and the centralized control plane is arranged in the cloud, that is, the domain name configuration method is applied to the cloud, Figure 1 is a flowchart of the domain name configuration method according to the embodiments of the present disclosure, as Figure 1 shown, the flow includes the following steps:

[0029] Step S101, configure an association relationship between the target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, and the plurality of target virtual private clouds include at least two virtual private clouds located in different regions.

[0030] In the embodiment, the target domain name (zone) can be a main station domain name, for example, company.com; the target virtual private cloud (vpc, virtual private cloud) represents a network space exclusively occupied by a cloud computing user, and the zone can be resolved only from the vpc associated with the zone, that is, the zone takes effect in the associated vpc.

[0031] The embodiment is applicable to a plurality of vpcs, and at least two of the plurality of vpcs are located in different regions. Taking vpc-beijing-1, vpc-beijing-2, and vpc-guangzhou-1 as examples, vpc-beijing-1 and vpc-beijing-2 are located in beijing, and vpc-guangzhou-1 is located in guangzhou.

[0032] Step S102, generating regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating the region where the target domain name takes effect.

[0033] In the embodiment, a new designated field (indicated as region) can be added to a domain name table (zone table) of a centralized control plane, and the content of the region field is the regional field information.

[0034] The zone table is used to record domain names, and the recorded domain names include the target domain name.

[0035] Step S103, transmitting the regional field information to a data plane, the data plane including a plurality of data planes corresponding to regions where the plurality of target virtual private clouds are located.

[0036] In the embodiment, the regional field information is transmitted to the data plane in two ways: requesting the regional field information from the control plane or receiving the regional field information sent by the data plane.

[0037] The data plane refers to a data plane of a cloud server, for example, data planes of a plurality of cloud servers in different regions, and the data plane can be all or part of data planes corresponding to the centralized control plane. In the embodiment, the number of data planes is a plurality.

[0038] Compared with the related art, the present disclosure uses a DNS control plane deployed centrally and a data plane deployed in a region, simplifies the control plane architecture in the related art, realizes the effects of centralized deployment of the control plane and physical isolation of the data plane, and only needs to operate one centralized control plane, without switching between different control planes in the related art. Therefore, the embodiment greatly simplifies the implementation logic of domain name configuration and the operation of the user, and significantly improves the reliability of the domain name configuration process.

[0039] The present disclosure solves the problems of complex domain name configuration implementation logic and data redundancy caused by operating multiple control planes only by transmitting the generated regional field information, and therefore effectively optimizes the domain name configuration method and greatly reduces data redundancy.

[0040] In some optional embodiments, the step S102 of generating the regional field information corresponding to the target domain name comprises: adding the regional field information corresponding to the target domain name in a domain name table, and the domain name table records the target domain name.

[0041] The domain name table specifically refers to a zone table, and the zone table is generally used to record domain names. In the embodiment, the zone table is used to record the regional field information corresponding to the domain name on the basis of recording the domain name.

[0042] The present disclosure accurately records the associated target domain name and regional field information based on the domain name table, and each domain name in the domain name table corresponds to a regional field information, so that it is accurately indicated in the domain name table that the target domain name is valid in which regions.

[0043] In the embodiment, a domain name configuration method is provided, which can be used for a centralized control plane, and the centralized control plane is arranged in the cloud, Figure 2 is a flowchart of the domain name configuration method according to the embodiment of the present disclosure, as Figure 2 shown, the flowchart comprises the following steps:

[0044] Step S201, configure an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is valid in the plurality of target virtual private clouds, and the plurality of target virtual private clouds comprise at least two virtual private clouds located in different regions. For details, please refer to the step S101 of the embodiment shown in Figure 1 not repeated here.

[0045] Step S202, generate regional field information corresponding to the target domain name according to the association relationship, and the regional field information indicates the region in which the target domain name is valid.

[0046] Specifically, the above step S202 comprises:

[0047] Step S2021, according to the association relationship, determine a plurality of different regions associated with the target domain name.

[0048] The association relationship of the embodiment represents the relationship between the target domain name and the plurality of target virtual private clouds, and thus the relationship between the target domain name and the different regions where the plurality of target virtual private clouds are located can be determined, so as to determine the plurality of different regions associated with the target domain name.

[0049] In combination with the foregoing embodiments, for the target domain name company.com, the plurality of different regions associated therewith are specifically cn-beijing (the region where vpc-beijing-1 and vpc-beijing-2 are located) and cn-guangzhou (the region where vpc-guangzhou-1 is located).

[0050] Step S2022, generate a bitmap for representing the plurality of different regions, the bitmap including a preset number of binary numbers, the value of the binary number representing whether the target domain name is effective in the region corresponding to the binary number.

[0051] In the embodiment, the bitmap (bitmap) data type can be int64, i.e., a 64-bit bitmap, which can be used to represent at most 64 different regions, and each bit in the 64-bit bitmap represents a region. Of course, the number of bits in the bitmap can be set according to actual conditions, for example, a 128-bit bitmap can be used.

[0052] In the embodiment, the value of the binary number is 1, indicating that the target domain name is effective in the region corresponding to the binary number, and the value of the binary number is 0, indicating that the target domain name is not effective in the region corresponding to the binary number; or, in an alternative scheme, the value of the binary number is 1, indicating that the target domain name is not effective in the region corresponding to the binary number, and the value of the binary number is 0, indicating that the target domain name is effective in the region corresponding to the binary number; the above first embodiment of the disclosure is described.

[0053] Step S2023, generate region field information corresponding to the target domain name based on the bitmap.

[0054] In the embodiment, the bitmap is used to represent the region corresponding to the target domain name, and the corresponding region field information is generated according to the bitmap.

[0055] The embodiment can also send the region field information generated based on the bitmap to the data plane. For the data plane deployed in different regions, the region field information generated based on the bitmap can be used to accurately determine the information related to the domain name effective in the current region, such as the configuration information of the domain name, etc. Neither the control plane nor the data plane has data redundancy, so the embodiment further avoids the problem of data redundancy.

[0056] In some optional embodiments, the step S2023 comprises performing a union operation on the preset number of binary numbers in the bitmap to obtain the region field information corresponding to the target domain name.

[0057] In this embodiment, the bitmap is the union of all target virtual private clouds (vpc) associated with the target domain name. By performing a union operation on all binary numbers in the bitmap, a decimal number result is obtained, which is used as the region field information corresponding to the target domain name.

[0058] For example, taking the binary number corresponding to cn-beijing as 0001 and the binary number corresponding to cn-guangzhou as 0100 as an example, the region field information can be bit(cn-beijing) + bit(cn-guangzhou) = 0001 + 0100 = 0101 (binary number) = 5 (decimal number).

[0059] The embodiments of the present disclosure can use a decimal number result to represent the region field information based on the above-mentioned method of generating the region field information. The above-mentioned scheme not only ensures the accuracy of the region field information, but also further optimizes the domain name configuration logic.

[0060] Step S203: transmitting the region field information to a data plane, wherein the data plane comprises a plurality of data planes corresponding to regions where target virtual private clouds are located. For details, please refer to Figure 1 The step S103 of the embodiment shown will not be repeated here.

[0061] For the data plane, after receiving the region field information, whether to save the configuration of the target domain name is determined according to the preset number of binary numbers in the bitmap. For example, for the target domain name company.com, the data plane cn-beijing and the data plane cn-guangzhou need to save the configuration of the target domain name, and the data plane cn-shanghai does not need to save the configuration of the target domain name; saving the configuration of the target domain name specifically includes obtaining or receiving related configuration information of the target domain name.

[0062] A domain name configuration method is provided in this embodiment, which can be used for the above-mentioned centralized control plane, the centralized control plane is arranged in the cloud, Figure 3 is a flowchart of the domain name configuration method according to the embodiments of the present disclosure, as Figure 3 shown, the flowchart comprises the following steps:

[0063] Step S301, configuring an association relationship between the target domain name and the plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, and the plurality of target virtual private clouds including at least two virtual private clouds located in different regions.

[0064] Specifically, the step S301 includes:

[0065] Step S3011, determining, in a binding table, a domain name code corresponding to the target domain name, the binding table being used to indicate the association relationship between the domain name and the virtual private cloud.

[0066] The binding table (vpc_bind table) in the embodiment corresponds to a domain name table (zone table) in a data structure, and a domain name code (zone_id) in the vpc_bind table associates the vpc_bind table with the zone table. The domain name code determined in the binding table is the code of the target domain name.

[0067] Step S3012, adding, in the binding table, a plurality of virtual private cloud records associated with the domain name code, the plurality of virtual private cloud records being used to one-to-one indicate the plurality of target virtual private clouds.

[0068] In the vpc_bind table, a plurality of virtual private cloud records associated with the target domain name are added under the zone_id entry.

[0069] For the centralized control plane, the embodiment of the present disclosure can accurately bind the domain name code and the corresponding plurality of virtual private cloud records in the binding table in the centralized control plane, so as to reliably bind the target domain name and the plurality of target virtual private clouds.

[0070] Step S302, generating regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating the region in which the target domain name takes effect. For details, please refer to Figure 1 The step S102 of the embodiment shown in the figure will not be repeated here.

[0071] Step S303, transmitting the regional field information to a data plane, the data plane including a data plane corresponding to a region in which the plurality of target virtual private clouds are located. For details, please refer to Figure 1 The step S103 of the embodiment shown in the figure will not be repeated here.

[0072] In some optional embodiments, the domain name configuration method further includes:

[0073] Step a1, receiving a configuration pull request issued by the data plane according to the regional field information, the configuration pull request being used to request configuration information of the target domain name.

[0074] In this embodiment, the centralized control plane can be used to generate configuration information of the domain name, and the data plane can pull the corresponding configuration information according to whether the actual domain name is effective.

[0075] Step a2, transmitting the configuration information of the target domain name to the data plane.

[0076] For example, the centralized data plane sends the configuration information of the target domain name to the data plane in response to the configuration pulling request.

[0077] In the embodiment of the present disclosure, after the data plane receives the regional field information, the data plane can obtain the configuration information of the target domain name from the control plane according to the regional field information, so as to avoid obtaining the configuration information of the domain name which is not effective in the current data plane region, and further reduce the occurrence of data redundancy.

[0078] In some optional embodiments, the domain name configuration method further includes:

[0079] Step b1, adding one or more subdomain names under the target domain name, and updating the configuration information of the target domain name by using the added subdomain name.

[0080] For example, the target domain name is company.com, and the subdomain name can be www.company.com.

[0081] Based on the added subdomain name, the configuration information of the target domain name is updated, and the embodiment of the present disclosure can also realize the function of quickly configuring the subdomain name, and further optimize the domain name configuration logic of the present disclosure.

[0082] As shown in Figure 4 The present disclosure provides a centralized cloud DNS control plane system design scheme, and taking the domain name example.com as an example, the data plane cn-beijing and the data plane cn-shanghai need to resolve the domain name example.com. The present disclosure only needs to associate the domain name with the virtual private cloud through the centralized control plane, generate regional field information, and transmit the regional field information to the data plane, so as to realize the purpose that the data plane cn-beijing and the data plane cn-shanghai have the same domain name example.com. Compared with Figure 6 Based on the fusion layer domain name configuration scheme, the whole domain name configuration architecture structure of the present disclosure is more simplified, the domain name configuration implementation logic is greatly optimized, and the data redundancy problem is avoided.

[0083] As shown in Figure 5As shown, the user creates a zone, for example, company.com, the centralized control plane adds a record in the zone table, for example, adds company.com in the zone_name field. Then, the user associates vpc-beijing-1, vpc-beijing-2 and vpc-guangzhou-1 for the current zone, for example, the user checks or selects, the centralized control plane responds to the user operation to execute the configuration of the association between company.com and vpc-beijing-1, vpc-beijing-2 and vpc-guangzhou-1, and adds three records in the vpc_bind table, the three records specifically include the zone_id corresponding to company.com and the records formed by vpc-beijing-1, vpc-beijing-2 and vpc-guangzhou-1 respectively, and the region field information of the zone is generated according to the union of the regions to which the above three vpcs belong, the regions include beijing and guangzhou, for example, the binary number corresponding to cn-beijing is 0001 (i.e. 1), which is represented as 0b0001, the binary number corresponding to cn-shanghai is 0010 (i.e. 2), which is represented as 0b0010, and the binary number corresponding to cn-guangzhou is 0100 (i.e. 4), which is represented as 0b0100, then the bitmap used to represent beijing and guangzhou is specifically 0101, and the region field information is specifically bit(cn-beijing)+bit(cn-guangzhou)=5, then the region field information is transmitted to the data plane, for example, the region field information=5 can be respectively pushed to the data plane cn-beijing, the data plane cn-shanghai and the data plane cn-guangzhou, for each data plane, the region field information=5 can be used to directly determine that the domain name company.com takes effect in beijing and guangzhou; or the embodiment can at least push the region field information to the data plane cn-beijing and the data plane cn-guangzhou; then the data plane cn-beijing and the data plane cn-guangzhou can pull the configuration information of the domain name company.com from the centralized control plane, so that the data plane cn-beijing and the data plane cn-guangzhou can resolve the domain name company.com; the data plane cn-shanghai will not pull the configuration information of the domain name company.com.

[0084] A domain name configuration apparatus is also provided in the embodiments, which is configured to implement the above-described embodiments and preferred embodiments, and details of which have been described above. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0085] The embodiments provide a domain name configuration apparatus, as shown in Figure 7 comprises:

[0086] The configuration module 701 is configured to configure an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, and the plurality of target virtual private clouds include at least two virtual private clouds located in different regions.

[0087] The generation module 702 is configured to generate regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating a region in which the target domain name takes effect.

[0088] The transmission module 703 is configured to transmit the regional field information to a data plane, the data plane including a data plane corresponding to a region in which the plurality of target virtual private clouds are located.

[0089] In some optional embodiments, the generation module 702 includes:

[0090] The first determination unit is configured to determine a plurality of different regions associated with the target domain name according to the association relationship.

[0091] The first generation unit is configured to generate a bitmap for indicating the plurality of different regions, the bitmap including a preset number of binary numbers, and a value of a binary number indicating whether the target domain name takes effect in a region corresponding to the binary number.

[0092] The second generation unit is configured to generate the regional field information corresponding to the target domain name based on the bitmap.

[0093] In some optional embodiments, the second generation unit is configured to perform a set operation on the preset number of binary numbers in the bitmap to obtain the regional field information corresponding to the target domain name.

[0094] In some optional embodiments, the configuration module 701 includes:

[0095] The second determination unit is configured to determine a domain name code corresponding to the target domain name in a binding table, the binding table being configured to indicate an association relationship between a domain name and a virtual private cloud.

[0096] The adding unit is configured to add, in the binding table, a plurality of virtual private cloud records associated with the domain name code, the plurality of virtual private cloud records being used to one-to-one represent the plurality of target virtual private clouds.

[0097] In some optional embodiments, the generating module 702 is configured to add geographical field information corresponding to the target domain name in a domain name table, the target domain name being recorded in the domain name table.

[0098] In some optional embodiments, the domain name configuration apparatus further includes a request receiving module and a configuration sending module.

[0099] The request receiving module is configured to receive a configuration pulling request issued by the data plane according to the geographical field information, the configuration pulling request being used to request configuration information of the target domain name.

[0100] The configuration sending module is configured to transmit the configuration information of the target domain name to the data plane.

[0101] In some optional embodiments, the domain name configuration apparatus further includes a subdomain name adding module.

[0102] The subdomain name adding module is configured to add one or more subdomain names under the target domain name, and update the configuration information of the target domain name by using the added subdomain names.

[0103] The domain name configuration apparatus in the embodiment is presented in the form of functional units, and the units refer to ASIC circuits, processors and memories executing one or more software or fixed programs, and / or other devices that can provide the above functions.

[0104] Further function descriptions of the above modules and units are the same as those of the corresponding embodiments, and will not be described here.

[0105] The embodiment of the present disclosure further provides an electronic device having the above Figure 7 domain name configuration apparatus.

[0106] Please refer to Figure 8 , Figure 8 is a structural schematic diagram of an electronic device provided by an optional embodiment of the present disclosure, as Figure 8As shown, the electronic device includes one or more processors 10, memory 20, and interfaces 30 for communicating with other devices and for communicating across a network. The various components communicate over one or more communication buses or signal lines. The processors 10 can process instructions for execution within the electronic device, including instructions stored in the memory 20 or elsewhere to implement routines for displaying graphical information for a GUI on an external input / output device, such as a display device coupled to the interface. In some alternative implementations, multiple processors and / or multiple buses can be used, as appropriate, along with multiple memories and types of memory. Also, various components can be installed in communicating relation to each other, such as within a common housing, or in other ways as appropriate. Figure 8 The processor 10 is taken as an example.

[0107] The processor 10 can be a central processing unit, a network processor, or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic device, a general array logic, or any combination thereof.

[0108] The memory 20 stores instructions that are executable by the at least one processor 10, to cause the at least one processor 10 to perform the methods illustrated in the above embodiments.

[0109] The memory 20 can include a program region storing an operating system and application programs required by at least one function, and a data region storing data created according to the use of the electronic device. In addition, the memory 20 can include a high-speed random access memory, and can further include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some alternative implementations, the memory 20 can optionally include a memory disposed remotely from the processor 10, which can be connected to the electronic device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0110] The memory 20 can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid state disk. The memory 20 can further include a combination of the above-mentioned types of memories.

[0111] The electronic device further includes a communication interface 30 for communicating with other devices or a communication network.

[0112] The embodiments of the present disclosure further provide a computer readable storage medium, and the method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or recorded in a storage medium, or be implemented as computer code originally stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, processor or hardware, the method shown in the above embodiments is implemented.

[0113] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present disclosure, and such modifications and changes fall within the scope defined by the appended claims.

Claims

1. A domain name configuration method, characterized by, The method comprises: configuring an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, the plurality of target virtual private clouds comprising at least two virtual private clouds located in different regions; generating regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating a region in which the target domain name takes effect; the generating of the regional field information corresponding to the target domain name according to the association relationship comprises: determining a relationship between the target domain name and different regions in which the plurality of target virtual private clouds are located according to the association relationship, to determine a plurality of different regions associated with the target domain name; generating a bitmap comprising a preset number of binary numbers for indicating the plurality of different regions, a value of a binary number being 1 indicating that the target domain name takes effect in a region corresponding to the binary number, and a value of the binary number being 0 indicating that the target domain name does not take effect in the region corresponding to the binary number, or a value of a binary number being 1 indicating that the target domain name does not take effect in a region corresponding to the binary number, and a value of the binary number being 0 indicating that the target domain name takes effect in the region corresponding to the binary number; and performing a set operation on all binary numbers in the bitmap to obtain a result of a decimal number, the result of the decimal number serving as the regional field information corresponding to the target domain name; transmitting the regional field information to a data plane, the data plane comprising a data plane corresponding to a region in which the plurality of target virtual private clouds are located.

2. The method of claim 1, wherein, The configuring of the association relationship between the target domain name and the plurality of target virtual private clouds comprises: determining a domain name code corresponding to the target domain name in a binding table, the binding table indicating an association relationship between a domain name and a virtual private cloud; adding a plurality of virtual private cloud records associated with the domain name code in the binding table, the plurality of virtual private cloud records one-to-one indicating the plurality of target virtual private clouds.

3. The method of claim 1, wherein, The generating of the regional field information corresponding to the target domain name comprises: adding the regional field information corresponding to the target domain name in a domain name table, the domain name table recording the target domain name.

4. The method of claim 1, wherein, The method further comprises: receiving a configuration pull request issued by the data plane according to the regional field information, the configuration pull request being used to request configuration information of the target domain name; transmitting the configuration information of the target domain name to the data plane.

5. The method according to claim 1 or 4, characterized in that, The method further comprises: adding one or more subdomain names under the target domain name, and updating the configuration information of the target domain name by using the added subdomain names.

6. A domain name configuration apparatus characterized by comprising: The apparatus comprises: a configuration module configured to configure an association relationship between a target domain name and a plurality of target virtual private clouds, the association relationship indicating that the target domain name is used to take effect in the plurality of target virtual private clouds, the plurality of target virtual private clouds comprising at least two virtual private clouds located in different regions; The generating module is configured to generate regional field information corresponding to the target domain name according to the association relationship, the regional field information indicating a region in which the target domain name is valid; the generating module includes a first determining unit, a first generating unit, and a second generating unit; The first determining unit is configured to determine a relationship between the target domain name and different regions in which the plurality of target virtual private clouds are located according to the association relationship, to determine a plurality of different regions associated with the target domain name; The first generating unit is configured to generate a bitmap including a preset number of binary numbers for indicating the plurality of different regions, a value of a binary number being 1 indicating that the target domain name is valid in a region corresponding to the binary number, and a value of the binary number being 0 indicating that the target domain name is invalid in the region corresponding to the binary number, or a value of a binary number being 1 indicating that the target domain name is invalid in a region corresponding to the binary number, and a value of the binary number being 0 indicating that the target domain name is valid in the region corresponding to the binary number; The second generating unit is configured to perform a union operation on all binary numbers in the bitmap to obtain a result of a decimal number, the result of the decimal number being taken as the regional field information corresponding to the target domain name; The transmission module is configured to transmit the regional field information to a data plane, the data plane including a data plane corresponding to a region in which the plurality of target virtual private clouds are located.

7. An electronic device, comprising: The memory and the processor are communicatively connected, and the memory stores computer instructions; the processor executes the computer instructions to perform the domain name configuration method in any one of claims 1 to 5. The computer readable storage medium stores computer instructions for causing a computer to perform the domain name configuration method in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • Method, device and computer-readable storage medium for determining domain name resolution rule

    CN109104506A

  • Method for supporting VPC private domain name resolution by DNS

    CN115604223A