CN115426255A - Method, system, device and medium for automatically configuring domain name of cloud host - Google Patents
Method, system, device and medium for automatically configuring domain name of cloud host Download PDFInfo
- Publication number
- CN115426255A CN115426255A CN202211032242.XA CN202211032242A CN115426255A CN 115426255 A CN115426255 A CN 115426255A CN 202211032242 A CN202211032242 A CN 202211032242A CN 115426255 A CN115426255 A CN 115426255A
- Authority
- CN
- China
- Prior art keywords
- cloud host
- domain name
- domain
- dns
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 11
- 230000008901 benefit Effects 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 10
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method, a system, a device and a medium for automatically configuring a domain name of a cloud host. The method and the device have the advantages that the VPC network segment of the VPC network based on the cloud host operation is bound with the DNS configured for the cloud host in advance to obtain the binding relationship, the DNS of the cloud host is determined by using the binding relationship and the selected VPC network segment after the VPC network segment is selected for the cloud host, and the DNS does not need to be manually configured for the cloud host after the cloud host is created. When the cloud host is created, the full domain name address is obtained by obtaining the name of the cloud host and combining the name of the cloud host and the DNS domain of the cloud host, and the full domain name address is automatically obtained after the DNS domain is automatically determined. Acquiring an IP address of a cloud host; the domain name configuration API interface is called, the full domain name address and the IP address of the cloud host are used as parameters, automatic writing of domain name configuration parameters of the cloud host is achieved, the domain name of the cloud host is automatically configured, manual configuration is not needed after the cloud host is created, configuration efficiency is improved, and product competitiveness is enhanced.
Description
Technical Field
The invention relates to the technical field of automatic configuration of cloud host domain names, in particular to a method, a system, a device and a medium for automatically configuring a cloud host domain name.
Background
The DNS (domain name resolution system) is a service of the internet, and serves as a distributed database for mapping domain names and IP addresses to each other, enabling a person to access the internet more conveniently. After the enterprise goes to the cloud, the cloud host is mostly used for providing a bearing application system and providing services to the outside, so that the IP address binding domain name service of the cloud host is a strong requirement after the enterprise goes to the cloud.
Currently, the configuration of the binding domain name of the application system borne by the cloud host is mostly performed in an original manner: the method comprises the steps of creating cloud host resources, configuring service addresses exposed to the outside such as IP or virtual IP and the like, and manually adding domain name-IP address mapping in a DNS system, wherein the configuration of the domain name of the cloud host by a small number of cloud hosts is not troublesome. However, currently, large internet companies generally need a large number of cloud hosts to form a wide-distribution online cluster. For the large cloud host cluster, the mode of manually configuring the domain name of the cloud host is not only low in efficiency, but also easy to cause configuration errors.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present invention provides a method, system, device and medium for automatically configuring a domain name of a cloud host.
In a first aspect, the present invention provides a method for automatically configuring a domain name of a cloud host, including: pre-configuring a binding relationship between a VPC network segment and a DNS domain in a VPC network; after a VPC network segment is selected for the cloud host, determining a DNS domain of the cloud host by using the binding relationship and the selected VPC network segment; when the cloud host is created, the full domain name address is obtained by acquiring the name of the cloud host, and combining the name of the cloud host and the DNS domain of the cloud host; acquiring an IP address of a cloud host; and calling a domain name configuration API interface to realize automatic writing of the domain name configuration parameters of the cloud host by taking the full domain name address and the IP address of the cloud host as parameters, and automatically configuring the domain name of the cloud host.
Furthermore, the cloud host cloud runs in the VPC network, the VPC network segment in the VPC network and the DNS domain are associated and bound to obtain a binding relationship, and after the target VPC network segment is bound with the target DNS domain, the DNS domain which belongs to the domain name record corresponding to the IP address of the cloud host in the VPC network segment is defaulted to be the target DNS domain.
Furthermore, after the VPC network segment is configured on the cloud host, when the domain record of the domain name record of the cloud host is generated, the binding relationship and the VPC network segment of the cloud host are obtained, the DNS domain of the cloud host is determined by using the binding relationship and the VPC network segment, and the determined DNS domain is recorded into the domain record of the domain name record of the cloud host.
Furthermore, when the IP is configured for the cloud host manually or automatically through the DHCP, the name of the cloud host and the IP address allocated to the cloud host are recorded, and the corresponding IP address is queried by using the name of the cloud host of the target cloud host to obtain the IP address of the target cloud host.
Furthermore, after the cloud host is created, the cloud host name of the cloud host of the domain name of the cloud host to be configured is added to the cloud host list to be configured, the cloud hosts in the cloud host list to be configured are traversed, the corresponding DNS domain is determined for the traversed cloud host through the binding relationship, and the corresponding DNS domain is recorded in the DNS domain list according to the sequence in the cloud host list to be configured.
Furthermore, traversing data at the same position in the cloud host list to be configured and the DNS domain list, packaging the two data into configuration requests according to a preset format, sending the packaged configuration requests to the domain name configuration API interface, and automatically writing the domain name configuration parameters of the cloud host by taking the full domain name address and the IP address of the cloud host in the configuration requests as parameters, thereby automatically configuring the domain name of the cloud host.
Furthermore, the IP address of the cloud host is obtained, the DNS domain of the cloud host is obtained, and after the full domain name address of the cloud host is obtained, whether the IP address, the DNS and the full domain name address meet preset rules or not is detected.
In a second aspect, the present invention provides an apparatus for automatically configuring a domain name of a cloud host, including:
the binding module is used for configuring the binding relationship between a VPC network segment and a DNS domain in a VPC network;
the cloud host creation module is used for creating and recording the name of the cloud host and configuring a VPC network segment for the cloud host to operate;
the system comprises a full domain name address acquisition module, a domain name address acquisition module and a domain name mapping module, wherein the full domain name address acquisition module determines a DNS (Domain name Server) domain of a cloud host by utilizing a VPC (virtual private network) network segment and a binding relation, and combines the cloud host name and the DNS domain to obtain a full domain name address;
the IP acquisition module acquires a cloud host IP;
and the configuration module acquires the IP and the full domain name address of the cloud host through the DNS management API interface to realize the domain name configuration writing of the cloud host.
In a third aspect, the present invention provides an electronic device for automatically configuring a domain name of a cloud host, including: the system comprises at least one processing unit, a bus unit and a storage unit, wherein the bus unit is connected with the storage unit and the processing unit, the storage unit stores a computer program, and the computer program realizes the method for automatically configuring the domain name of the cloud host when being executed by the processing unit.
In a fourth aspect, the present invention provides a storage medium for implementing a method for automatically configuring a domain name of a cloud host, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for automatically configuring a domain name of a cloud host.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
the method and the device have the advantages that the VPC network segment of the VPC network based on the cloud host operation is bound with the DNS configured for the cloud host in advance to obtain the binding relationship, the DNS of the cloud host is determined by using the binding relationship and the selected VPC network segment after the VPC network segment is selected for the cloud host, and the DNS does not need to be manually configured for the cloud host after the cloud host is created. When the cloud host is created, the full domain name address is obtained by obtaining the name of the cloud host and combining the name of the cloud host and the DNS domain of the cloud host, and the full domain name address is automatically obtained after the DNS domain is automatically determined. Acquiring an IP address of a cloud host; the domain name configuration API interface is called, the full domain name address and the IP address of the cloud host are used as parameters, automatic writing of domain name configuration parameters of the cloud host is achieved, the domain name of the cloud host is configured automatically, manual configuration after the cloud host is created is not needed, configuration efficiency is improved, and product competitiveness is enhanced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a DNS management platform according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for automatically configuring a domain name of a cloud host according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for batch automatic configuration of a domain name of a cloud host according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus for automatically configuring a domain name of a cloud host according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an electronic device for automatically configuring a domain name of a cloud host according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Example 1
Referring to fig. 1, a DNS management platform is constructed, where the DNS management platform includes an external interface layer, a service logic layer, a plug-in layer, and a DNS layer, where the external interface layer provides a domain name configuration API interface for automatically configuring a domain name of a cloud host, a DNS domain management API interface for performing DNS domain management, and a domain name record management API interface for managing domain name records; the business logic layer provides a database which stores and configures business data; the plug-in layer provides a plug-in supporting the butt joint of various DNS software and the service logic layer for ensuring the compatibility of the DNS management platform; the DNS layer is basic DNS software and provides core DNS domain name management capability.
Referring to fig. 2, the present invention provides a method for automatically configuring a domain name of a cloud host, including:
s100, a binding relation between a VPC network segment and a DNS domain in a VPC network is configured in advance. The DNS domain as VPC1 binds is test.
The VPC (virtual privatecloud) is a self-defined logic isolation network space on a public cloud, is a piece of network space which can be self-defined, and is similar to a traditional network, and service resources on a private cloud, such as a cloud host, load balancing, a cloud database and the like, are hosted in the VPC. Network segment division, IP addresses, routing strategies and the like can be customized, and multi-layer security protection is realized through security groups, network ACLs and the like. Meanwhile, the VPC and the data center can be communicated through the VPN or a private line, and the hybrid cloud is deployed flexibly. The VPC is mainly a function of a network layer, and aims to construct an isolated virtual network environment capable of managing configuration and strategy on a cloud platform, so that the safety of resources in an AWS environment is further improved. The VPC environment manages the subnet structure, IP address range and distribution mode, and the routing strategy of network. Benefits of using VPC include: flexible deployment: self-defining network division and routing rules, and immediately taking effect in configuration and implementation; safety isolation: a 100% logically isolated network space; rich access: supporting public network VPN access and private line access; and (3) access control: network control to the port is accurate.
The cloud host cloud runs in a VPC network, a VPC network segment in the VPC network and a DNS domain are associated and bound to obtain a binding relation, and after a target VPC network segment is bound with the target DNS domain, the DNS domain which belongs to a domain name record corresponding to the IP address of the cloud host in the VPC network segment is defaulted to be the target DNS domain. And acquiring a target DNS domain of the target cloud host, detecting the target DNS domain by referring to a preset rule, and verifying the accuracy of the DNS domain format.
S200, after a VPC network segment is selected for the cloud host, determining a DNS domain of the cloud host by using the binding relationship and the selected VPC network segment; in the specific implementation process, after the VPC network segment is configured on the cloud host, when the domain name record of the cloud host is generated through the domain name record management API interface, the binding relation and the VPC network segment of the cloud host are obtained, the DNS domain of the cloud host is determined through the binding relation and the VPC network segment, and the determined DNS domain is recorded into the domain record of the domain name record of the cloud host. The default of the domain record in the domain name record corresponding to the IP address of the cloud host in VPC1 is test.
S300, the name of the cloud host is obtained when the cloud host is created, and the name of the cloud host and the DNS domain are combined to obtain a full domain name address. When a cloud host is created by a cloud platform user, a cloud host name needs to be input, the host name is used as the host name of the DNS by default, and the user can additionally specify the host name of the DNS. The full domain name address comprises a cloud host name and a DNS domain, and the full domain name address corresponding to the host can be obtained by determining the DNS domain of the cloud host and the cloud host name. And after the full domain name address of the cloud host is obtained, checking whether the format of the full domain name address is correct according to a preset rule.
S400, acquiring the IP address of the cloud host; in the specific implementation process, when the IP is configured for the cloud host manually or automatically through the DHCP, the name of the cloud host and the IP address allocated to the cloud host are recorded, and the corresponding IP address is inquired by using the name of the cloud host of the target cloud host to obtain the IP address of the target cloud host. And after the IP address of the cloud host is acquired, detecting whether the acquired IP address meets the IP address-to-definition rule, and if not, feeding back corresponding error information.
And S500, calling a domain name configuration API interface, and taking the full domain name address and the IP address of the cloud host as parameters to realize automatic writing of the domain name configuration parameters of the cloud host, and automatically configuring the domain name of the cloud host.
In a specific implementation process, referring to fig. 3, the method for automatically configuring the domain name of the cloud host in batch includes:
after the cloud host is created, the cloud host name of the cloud host of the domain name of the cloud host to be configured is added to the list of the cloud host to be configured.
Traversing the cloud hosts in the cloud host list to be configured, acquiring IP addresses configured for the traversed cloud hosts on one hand, and recording the IP addresses in the IP list according to the sequence of the names of the cloud hosts in the cloud host list to be configured, and on the other hand, acquiring VPC network segments configured for the cloud hosts and determining corresponding DNS domains according to the configured VPC network segments through the binding relationship.
And recording the corresponding DNS domain in the DNS domain list according to the sequence of the cloud host names in the cloud host list to be configured.
Traversing data at the same position in the cloud host list to be configured and the DNS domain list, and forming a full domain name address by the two data at the same position according to a preset format. And recording the obtained full domain name addresses into a full domain name address list in sequence.
And traversing the corresponding full domain name address and the IP address in the IP list and the DNS domain list, and encapsulating the corresponding full domain name address and the IP address into a configuration request. The encapsulated configuration requests are added to the queue.
And sending the configuration requests in the queue to a domain name configuration API interface in sequence, wherein the domain name configuration API interface realizes automatic writing of domain name configuration parameters of the cloud host by taking the full domain name address and the IP address of the cloud host in the configuration requests as parameters, and automatically configures the domain name of the cloud host.
Example 2
As an implementation of the method for automatically configuring a cloud host, referring to fig. 4, an embodiment of the present invention provides an apparatus for automatically configuring a domain name of a cloud host, including: the system comprises a binding module, a cloud host creating module, a full domain name address obtaining module, an IP obtaining module, a request encapsulating module, a queue module and a configuration module.
The binding module is used for configuring the binding relationship between a VPC network segment and a DNS domain in a VPC network; in a specific implementation process, the binding module acquires a DNS domain through a DNS domain management API interface of a DNS management platform, and records association binding VPC and DNS domain association binding as a binding relation.
The cloud host creation module is used for creating and recording the name of the cloud host and configuring the operating VPC network segment for the cloud host. In a specific implementation process, the cloud host creating module adds the cloud host name of the domain name of the cloud host to be configured to the list of the cloud host to be configured.
The full domain name address acquisition module determines a DNS (Domain name Server) domain of the cloud host by utilizing the VPC network segment and the binding relation, and combines the cloud host name and the DNS domain to obtain the full domain name address. In a specific implementation process, the full domain name address acquisition module adds the full domain name address of the cloud host domain name to be configured to the full domain name address list according to the sequence of the cloud host names in the cloud host list to be configured.
And the IP acquisition module acquires the IP of the cloud host. In a specific implementation process, the IP obtaining module records the IP addresses in the IP list according to the ordering of the names of the cloud hosts in the cloud host list to be configured.
The request encapsulation module traverses the corresponding full domain name address and the IP address in the full domain name address list and the IP address list, encapsulates the corresponding full domain name address and the IP address into a configuration request, and sends the configuration request to the queue module.
The queue module stores the configuration requests and sends the configuration requests to the configuration module in sequence.
The configuration module acquires the cloud host IP and the full domain name address in the configuration request through the DNS management API interface, and the full domain name address and the IP address of the cloud host are used as parameters to realize automatic writing of the cloud host domain name configuration parameters and automatically configure the cloud host domain name.
Example 3
Referring to fig. 5, an embodiment of the present invention provides an electronic device for automatically configuring a domain name of a cloud host, including: the system comprises at least one processing unit (such as a central processing unit and an FPGA), an input unit (such as a keyboard and a mouse), an output unit (such as a display and a loudspeaker), a bus unit (a data bus, an address bus and a control bus) and a storage unit (such as a read-only memory, a random access memory and a hard disk), wherein the bus unit is connected with the storage unit, the processing unit, the input unit and the output unit, the storage unit stores a computer program, and the method for automatically configuring the domain name of the cloud host is realized when the computer program is executed by the processing unit.
Example 4
The embodiment of the invention provides a storage medium for realizing a method for automatically configuring a domain name of a cloud host, wherein the storage medium stores a computer program, and the computer program realizes the method for automatically configuring the domain name of the cloud host when being executed by a processor.
According to the method and the device, the VPC network segment of the VPC network based on which the cloud host operates is bound with the DNS domain configured for the cloud host in advance to obtain the binding relationship, the DNS domain of the cloud host is determined by using the binding relationship and the selected VPC network segment after the VPC network segment is selected for the cloud host, and the DNS domain does not need to be manually configured for the cloud host after the cloud host is created. When the cloud host is created, the full domain name address is obtained by obtaining the name of the cloud host and combining the name of the cloud host and the DNS domain of the cloud host, and the full domain name address is automatically obtained after the DNS domain is automatically determined. Acquiring an IP address of a cloud host; the domain name configuration API interface is called, the full domain name address and the IP address of the cloud host are used as parameters, automatic writing of domain name configuration parameters of the cloud host is achieved, the domain name of the cloud host is automatically configured, manual configuration is not needed after the cloud host is created, configuration efficiency is improved, and product competitiveness is enhanced.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented using software plus any required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-only memory (R0M), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and includes several instructions to make a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the description in the method embodiment for relevant points.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for automatically configuring a domain name of a cloud host is characterized by comprising the following steps: pre-configuring a binding relationship between a VPC network segment and a DNS domain in a VPC network; after a VPC network segment is selected for the cloud host, determining a DNS domain of the cloud host by using the binding relationship and the selected VPC network segment; when the cloud host is created, the full domain name address is obtained by acquiring the name of the cloud host, and combining the name of the cloud host and the DNS domain of the cloud host; acquiring an IP address of a cloud host; and calling a domain name configuration API interface to realize automatic writing of the domain name configuration parameters of the cloud host by taking the full domain name address and the IP address of the cloud host as parameters, and automatically configuring the domain name of the cloud host.
2. The method for automatically configuring the cloud host domain name according to claim 1, wherein the cloud host runs in a VPC network, a VPC network segment in the VPC network is associated and bound with a DNS domain to obtain a binding relationship, and after a target VPC network segment is bound with a target DNS domain, the DNS domain belonging to a domain name record corresponding to the IP address of the cloud host in the VPC network segment is defaulted as the target DNS domain.
3. The method for automatically configuring the domain name of the cloud host according to claim 1, wherein after the cloud host configures the VPC network segment, when the domain record belonging to the domain name record of the cloud host is generated, the binding relationship and the VPC network segment of the cloud host are obtained, the DNS domain of the cloud host is determined by using the binding relationship and the VPC network segment, and the determined DNS domain is recorded in the domain record belonging to the domain name record of the cloud host.
4. The method for automatically configuring the domain name of the cloud host according to claim 1, wherein when the IP is manually or automatically configured for the cloud host through DHCP, the name of the cloud host and the IP address allocated to the name of the cloud host are recorded, and the IP address of the target cloud host is obtained by querying the corresponding IP address with the name of the cloud host of the target cloud host.
5. The method for automatically configuring the domain name of the cloud host according to claim 1, wherein after the cloud host is created, the cloud host name of the cloud host of which the domain name of the cloud host is to be configured is added to the list of the cloud host to be configured, the cloud host in the list of the cloud host to be configured is traversed, the traversed cloud host determines the corresponding DNS domain through the binding relationship, and the DNS domain is recorded in the list of the DNS domain according to the sequence in the list of the cloud host to be configured.
6. The method for automatically configuring the domain name of the cloud host according to claim 5, wherein data at the same position in the cloud host list to be configured and the DNS domain list are traversed, and
the two data are packaged into configuration requests according to a preset format, the packaged configuration requests are sent to a domain name configuration API interface, automatic writing of domain name configuration parameters of the cloud host is achieved by taking the full domain name address and the IP address of the cloud host in the configuration requests as parameters, and the domain name of the cloud host is automatically configured.
7. The method for automatically configuring the domain name of the cloud host according to claim 1, wherein an IP address of the cloud host is obtained, a DNS domain of the cloud host is obtained, and after a full domain name address of the cloud host is obtained, whether the IP address, the DNS, and the full domain name address meet preset rules is detected.
8. An apparatus for automatically configuring a domain name of a cloud host, comprising:
the binding module is used for configuring the binding relationship between a VPC network segment and a DNS domain in a VPC network;
the cloud host creation module is used for creating and recording the name of the cloud host and configuring a VPC network segment for the cloud host to operate;
the cloud host domain name obtaining module is used for determining a Domain Name Server (DNS) domain of the cloud host by utilizing the VPC network segment and the binding relation, and combining the cloud host name and the DNS domain to obtain a full domain name address;
the IP acquisition module acquires a cloud host IP;
and the configuration module acquires the IP and the full domain name address of the cloud host through the DNS management API interface to realize the domain name configuration writing of the cloud host.
9. An electronic device for automatically configuring a domain name of a cloud host, comprising: the system comprises at least one processing unit, a bus unit and a storage unit, wherein the bus unit is connected with the storage unit and the processing unit, the storage unit stores a computer program, and the computer program realizes the method for automatically configuring the domain name of the cloud host according to any one of claims 1 to 7 when being executed by the processing unit.
10. A storage medium for implementing a method for automatically configuring a domain name of a cloud host, the storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for automatically configuring a domain name of a cloud host according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032242.XA CN115426255A (en) | 2022-08-26 | 2022-08-26 | Method, system, device and medium for automatically configuring domain name of cloud host |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032242.XA CN115426255A (en) | 2022-08-26 | 2022-08-26 | Method, system, device and medium for automatically configuring domain name of cloud host |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115426255A true CN115426255A (en) | 2022-12-02 |
Family
ID=84201195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211032242.XA Pending CN115426255A (en) | 2022-08-26 | 2022-08-26 | Method, system, device and medium for automatically configuring domain name of cloud host |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115426255A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227686A (en) * | 2014-06-20 | 2016-01-06 | 中国电信股份有限公司 | The Dynamic Configuration of cloud host domain name and system |
WO2021189852A1 (en) * | 2020-09-07 | 2021-09-30 | 平安科技(深圳)有限公司 | Method, apparatus and device for automatically testing private zone, and storage medium |
-
2022
- 2022-08-26 CN CN202211032242.XA patent/CN115426255A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227686A (en) * | 2014-06-20 | 2016-01-06 | 中国电信股份有限公司 | The Dynamic Configuration of cloud host domain name and system |
WO2021189852A1 (en) * | 2020-09-07 | 2021-09-30 | 平安科技(深圳)有限公司 | Method, apparatus and device for automatically testing private zone, and storage medium |
Non-Patent Citations (1)
Title |
---|
SDNLAB: "OpenStack应用Designate实现DNS服务", Retrieved from the Internet <URL:https://cloud.tencent.com/developer/article/1078107> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11956207B2 (en) | Multi-tenant aware dynamic host configuration protocol (DHCP) mechanism for cloud networking | |
US11095711B2 (en) | DNS Resolution of internal tenant-specific domain addresses in a multi-tenant computing environment | |
US11792041B2 (en) | Private alias endpoints for isolated virtual networks | |
CN110381163B (en) | Method for forwarding service request by gateway node and gateway node | |
US7653935B2 (en) | File server for translating user identifier | |
CN107690800A (en) | Manage dynamic IP addressing distribution | |
US7779082B2 (en) | Address management device | |
US11182219B2 (en) | SaaS infrastructure for flexible multi-tenancy | |
US20090077201A1 (en) | Root node for integrating nas of different user name spaces | |
CN107689987B (en) | Virtual network service exposure method and device | |
JP2013061932A (en) | Report processing program, information processing apparatus, and information management system | |
CN113810230A (en) | Method, device and system for carrying out network configuration on containers in container cluster | |
JP2012027795A (en) | Document data sharing system and user device | |
CN113395340A (en) | Information updating method, device, equipment, system and readable storage medium | |
WO2022206549A1 (en) | Domain name acquisition method and system, electronic device, equipment, and medium | |
US10951479B1 (en) | User controlled fault domains | |
CN115426255A (en) | Method, system, device and medium for automatically configuring domain name of cloud host | |
US11625497B2 (en) | File management system and non-transitory computer readable medium | |
CN115514733A (en) | Configuration method and configuration device for domain name resolution service (DNS) | |
US20160248596A1 (en) | Reflecting mdns packets | |
CN114296870A (en) | Flow strategy processing method and device | |
CN117827795A (en) | Multi-tenant mirror image warehouse transformation method and device | |
CN116471029A (en) | Method and related device for processing cloud service in cloud system | |
CN114721732A (en) | Method, device and system for acquiring data, electronic equipment and storage medium | |
CN116915770A (en) | Service deployment method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |