CN116192800A - A DNS service deployment method and related device - Google Patents
A DNS service deployment method and related device Download PDFInfo
- Publication number
- CN116192800A CN116192800A CN202310111637.7A CN202310111637A CN116192800A CN 116192800 A CN116192800 A CN 116192800A CN 202310111637 A CN202310111637 A CN 202310111637A CN 116192800 A CN116192800 A CN 116192800A
- Authority
- CN
- China
- Prior art keywords
- dns
- address
- service
- nodes
- virtual
- 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 59
- 238000005516 engineering process Methods 0.000 claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 8
- 230000008569 process Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- 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/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- 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/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种DNS服务的部署方法,包括:通过容器技术将DNS服务运行在多个节点的容器中;通过虚拟地址技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;当通过所述目标虚拟IP地址接收到DNS请求,对所述DNS请求进行处理。通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。本申请还公开了一种DNS服务的部署装置、计算设备以及计算机可读存储介质,具有以上有益效果。
The present application discloses a DNS service deployment method, including: using container technology to run the DNS service in the containers of multiple nodes; using virtual address technology to bind the IP addresses of the DNS services of the multiple nodes to the target virtual IP address; when a DNS request is received through the target virtual IP address, the DNS request is processed. By running the DNS service in the container of multiple nodes in the form of a container, and then binding the IP addresses of the DNS services of multiple nodes to a separate virtual IP address, and finally performing the DNS request received through the virtual IP address For processing, use containers to maintain the reliability of node services and further improve the reliability of DNS services. The present application also discloses a DNS service deployment device, a computing device, and a computer-readable storage medium, which have the above beneficial effects.
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种DNS服务的部署方法、部署装置、计算设备以及计算机可读存储介质。The present application relates to the field of computer technology, and in particular to a DNS service deployment method, deployment device, computing equipment and computer-readable storage medium.
背景技术Background technique
DNS是域名系统Domain Name System的缩写,因特网上作为域名和IP地址互相映射的一个分布式数据库,能够使用户更方便的访问互联网,而不用去记住能够被机器直接读取的IP数串。通过主机名,最终得到该主机对应的IP地址的过程叫做域名解析(或主机名解析)。DNS is the abbreviation of Domain Name System. It is a distributed database on the Internet that maps domain names and IP addresses to each other, enabling users to access the Internet more conveniently without having to remember the IP number string that can be directly read by the machine. The process of finally obtaining the IP address corresponding to the host through the host name is called domain name resolution (or host name resolution).
相关技术中,将DNS程序运行在一台服务器中来提供DNS服务,当此服务出问题或者该服务器出现故障时,用户便无法再使用此DNS服务器。并且,由于DNS访问机制导致切换访问DNS服务器时需要等待超时时间,这样会大大延长用户访问DNS服务器获取翻译结果时等待时间过长,且每一个客户机都是如此,大大降低使用体验性。当DNS服务器出现问题时还需要手动再将其修复启动,其维修期间也将暂停提供DNS服务,造成用户的使用困扰。In related technologies, a DNS program is run in a server to provide DNS service. When the service fails or the server fails, the user can no longer use the DNS server. Moreover, due to the DNS access mechanism, it is necessary to wait for a timeout when switching access to the DNS server, which will greatly prolong the waiting time when the user accesses the DNS server to obtain translation results, and this is the case for every client, greatly reducing the user experience. When there is a problem with the DNS server, it needs to be repaired and started manually, and the DNS service will also be suspended during the maintenance period, causing users to be troubled.
因此,如何提高DNS服务的可靠性,避免由于节点不稳定而导致无法提供DNS服务是本领域技术人员关注的重点问题。Therefore, how to improve the reliability of the DNS service and avoid the inability to provide the DNS service due to unstable nodes is a key issue concerned by those skilled in the art.
发明内容Contents of the invention
本申请的目的是提供一种DNS服务的部署方法、部署装置、计算设备以及计算机可读存储介质,通过容器技术提高DNS服务的可靠性。The purpose of this application is to provide a DNS service deployment method, deployment device, computing equipment, and computer-readable storage medium, and improve the reliability of the DNS service through container technology.
为解决上述技术问题,本申请提供一种DNS服务的部署方法,包括:In order to solve the above technical problems, this application provides a DNS service deployment method, including:
通过容器技术将DNS服务运行在多个节点的容器中;Run the DNS service in containers of multiple nodes through container technology;
通过虚拟地址技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;Binding the IP addresses of the DNS services of the plurality of nodes to the target virtual IP address through a virtual address technology;
当通过所述目标虚拟IP地址接收到DNS请求,对所述DNS请求进行处理。When a DNS request is received through the target virtual IP address, the DNS request is processed.
可选的,通过容器技术将DNS服务运行在多个节点的容器中,包括:Optionally, use container technology to run the DNS service in containers on multiple nodes, including:
获取所述DNS服务的镜像;Obtain a mirror image of the DNS service;
将所述DNS服务的镜像部署在所述多个节点的容器中,并通过命令行运行所述DNS服务。The mirror image of the DNS service is deployed in the containers of the plurality of nodes, and the DNS service is run through a command line.
可选的,在运行所述DNS服务之后,还包括:Optionally, after running the DNS service, it also includes:
将所述DNS服务对接到Designate服务;Connect the DNS service to the Designate service;
所述DNS服务通过所述Designate服务进行DNS信息同步。The DNS service performs DNS information synchronization through the Designate service.
可选的,通过虚拟地址技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址,包括:Optionally, binding the IP addresses of the DNS services of the plurality of nodes to the target virtual IP address through virtual address technology, including:
通过Keepalived技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址。Bind the IP addresses of the DNS services of the plurality of nodes to the target virtual IP address through Keepalived technology.
可选的,还包括:Optionally, also include:
当某个节点出现故障时,将所述目标虚拟IP地址跳转至其他可正常使用的节点中。When a certain node fails, the target virtual IP address is transferred to other normally available nodes.
可选的,还包括:Optionally, also include:
基于高可用参数信息从所述多个节点中筛选出高可用节点;Selecting high availability nodes from the plurality of nodes based on high availability parameter information;
对所述高可用节点绑定额外的虚拟IP地址。Bind an additional virtual IP address to the high availability node.
可选的,当通过所述目标虚拟IP地址接收到DNS请求,对所述DNS请求进行处理,包括:Optionally, when a DNS request is received through the target virtual IP address, processing the DNS request includes:
当通过所述目标虚拟IP地址接收到DNS请求,将所述DNS请求分配至对应的DNS服务器的节点,以便所述节点对所述DNS请求进行处理。When a DNS request is received through the target virtual IP address, the DNS request is distributed to a corresponding node of the DNS server, so that the node can process the DNS request.
本申请还提供一种DNS服务的部署装置,包括:The present application also provides a DNS service deployment device, including:
容器化部署模块,用于通过容器技术将DNS服务运行在多个节点的容器中;The containerized deployment module is used to run the DNS service in containers of multiple nodes through container technology;
虚拟地址绑定模块,用于通过虚拟地址技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;A virtual address binding module, configured to bind the IP addresses of the DNS services of the plurality of nodes to a target virtual IP address through a virtual address technology;
服务提供模块,用于当通过所述目标虚拟IP地址接收到DNS请求,对所述DNS请求进行处理。A service providing module, configured to process the DNS request when the DNS request is received through the target virtual IP address.
本申请还提供一种计算设备,包括:The present application also provides a computing device, comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上所述的部署方法的步骤。A processor, configured to implement the steps of the above deployment method when executing the computer program.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的部署方法的步骤。The present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above deployment method are implemented.
本申请所提供的一种DNS服务的部署方法,包括:通过容器技术将DNS服务运行在多个节点的容器中;通过虚拟地址技术将所述多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;当通过所述目标虚拟IP地址接收到DNS请求,对所述DNS请求进行处理。A DNS service deployment method provided by the present application includes: using container technology to run the DNS service in the containers of multiple nodes; using virtual address technology to bind the IP addresses of the DNS services of the multiple nodes to the target A virtual IP address; when a DNS request is received through the target virtual IP address, the DNS request is processed.
通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。By running the DNS service in the container of multiple nodes in the form of a container, and then binding the IP addresses of the DNS services of multiple nodes in a separate virtual IP address, and finally performing the DNS request received through the virtual IP address For processing, use containers to maintain the reliability of node services and further improve the reliability of DNS services.
本申请还提供一种DNS服务的部署装置、计算设备以及计算机可读存储介质,具有以上有益效果,在此不作赘述。The present application also provides a DNS service deployment device, a computing device, and a computer-readable storage medium, which have the above beneficial effects and will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例所提供的一种DNS服务的部署方法的流程图;FIG. 1 is a flowchart of a DNS service deployment method provided by an embodiment of the present application;
图2为本申请实施例所提供的一种DNS服务的部署方法的结构示意图;FIG. 2 is a schematic structural diagram of a DNS service deployment method provided by an embodiment of the present application;
图3为本申请实施例所提供的一种DNS服务的部署装置的结构示意图;FIG. 3 is a schematic structural diagram of a DNS service deployment device provided by an embodiment of the present application;
图4为本申请实施例所提供的一种计算设备的结构示意图。FIG. 4 is a schematic structural diagram of a computing device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请的核心是提供一种DNS服务的部署方法、部署装置、计算设备以及计算机可读存储介质,通过容器技术提高DNS服务的可靠性。The core of the present application is to provide a DNS service deployment method, deployment device, computing equipment, and computer-readable storage medium, and improve the reliability of the DNS service through container technology.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
相关技术中,将DNS程序运行在一台服务器中来提供DNS服务,当此服务出问题或者该服务器出现故障时,用户便无法再使用此DNS服务器。并且,由于DNS访问机制导致切换访问DNS服务器时需要等待超时时间,这样会大大延长用户访问DNS服务器获取翻译结果时等待时间过长,且每一个客户机都是如此,大大降低使用体验性。当DNS服务器出现问题时还需要手动再将其修复启动,其维修期间也将暂停提供DNS服务,造成用户的使用困扰。In related technologies, a DNS program is run in a server to provide DNS service. When the service fails or the server fails, the user can no longer use the DNS server. Moreover, due to the DNS access mechanism, it is necessary to wait for a timeout when switching access to the DNS server, which will greatly prolong the waiting time when the user accesses the DNS server to obtain translation results, and this is the case for every client, greatly reducing the user experience. When there is a problem with the DNS server, it needs to be repaired and started manually, and the DNS service will also be suspended during the maintenance period, causing users to be troubled.
因此,本申请提供一种DNS服务的部署方法,通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。Therefore, this application provides a DNS service deployment method, by running the DNS service in the container of multiple nodes in the form of a container, and then binding the IP addresses of the DNS services of multiple nodes to a separate virtual IP address Finally, the received DNS request is processed through the virtual IP address, and the reliability of the node service is maintained by using the container to further improve the reliability of the DNS service.
以下通过一个实施例,对本申请提供的一种DNS服务的部署方法进行说明。The following describes a method for deploying a DNS service provided by this application through an embodiment.
请参考图1,图1为本申请实施例所提供的一种DNS服务的部署方法的流程图。Please refer to FIG. 1 , which is a flow chart of a DNS service deployment method provided by an embodiment of the present application.
本实施例中,该方法可以包括:In this embodiment, the method may include:
S101,通过容器技术将DNS服务运行在多个节点的容器中;S101, running the DNS service in containers of multiple nodes through container technology;
本步骤旨在通过容器技术将DNS服务运行在多个节点的容器中。也就是,将本来直接设置于服务器中的DNS服务部署在多个节点组成的云计算的容器中。其中,每个节点的容器中均运行一个DNS服务,实现了在多个节点中部署了多个DNS服务。This step aims to run the DNS service in containers on multiple nodes through container technology. That is, the DNS service originally set directly in the server is deployed in a cloud computing container composed of multiple nodes. Among them, a DNS service is run in the container of each node, so that multiple DNS services are deployed in multiple nodes.
其中,容器技术直译自Linux Container,container一词又可以翻译为集装箱,集装箱的特色,在于其格式划一,并可以层层重叠,而我们的容器就如同将一个服务程序,及其所运行的操作系统和依赖环境都打包放到容器集装箱里,且可以如同集装箱一样将其运输,运输过程中程序及环境也不会收到损坏,在另一个服务器中卸货(安装运行)之后,里面的程序可以仍然正常运行而不用在意服务器本身的操作系统及环境等信息。Among them, container technology is literally translated from Linux Container, and the word container can be translated as container. The feature of container is that its format is uniform and can be overlapped layer by layer. Our container is like a service program and the operations it runs The system and the dependent environment are packaged into the container container, and can be transported like a container, and the program and environment will not be damaged during the transportation process. After unloading (installation and running) on another server, the program inside can be It still runs normally without caring about the operating system and environment of the server itself.
容器技术:是一种内核轻量级的操作系统层面的虚拟化技术,本质上是一个特殊的进程,通过名称空间(Namespace)、控制组(Control groups)、切根(chroot)技术把资源、文件、设备、状态和配置划分到一个独立的空间。Container technology: It is a lightweight operating system-level virtualization technology for the kernel. It is essentially a special process that uses namespaces, control groups, and chroot technologies to organize resources, Files, devices, status and configuration are divided into a separate space.
k8s:k8s的全称为kubernetes,是为容器服务而生的一个可移植容器的编排管理工具,其主要特点包括:服务发现与调度、负载均衡、服务自愈、服务弹性扩容、横向扩容、存储卷挂载等,k8s可以使用户使用的应用的部署和运行更加方便。k8s: The full name of k8s is kubernetes. It is a portable container orchestration management tool for container services. Its main features include: service discovery and scheduling, load balancing, service self-healing, service elastic expansion, horizontal expansion, storage volume Mounting, etc., k8s can make the deployment and operation of applications used by users more convenient.
DNS:DNS是域名系统Domain Name System的缩写,因特网上作为域名和IP地址互相映射的一个分布式数据库,能够使用户更方便的访问互联网,而不用去记住能够被机器直接读取的IP数串。通过主机名,最终得到该主机对应的IP地址的过程叫做域名解析(或主机名解析)。DNS协议运行在UDP协议之上,使用端口号53。DNS: DNS is the abbreviation of Domain Name System. It is a distributed database on the Internet that maps domain names and IP addresses to each other. It enables users to access the Internet more conveniently without remembering the IP numbers that can be directly read by machines. string. The process of finally obtaining the IP address corresponding to the host through the host name is called domain name resolution (or host name resolution). The DNS protocol runs on top of the UDP protocol, using port number 53.
进一步的,本步骤可以是在各个控制节点中使用k8s部署DNS服务器用于提供DNS服务,使得DNS服务容器化而不是直接部署在服务器中可以使DNS服务享用到容器的优点,不仅可以将DNS服务保存成一个容器镜像用于批量部署,还可以联动k8s的服务自愈特点为容器化的DNS服务提供一定的自愈性,减少DNS服务的运维成本。Further, this step can be to use k8s to deploy DNS servers in each control node to provide DNS services, so that DNS services can be containerized instead of directly deployed in servers, so that DNS services can enjoy the advantages of containers, not only can DNS services It is saved as a container image for batch deployment, and it can also be linked with the service self-healing feature of k8s to provide a certain degree of self-healing for containerized DNS services and reduce the operation and maintenance costs of DNS services.
进一步的,本步骤可以包括:Further, this step may include:
步骤1,获取DNS服务的镜像;Step 1, obtain the mirror image of the DNS service;
步骤2,将DNS服务的镜像部署在多个节点的容器中,并通过命令行运行DNS服务。Step 2. Deploy the mirror image of the DNS service in containers on multiple nodes, and run the DNS service through the command line.
可见,本可选方案中主要是说明如何基于容器运行DNS服务。本可选方案中,获取DNS服务的镜像;将DNS服务的镜像部署在多个节点的容器中,并通过命令行运行DNS服务。实现了将DNS服务运行于容器中,提高了DNS服务的可靠性和安全性。It can be seen that this optional solution mainly explains how to run the DNS service based on the container. In this optional solution, obtain the image of the DNS service; deploy the image of the DNS service in containers on multiple nodes, and run the DNS service through the command line. Realized running the DNS service in the container, improving the reliability and security of the DNS service.
进一步的,本实施例在运行DNS服务之后,还可以包括:Further, after running the DNS service in this embodiment, it may also include:
步骤1,将DNS服务对接到Designate服务;Step 1, connect the DNS service to the Designate service;
步骤2,DNS服务通过Designate服务进行DNS信息同步。Step 2, the DNS service performs DNS information synchronization through the Designate service.
可见,本可选方案主要是说明还可以进行信息同步。本可选方案中,将DNS服务对接到Designate服务;DNS服务通过Designate服务进行DNS信息同步。可见,通过对接Designate服务,可以实现DNS信息的快速管理,提高对DNS信息进行管理的效率,降低成本。It can be seen that this optional scheme mainly shows that information synchronization can also be performed. In this optional solution, the DNS service is connected to the Designate service; the DNS service performs DNS information synchronization through the Designate service. It can be seen that by connecting to the Designate service, the rapid management of DNS information can be realized, the efficiency of DNS information management can be improved, and the cost can be reduced.
其中,Designate是一个开源DNS即服务设施,是用于运行云的OpenStack服务生态系统的一部分。Designate是OpenStack的多租户DNSaaS服务。它提供了一个带有集成Keystone身份验证的REST API。它可以配置为根据Nova和Neutron操作自动生成记录。Designate支持多种DNS服务器,包括Bind9和PowerDNS 4。Among them, Designate is an open source DNS as a service facility, which is part of the OpenStack service ecosystem for running the cloud. Designate is a multi-tenant DNSaaS service for OpenStack. It provides a REST API with integrated Keystone authentication. It can be configured to automatically generate records based on Nova and Neutron operations. Designate supports a variety of DNS servers, including Bind9 and PowerDNS 4.
S102,通过虚拟地址技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;S102. Bind the IP addresses of the DNS services of multiple nodes to the target virtual IP address through virtual address technology;
在S101的基础上,本步骤旨在通过虚拟地址技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址。由于一个DNS服务的提供方式是想外界提供一个统一的IP地址。因此,本步骤中通过目标虚拟IP地址实现对多个IP地址的映射。On the basis of S101, this step aims to bind the IP addresses of the DNS services of multiple nodes to the target virtual IP address through the virtual address technology. Because a DNS service is provided by providing a unified IP address to the outside world. Therefore, in this step, the mapping to multiple IP addresses is realized through the target virtual IP address.
进一步的,本步骤可以包括:Further, this step may include:
通过Keepalived技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址。Bind the IP addresses of the DNS services of multiple nodes to the target virtual IP address through Keepalived technology.
可见,本可选方案中主要是说明如何绑定虚拟IP地址。本可选方案中,通过Keepalived技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址。It can be seen that this optional solution mainly describes how to bind a virtual IP address. In this optional solution, the IP addresses of the DNS services of multiple nodes are bound to the target virtual IP address through Keepalived technology.
其中,Keepalived技术是Linux下一个轻量级别的高可用解决方案,该技术的作用是检测服务器的状态,如果有一台web服务器宕机,或工作出现故障,Keepalived将检测到,并将有故障的服务器从系统中剔除,同时使用其他服务器代替该服务器的工作,当服务器工作正常后Keepalived自动将服务器加入到服务器群中,这些工作全部自动完成,不需要人工干涉,需要人工做的只是修复故障的服务器。Among them, Keepalived technology is a lightweight high-availability solution under Linux. The function of this technology is to detect the status of the server. If there is a web server down or the work fails, Keepalived will detect it and send the faulty The server is removed from the system, and other servers are used to replace the work of the server. When the server works normally, Keepalived automatically adds the server to the server group. All these tasks are automatically completed without manual intervention. What needs to be done manually is to repair the fault. server.
因此,本可选方案可以是使用Keepalived技术将多个物理节点结合到一起,提高DNS服务的健壮性和容错性,Keepalived技术会向高可用节点分配一个额外的VIP(虚拟IP地址),用户通过VIP即可访问该集群内的某一台服务器,当VIP所在节点出现故障时,VIP会自动跳转到其他可正常使用的节点之上。Therefore, this option can be to use Keepalived technology to combine multiple physical nodes together to improve the robustness and fault tolerance of DNS services. Keepalived technology will assign an additional VIP (virtual IP address) to highly available nodes. Users can pass The VIP can access a certain server in the cluster. When the node where the VIP is located fails, the VIP will automatically jump to other nodes that can be used normally.
进一步的,本实施例还可以包括:Further, this embodiment may also include:
当某个节点出现故障时,将目标虚拟IP地址跳转至其他可正常使用的节点中。When a node fails, the target virtual IP address is redirected to other normally available nodes.
可见,本可选方案中还说明如何进行访问跳转。本可选方案中,当某个节点出现故障时,将目标虚拟IP地址跳转至其他可正常使用的节点中。It can be seen that how to perform access jump is also described in this optional solution. In this optional solution, when a node fails, the target virtual IP address is redirected to other normally available nodes.
进一步的,本实施例还可以包括:Further, this embodiment may also include:
步骤1,基于高可用参数信息从多个节点中筛选出高可用节点;Step 1, based on high-availability parameter information, select high-availability nodes from multiple nodes;
步骤2,对高可用节点绑定额外的虚拟IP地址。Step 2, bind an additional virtual IP address to the highly available node.
可见,本可选方案中主要是说明对高可用节点绑定额外的虚拟IP地址。本可选方案中,基于高可用参数信息从多个节点中筛选出高可用节点;对高可用节点绑定额外的虚拟IP地址。也就是,实现更加高可用的部署的操作,以便将高可用节点的性能输出到外部,提高DNS服务整体的可用性和健壮性。It can be seen that this optional solution mainly indicates that an additional virtual IP address is bound to the high-availability node. In this optional solution, high-availability nodes are selected from multiple nodes based on high-availability parameter information; additional virtual IP addresses are bound to high-availability nodes. That is, to achieve more highly available deployment operations, so as to export the performance of highly available nodes to the outside, and improve the overall availability and robustness of the DNS service.
S103,当通过目标虚拟IP地址接收到DNS请求,对DNS请求进行处理。S103, when a DNS request is received through the target virtual IP address, process the DNS request.
在S102的基础上,本步骤旨在当通过目标虚拟IP地址接收到DNS请求,对DNS请求进行处理。On the basis of S102, this step aims at processing the DNS request when the DNS request is received through the target virtual IP address.
可见,在目标虚拟IP地址的基础上,使DNS服务与VIP绑定到一起,用户可通过VIP直接访问到该VIP所在节点的DNS服务,可以使用户做到对底层DNS服务无感知,无需关注底层DNS服务的状态及数量,只需在nameserver中配置上VIP即可,这样也可以避免单独配置一个个的DNS服务的IP地址情况下出现DNS服务出现故障无法访问时仍需等待超时时间的问题,提高用户的使用体验性及效率。It can be seen that on the basis of the target virtual IP address, the DNS service is bound to the VIP, and the user can directly access the DNS service of the node where the VIP is located through the VIP, so that the user is not aware of the underlying DNS service and does not need to pay attention For the status and quantity of the underlying DNS service, you only need to configure the VIP in the nameserver, which can also avoid the problem of waiting for the timeout period when the DNS service fails and cannot be accessed when the IP address of the DNS service is individually configured. , improve user experience and efficiency.
进一步的,本步骤可以包括:Further, this step may include:
当通过目标虚拟IP地址接收到DNS请求,将DNS请求分配至对应的DNS服务器的节点,以便节点对DNS请求进行处理。When a DNS request is received through the target virtual IP address, the DNS request is distributed to the corresponding DNS server node, so that the node can process the DNS request.
可见,本可选方案中主要是说明如何通过目标虚拟IP地址对DNS请求进行处理。本可选方案中,当通过目标虚拟IP地址接收到DNS请求,将DNS请求分配至对应的DNS服务器的节点,以便节点对DNS请求进行处理。It can be seen that this optional solution mainly describes how to process the DNS request through the target virtual IP address. In this optional solution, when a DNS request is received through the target virtual IP address, the DNS request is distributed to a corresponding node of the DNS server, so that the node can process the DNS request.
综上,本实施例通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。To sum up, in this embodiment, the DNS service is run in the container of multiple nodes in the form of a container, and then the IP addresses of the DNS service of multiple nodes are bound to a separate virtual IP address, and finally through the virtual IP address Process the received DNS requests, and use containers to maintain the reliability of node services, further improving the reliability of DNS services.
以下通过另一具体的实施例,对本申请提供的一种DNS服务的部署方法做进一步说明。A method for deploying a DNS service provided by the present application will be further described below through another specific embodiment.
请参考图2,图2为本申请实施例所提供的一种DNS服务的部署方法的结构示意图。Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of a DNS service deployment method provided by an embodiment of the present application.
本实施例中,包括BindDNS服务器的k8s化部署、用户访问集群内对接Designate的DNS服务器的方式、k8s集群的keepalive高可用部署。In this embodiment, k8s-based deployment of BindDNS server, way for users to access the DNS server connected to Designate in the cluster, and keepalive high-availability deployment of k8s cluster.
其中,BindDNS服务器的k8s化部署为提供具有一定自愈性的DNS服务,提高集群的服务健壮性;用户访问集群内对接Designate的DNS服务器的方式为提供了一种可以免除当集群内某一个DNS服务器发生故障时不再等待超时时间的访问方式;k8s集群的keepalive高可用部署为提供了访问方式的理论支持。Among them, the k8s-based deployment of the BindDNS server provides DNS services with certain self-healing properties and improves the service robustness of the cluster; When the server fails, the access method no longer waits for the timeout; the keepalive high-availability deployment of the k8s cluster provides theoretical support for the access method.
BindDNS服务器的k8s化部署可以让DNS服务享用到k8s的优势,只需先在容器内安装DNS服务及相关依赖服务,配置好DNS服务的配置文件,然后将DNS服务的命令行启动方式写到容器的启动命令中即可,这样就完成了一个通用性的DNS服务容器,将其保存为镜像导出,就可以在任意支持容器服务的服务器中进行部署安装,只需将配置文件中的监听IP修改一下即可,配合k8s技术,当DNS服务容器发生故障时,k8s会自动将其重新启动,实现DNS服务的自动化恢复功能,赋予DNS服务一定的自愈性,减少维护成本及时间。The k8s-based deployment of the BindDNS server allows the DNS service to enjoy the advantages of k8s. You only need to install the DNS service and related dependent services in the container, configure the configuration file of the DNS service, and then write the command line startup method of the DNS service to the container. In this way, a general-purpose DNS service container is completed. Save it as an image and export it, and then deploy and install it on any server that supports container services. You only need to modify the listening IP in the configuration file With k8s technology, when the DNS service container fails, k8s will automatically restart it to realize the automatic recovery function of the DNS service, endow the DNS service with a certain degree of self-healing, and reduce maintenance costs and time.
k8s集群的keepalived高可用部署为提供一个VIP,访问此VIP时会自动将带到keepalive集群中的高可用节点中,对接到openstack便是的控制节点,当该VIP所在节点发生故障导致关机时,此VIP就会自动跳转到其他控制节点之上,因为只要的控制节点没有全部关机,此VIP就可访问到,为提供服务的健壮性。The keepalived high-availability deployment of the k8s cluster provides a VIP. When accessing this VIP, it will be automatically brought to the high-availability node in the keepalive cluster, and connected to the control node of openstack. When the node where the VIP is located fails and shuts down, This VIP will automatically jump to other control nodes, because as long as all control nodes are not shut down, this VIP can be accessed to provide service robustness.
用户访问集群内对接Designate的DNS服务器的方式为提供了一种可以免除等待当配置的DNS服务器无法访问时的超时时间,需结合keepalived提供的VIP,只需在客户端中将nameserver配置成VIP即可,这样当访问DNS服务时就先访问VIP,然后由VIP将带到具体的DNS服务,此功能结合Designate效果最佳,因为在Designate中创建DNS资源时,会向集群内的所有DNS服务(需将其配置到Designate的DNS服务器对接配置文件中)下发创建指令,集群内的DNS服务器全为MasterDNS服务器,且各自内的资源一致。The way for users to access the DNS server connected to Designate in the cluster is to provide a way to avoid waiting for the timeout period when the configured DNS server cannot be accessed. It needs to be combined with the VIP provided by keepalived. Just configure the nameserver as a VIP in the client. Yes, in this way, when accessing the DNS service, first access the VIP, and then the VIP will bring it to the specific DNS service. This function works best when combined with Designate, because when creating a DNS resource in Designate, all DNS services in the cluster ( It needs to be configured in Designate’s DNS server docking configuration file) and the creation command is issued. The DNS servers in the cluster are all MasterDNS servers, and the resources in each are consistent.
也就hi说,在各个控制节点中使用k8s部署DNS服务器用于提供DNS服务,使DNS服务容器化而不是直接部署在服务器中可以使DNS服务享用到容器的优点,不仅可以将DNS服务保存成一个容器镜像用于批量部署,还可以联动k8s的服务自愈特点为容器化的DNS服务提供一定的自愈性,减少DNS服务的运维成本That is to say, using k8s to deploy DNS servers in each control node to provide DNS services, containerizing DNS services instead of directly deploying them in servers can make DNS services enjoy the advantages of containers, not only saving DNS services as A container image is used for batch deployment, and it can also be linked with the service self-healing feature of k8s to provide a certain degree of self-healing for containerized DNS services and reduce the operation and maintenance costs of DNS services
并结合keepalived高可用服务提供的VIP配置到客户端的nameserver中,可以将集群内的众多DNS服务器的IP地址融合为一个VIP,当访问DNS服务时只需访问VIP即可,无需关注底层到底有几个DNS服务器,当VIP所在节点发生故障时,VIP会自动跳转到其他可以正常使用的节点之上,这样实际访问的底层DNS服务器也发生了更改转向访问正常的DNS服务器节点。但由于Designate服务创建资源时会自动向其对接的所有DNS服务器下发创建命令(增删改都是一样的,全都是下发给所有的DNS服务器),且Designate中具有同步机制,其管理的DNS服务器内的资源是一致的,所以即使跳转了实际访问的DNS服务器也无感知,需要访问的资源仍然存在。Combined with the VIP configuration provided by the keepalived high-availability service to the nameserver of the client, the IP addresses of many DNS servers in the cluster can be integrated into one VIP. When the node where the VIP is located fails, the VIP will automatically jump to other nodes that can be used normally, so that the actual access to the underlying DNS server has also changed to access the normal DNS server node. However, when the Designate service creates resources, it will automatically issue creation commands to all DNS servers connected to it (additions, deletions, and modifications are the same, and all are issued to all DNS servers), and Designate has a synchronization mechanism. The resources in the server are consistent, so even if the actual accessed DNS server is redirected, there is no perception, and the resources that need to be accessed still exist.
一种基于k8s容器化的bind服务器对接Designate的高可用方法使用示意图如附图1所以,其具体实施过程如下:A schematic diagram of a high-availability method for docking Designate based on a k8s containerized bind server is shown in Figure 1. The specific implementation process is as follows:
步骤1,通过容器技术将DNS服务运行在多个节点的容器中;Step 1, run the DNS service in containers of multiple nodes through container technology;
使用k8s容器技术将DNS服务从传统的直接部署运行方式转化为运行在k8s容器中,不仅可以赋予其能够批量部署、可移植性强、低环境依赖度的特点,还具有了k8s容器的自愈性,使用命令行的方式启动DNS服务,让服务出现问题时容器会自动重启,且由于对接Designate的特点,DNS服务启动后会自动向Designate发起同步,避免信息缺少等问题。Using the k8s container technology to convert the DNS service from the traditional direct deployment mode to running in the k8s container can not only endow it with the characteristics of batch deployment, strong portability, and low environmental dependence, but also has the self-healing of the k8s container To use the command line to start the DNS service, the container will automatically restart when there is a problem with the service, and due to the characteristics of connecting to Designate, after the DNS service is started, it will automatically initiate synchronization with Designate to avoid problems such as lack of information.
步骤2,通过虚拟地址技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;Step 2, binding the IP addresses of the DNS services of multiple nodes to the target virtual IP address through the virtual address technology;
使用Keepalived技术将多个物理节点结合到一起,提高DNS服务的健壮性和容错性,Keepalived技术会向高可用节点分配一个额外的VIP,用户通过VIP即可访问该集群内的某一台服务器,当VIP所在节点出现故障时,VIP会自动跳转到其他可正常使用的节点之上。Use Keepalived technology to combine multiple physical nodes together to improve the robustness and fault tolerance of DNS services. Keepalived technology will assign an additional VIP to high-availability nodes, and users can access a certain server in the cluster through the VIP. When the node where the VIP is located fails, the VIP will automatically jump to other nodes that can be used normally.
步骤3,当通过目标虚拟IP地址接收到DNS请求,对DNS请求进行处理。Step 3, when a DNS request is received through the target virtual IP address, the DNS request is processed.
将DNS服务与VIP绑定到一起,用户可通过VIP直接访问到该VIP所在节点的DNS服务,可以使用户做到对底层DNS服务无感知,无需关注底层DNS服务的状态及数量,只需在nameserver中配置上VIP即可,这样也可以避免单独配置一个个的DNS服务的IP地址情况下出现DNS服务出现故障无法访问时仍需等待超时时间的问题,提高用户的使用体验性及效率。Bind the DNS service with the VIP, and the user can directly access the DNS service of the node where the VIP is located through the VIP, so that the user is not aware of the underlying DNS service, and does not need to pay attention to the status and quantity of the underlying DNS service. It is enough to configure the VIP in the nameserver, which can also avoid the problem of waiting for the timeout period when the DNS service fails and cannot be accessed when the IP address of the DNS service is configured individually, improving the user experience and efficiency.
可见,本实施例通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。It can be seen that in this embodiment, the DNS service is run in the container of multiple nodes in the form of a container, and then the IP addresses of the DNS service of multiple nodes are bound to a separate virtual IP address, and finally the virtual IP address pairs The DNS request is received and processed, and the reliability of the node service is maintained by using the container, which further improves the reliability of the DNS service.
下面对本申请实施例提供的DNS服务的部署装置进行介绍,下文描述的DNS服务的部署装置与上文描述的DNS服务的部署方法可相互对应参照。The following is an introduction to the device for deploying the DNS service provided by the embodiment of the present application. The device for deploying the DNS service described below and the method for deploying the DNS service described above can be referred to in correspondence.
请参考图3,图3为本申请实施例所提供的一种DNS服务的部署装置的结构示意图。Please refer to FIG. 3 , which is a schematic structural diagram of an apparatus for deploying a DNS service provided by an embodiment of the present application.
本实施例中,该装置可以包括:In this embodiment, the device may include:
容器化部署模块100,用于通过容器技术将DNS服务运行在多个节点的容器中;The containerized
虚拟地址绑定模块200,用于通过虚拟地址技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;The virtual
服务提供模块300,用于当通过目标虚拟IP地址接收到DNS请求,对DNS请求进行处理。The
可选的,该容器化部署模块100,具体用于获取DNS服务的镜像;将DNS服务的镜像部署在多个节点的容器中,并通过命令行运行DNS服务。Optionally, the containerized
可选的,该在运行DNS服务之后,还包括:Optionally, after running the DNS service, include:
将DNS服务对接到Designate服务;Connect the DNS service to the Designate service;
DNS服务通过Designate服务进行DNS信息同步。The DNS service uses the Designate service to synchronize DNS information.
可选的,该虚拟地址绑定模块200,具体用于通过Keepalived技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址。Optionally, the virtual
可选的,该装置还可以包括:Optionally, the device may also include:
故障跳转模块,用于当某个节点出现故障时,将目标虚拟IP地址跳转至其他可正常使用的节点中。The fault jumping module is used for jumping the target virtual IP address to other normally available nodes when a certain node fails.
可选的,该装置还可以包括:Optionally, the device may also include:
高可用处理模块,用于基于高可用参数信息从多个节点中筛选出高可用节点;对高可用节点绑定额外的虚拟IP地址。The high-availability processing module is used to select high-availability nodes from multiple nodes based on high-availability parameter information; bind additional virtual IP addresses to high-availability nodes.
可选的,该服务提供模块300,具体用于当通过目标虚拟IP地址接收到DNS请求,将DNS请求分配至对应的DNS服务器的节点,以便节点对DNS请求进行处理。Optionally, the
可见,本实施例通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。It can be seen that in this embodiment, the DNS service is run in the container of multiple nodes in the form of a container, and then the IP addresses of the DNS service of multiple nodes are bound to a separate virtual IP address, and finally the virtual IP address pairs The DNS request is received and processed, and the reliability of the node service is maintained by using the container, which further improves the reliability of the DNS service.
本申请还提供了一种计算设备,请参考图4,图4为本申请实施例所提供的一种计算设备的结构示意图,该计算设备可包括:The present application also provides a computing device. Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a computing device provided by an embodiment of the present application. The computing device may include:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时可实现如上述任意一种DNS服务的部署方法的步骤。The processor is configured to implement the steps of any one of the above DNS service deployment methods when executing the computer program.
如图4所示,为计算设备的组成结构示意图,计算设备可以包括:处理器10、存储器11、通信接口12和通信总线13。处理器10、存储器11、通信接口12均通过通信总线13完成相互间的通信。As shown in FIG. 4 , which is a schematic structural diagram of a computing device, the computing device may include: a
在本申请实施例中,处理器10可以为中央处理器(Central Processing Unit,CPU)、特定应用集成电路、数字信号处理器、现场可编程门阵列或者其他可编程逻辑器件等。In the embodiment of the present application, the
处理器10可以调用存储器11中存储的程序,具体的,处理器10可以执行异常IP识别方法的实施例中的操作。The
存储器11中用于存放一个或者一个以上程序,程序可以包括程序代码,程序代码包括计算机操作指令,在本申请实施例中,存储器11中至少存储有用于实现以下功能的程序:The
通过容器技术将DNS服务运行在多个节点的容器中;Run the DNS service in containers of multiple nodes through container technology;
通过虚拟地址技术将多个节点的DNS服务的IP地址绑定至目标虚拟IP地址;Bind the IP addresses of the DNS services of multiple nodes to the target virtual IP address through virtual address technology;
当通过目标虚拟IP地址接收到DNS请求,对DNS请求进行处理。When a DNS request is received through the target virtual IP address, the DNS request is processed.
在一种可能的实现方式中,存储器11可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统,以及至少一个功能所需的应用程序等;存储数据区可存储使用过程中所创建的数据。In a possible implementation, the
此外,存储器11可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件或其他易失性固态存储器件。In addition, the
通信接口12可以为通信模块的接口,用于与其他设备或者系统连接。The
当然,需要说明的是,图4所示的结构并不构成对本申请实施例中计算设备的限定,在实际应用中计算设备可以包括比图4所示的更多或更少的部件,或者组合某些部件。Of course, it should be noted that the structure shown in FIG. 4 does not constitute a limitation on the computing device in the embodiment of the present application. In practical applications, the computing device may include more or less components than those shown in FIG. 4, or combine certain parts.
可见,本实施例通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。It can be seen that in this embodiment, the DNS service is run in the container of multiple nodes in the form of a container, and then the IP addresses of the DNS service of multiple nodes are bound to a separate virtual IP address, and finally the virtual IP address pairs The DNS request is received and processed, and the reliability of the node service is maintained by using the container, which further improves the reliability of the DNS service.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如上述任意一种DNS服务的部署方法的步骤。The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above-mentioned DNS service deployment methods can be implemented.
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.
对于本申请提供的计算机可读存储介质的介绍请参照上述方法实施例,本申请在此不做赘述。For the introduction of the computer-readable storage medium provided by the present application, please refer to the foregoing method embodiments, and the present application does not repeat it here.
可见,本实施例通过将DNS服务以容器的方式运行在多个节点的容器中,然后再将多个节点的DNS服务的IP地址绑定在单独的虚拟IP地址中,最后通过虚拟IP地址对接收到DNS请求进行处理,采用容器的方式保持节点服务的可靠性,进一步的提高DNS服务的可靠性。It can be seen that in this embodiment, the DNS service is run in the container of multiple nodes in the form of a container, and then the IP addresses of the DNS service of multiple nodes are bound to a separate virtual IP address, and finally the virtual IP address pairs The DNS request is received and processed, and the reliability of the node service is maintained by using the container, which further improves the reliability of the DNS service.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本申请所提供的一种DNS服务的部署方法、部署装置、计算设备以及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。A DNS service deployment method, deployment device, computing device, and computer-readable storage medium provided by the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310111637.7A CN116192800A (en) | 2023-02-10 | 2023-02-10 | A DNS service deployment method and related device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310111637.7A CN116192800A (en) | 2023-02-10 | 2023-02-10 | A DNS service deployment method and related device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116192800A true CN116192800A (en) | 2023-05-30 |
Family
ID=86436122
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310111637.7A Pending CN116192800A (en) | 2023-02-10 | 2023-02-10 | A DNS service deployment method and related device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116192800A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119728545A (en) * | 2024-12-02 | 2025-03-28 | 天翼云科技有限公司 | Container-based service access method, device, equipment and medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111464648A (en) * | 2020-04-02 | 2020-07-28 | 聚好看科技股份有限公司 | Distributed local DNS system and domain name query method |
| CN112333017A (en) * | 2020-10-30 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Service configuration method, device, equipment and storage medium |
| CN112650537A (en) * | 2020-12-30 | 2021-04-13 | 平安证券股份有限公司 | Server configuration method, device, equipment and computer readable storage medium |
| CN114490393A (en) * | 2022-01-27 | 2022-05-13 | 上海金融期货信息技术有限公司 | Single-cluster multi-tenant management system |
| CN115225606A (en) * | 2022-07-11 | 2022-10-21 | 上海道客网络科技有限公司 | Domain name access method and system of cross-network protocol of container cloud platform |
| CN115390982A (en) * | 2021-05-20 | 2022-11-25 | 中移动信息技术有限公司 | Method and device for realizing SAAS application arrangement engine, electronic equipment and storage medium |
-
2023
- 2023-02-10 CN CN202310111637.7A patent/CN116192800A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111464648A (en) * | 2020-04-02 | 2020-07-28 | 聚好看科技股份有限公司 | Distributed local DNS system and domain name query method |
| WO2021120970A1 (en) * | 2020-04-02 | 2021-06-24 | 聚好看科技股份有限公司 | Distributed local dns system and domain name inquiry method |
| CN112333017A (en) * | 2020-10-30 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Service configuration method, device, equipment and storage medium |
| CN112650537A (en) * | 2020-12-30 | 2021-04-13 | 平安证券股份有限公司 | Server configuration method, device, equipment and computer readable storage medium |
| CN115390982A (en) * | 2021-05-20 | 2022-11-25 | 中移动信息技术有限公司 | Method and device for realizing SAAS application arrangement engine, electronic equipment and storage medium |
| CN114490393A (en) * | 2022-01-27 | 2022-05-13 | 上海金融期货信息技术有限公司 | Single-cluster multi-tenant management system |
| CN115225606A (en) * | 2022-07-11 | 2022-10-21 | 上海道客网络科技有限公司 | Domain name access method and system of cross-network protocol of container cloud platform |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119728545A (en) * | 2024-12-02 | 2025-03-28 | 天翼云科技有限公司 | Container-based service access method, device, equipment and medium |
| CN119728545B (en) * | 2024-12-02 | 2025-09-30 | 天翼云科技有限公司 | Container-based service access method, device, equipment and medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111324571B (en) | Container cluster management method, device and system | |
| US8627310B2 (en) | Capturing multi-disk virtual machine images automatically | |
| US10572294B1 (en) | Automated application footprint discovery for application migration to containers | |
| CN109947591B (en) | Database remote disaster recovery system and deployment method and device thereof | |
| US12095734B1 (en) | Container-based association and sharing of domain name system configuration objects | |
| CN109558212B (en) | A virtualization management method, system, physical equipment and medium of physical equipment | |
| CN113127150A (en) | Rapid deployment method and device of cloud native system, electronic equipment and storage medium | |
| CN103795759A (en) | Method and system for scheduling virtual machine mirror image file | |
| US11829792B1 (en) | In-place live migration of compute instances for efficient host domain patching | |
| CN103118073A (en) | Virtual machine data persistence storage system and method in cloud environment | |
| CN113805969A (en) | Parameter configuration acquisition method and device, storage medium and electronic equipment | |
| CN116708583A (en) | Service execution method, storage medium, device and distributed system | |
| US11611616B1 (en) | Service availability zones for high availability workloads | |
| CN114371914A (en) | Container IP address configuration method, device, storage medium and electronic device | |
| CN103246522A (en) | Fast building method for hot standby environment based on virtualization platform | |
| EP4118522B1 (en) | Multi-service storage layer for storing application-critical data | |
| CN116192800A (en) | A DNS service deployment method and related device | |
| US10951479B1 (en) | User controlled fault domains | |
| CN115729673A (en) | Cluster management method, management module, electronic device and medium | |
| CN115129417A (en) | Virtual machine creation method, device and storage medium based on Kubernetes platform | |
| CN118034861A (en) | Cloud computing system, cloud desktop deployment method and cloud desktop deployment device | |
| CN117075817A (en) | A data center virtualization storage optimization method, system, equipment and media | |
| CN116915770A (en) | Service deployment methods, devices, electronic equipment and storage media | |
| CN115981675A (en) | A method and system for rapidly deploying Kubernetes clusters | |
| CN107329805A (en) | The implementation method and device of a kind of virtual platform high availability |
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 |