Domain name configuration file processing method and device, equipment and storage medium

Through the automated domain name configuration file processing method, the problem of low efficiency in domain name change maintenance under manual methods is solved, and the automated processing of domain name change maintenance is realized, which improves efficiency.

CN120238514APending Publication Date: 2025-07-01NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311844583.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the prior art, the efficiency of domain name changes and maintenance through manual methods is low, and it is difficult to meet the ever-expanding DNS domain name changes and maintenance needs.

Method used

Provide a domain name configuration file processing method, by obtaining the target domain name configuration file to be changed, performing file inspection processing according to the preset inspection policy, generating target inspection results, and changing the target domain name configuration file to the corresponding domain name server after the inspection is passed.

Benefits of technology

It realizes automated processing of domain name change maintenance, improves the efficiency of domain name change maintenance, and is more efficient than manual methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238514A_ABST
    Figure CN120238514A_ABST
Patent Text Reader

Abstract

The invention provides a domain name configuration file processing method and device, equipment and a storage medium. The method comprises the steps of obtaining a target domain name configuration file to be subjected to change processing; performing file inspection processing on the target domain name configuration file according to a preset inspection strategy to generate a corresponding target inspection result; and if the target check result is that the check is passed, changing the target domain name configuration file to a corresponding domain name server. According to the domain name configuration file processing method, the to-be-changed target domain name configuration file is checked based on the preset check strategy, so that whether the target domain name configuration file meets the preset condition or not is determined, and if the target domain name configuration file meets the preset condition, the corresponding check result is that the check is passed. And changing the target domain name configuration file to a corresponding domain name server. According to the domain name configuration file processing method, automatic processing of domain name change maintenance can be realized, and compared with a manual mode, the efficiency of domain name change maintenance is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer network technologies, and in particular, to a method, apparatus, device, and storage medium for processing domain name configuration files. Background Art

[0002] The Domain Name System (DNS) is a system on the Internet for resolving machine naming on the Internet. Its main function is to convert domain names that are easy for people to remember into IP addresses (Internet Protocol Addresses) that can be recognized by machines, enabling people to access the Internet conveniently.

[0003] In practical applications, due to the continuous expansion of the number and scale of machine devices, the work of DNS domain name change and maintenance has also increased day by day. At present, when performing domain name change and maintenance, it is necessary to manually configure and change on the DNS servers of each data center, and at the same time, it is necessary to manually maintain relevant domain name information, resulting in low efficiency.

[0004] Therefore, the current efficiency of manually maintaining domain name changes is relatively low. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for processing domain name configuration files to solve the problem of relatively low efficiency of manually maintaining domain name changes currently.

[0006] The first aspect of this application provides a method for processing a domain name configuration file, including:

[0007] Obtain a target domain name configuration file to be changed and processed;

[0008] Perform file inspection processing on the target domain name configuration file according to a preset inspection policy to generate a corresponding target inspection result;

[0009] If the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

[0010] Further, in the method as described above, the obtaining of the target domain name configuration file to be changed and processed includes:

[0011] In response to a user's click operation on a configuration component in a preset domain name change page, pop up a corresponding domain name configuration window;

[0012] In response to a user's input configuration operation on the target domain name in the domain name configuration window, generate data content corresponding to the target domain name, and store the data content in a preset configuration management database;

[0013] In response to the user's click operation on the file generation component in the domain name configuration window, generate the target domain name configuration file according to the data content.

[0014] Further, for the method described above, performing file inspection processing on the target domain name configuration file according to a preset inspection policy to generate a corresponding target inspection result, including:

[0015] Send a comparison instruction to the domain name server, so that the domain name server performs a difference comparison between the target domain name configuration file and the local domain name configuration file based on the comparison instruction to generate a corresponding difference comparison result; the comparison instruction includes the target domain name configuration file; the local domain name configuration file is the configuration file corresponding to the target domain name configuration file in the domain name server;

[0016] Receive the difference comparison result feedback by the domain name server, and determine whether the difference comparison result meets the preset difference condition;

[0017] If it is determined that the difference comparison result meets the preset difference condition, perform syntax inspection processing on the target domain name configuration file to generate the target inspection result.

[0018] Further, for the method described above, determining whether the difference comparison result meets the preset difference condition includes:

[0019] Determine whether the difference comparison result is that the difference data between the target domain name configuration file and the local domain name configuration file is the target domain name and the local domain name; the target domain name is the domain name in the target domain name configuration file; the local domain name is the corresponding domain name in the local domain name configuration file;

[0020] If it is determined that the difference comparison result is that the difference data is the target domain name and the local domain name, determine that the difference comparison result meets the preset difference condition.

[0021] Further, for the method described above, performing syntax inspection processing on the target domain name configuration file to generate the target inspection result, including:

[0022] Send a syntax inspection instruction to the domain name server, so that the domain name server performs syntax inspection processing on the target domain name configuration file based on the syntax inspection instruction to generate a corresponding syntax inspection result;

[0023] Receive the syntax inspection result feedback by the domain name server;

[0024] If the syntax inspection result is that the syntax inspection is passed, generate the target inspection result as the file inspection is passed;

[0025] If the result of the syntax check fails, generate a target check result of "file check failed" and prompt the user to reconfigure a new target domain name configuration file.

[0026] Further, in the method as described above, the step of changing the target domain name configuration file to the corresponding domain name server includes:

[0027] Send a domain name change instruction to the domain name server, so that the domain name server replaces the local domain name configuration file with the target domain name configuration file based on the domain name change instruction, and restarts the domain name system service to complete the domain name change process.

[0028] Further, in the method as described above, after changing the target domain name configuration file to the corresponding domain name server, it includes:

[0029] Send a domain name verification instruction to the domain name server, so that the domain name server performs a verification process on the changed target domain name based on the domain name verification instruction to generate a verification result;

[0030] Receive the verification result sent by the domain name server;

[0031] If the verification result is that the domain name is valid, store the target domain name and the verification result in a preset configuration management database;

[0032] If the verification result is that the domain name is invalid, execute the step of obtaining the target domain name configuration file to be changed.

[0033] A second aspect of the present application provides a device for processing a domain name configuration file, including:

[0034] An acquisition module, configured to acquire a target domain name configuration file to be changed;

[0035] A generation module, configured to perform a file check process on the target domain name configuration file according to a preset check policy to generate a corresponding target check result;

[0036] A change module, configured to change the target domain name configuration file to the corresponding domain name server if the target check result is "check passed".

[0037] Further, in the device as described above, the acquisition module is specifically configured to:

[0038] In response to a user's click operation on a configuration component in a preset domain name change page, a corresponding domain name configuration window pops up; in response to the user's input configuration operation on the target domain name in the domain name configuration window, data content corresponding to the target domain name is generated, and the data content is stored in a preset configuration management database; in response to the user's click operation on a file generation component in the domain name configuration window, a target domain name configuration file is generated according to the data content.

[0039] Further, for the device as described above, the generation module is specifically configured to:

[0040] Send a comparison instruction to the domain name server, so that the domain name server performs a difference comparison between the target domain name configuration file and the local domain name configuration file based on the comparison instruction, and generates a corresponding difference comparison result; the comparison instruction includes the target domain name configuration file; the local domain name configuration file is the configuration file corresponding to the target domain name configuration file in the domain name server; receive the difference comparison result fed back by the domain name server, and determine whether the difference comparison result meets a preset difference condition; if it is determined that the difference comparison result meets the preset difference condition, perform a syntax check process on the target domain name configuration file to generate the target check result.

[0041] Further, for the device as described above, when the generation module determines whether the difference comparison result meets a preset difference condition, it is specifically configured to:

[0042] Determine whether the difference comparison result is that the difference data between the target domain name configuration file and the local domain name configuration file is the target domain name and the local domain name; the target domain name is the domain name in the target domain name configuration file; the local domain name is the corresponding domain name in the local domain name configuration file; if it is determined that the difference comparison result is that the difference data is the target domain name and the local domain name, it is determined that the difference comparison result meets the preset difference condition.

[0043] Further, for the device as described above, when the generation module performs a syntax check process on the target domain name configuration file to generate the target check result, it is specifically configured to:

[0044] Send a syntax check instruction to the domain name server, so that the domain name server performs a syntax check process on the target domain name configuration file based on the syntax check instruction, and generates a corresponding syntax check result; receive the syntax check result fed back by the domain name server; if the syntax check result is that the syntax check is passed, generate the target check result as the file check is passed; if the syntax check result is that the syntax check is not passed, generate the target check result as the file check is not passed, and prompt the user to reconfigure a new target domain name configuration file.

[0045] Further, for the device described above, when the change module changes the target domain name configuration file to the corresponding domain name server, it is specifically configured to:

[0046] Send a domain name change instruction to the domain name server, so that the domain name server replaces the local domain name configuration file with the target domain name configuration file based on the domain name change instruction, and restarts the domain name system service to complete the domain name change process.

[0047] Further, for the device described above, the device further includes:

[0048] A verification module, configured to send a domain name verification instruction to the domain name server, so that the domain name server performs a verification process on the changed target domain name based on the domain name verification instruction to generate a verification result; receive the verification result sent by the domain name server; if the verification result is that the domain name is valid, store the target domain name and the verification result in a preset configuration management database; if the verification result is that the domain name is invalid, execute the step of obtaining the target domain name configuration file to be changed.

[0049] A third aspect of the present application provides an electronic device, including: a memory and a processor;

[0050] The memory stores computer-executable instructions;

[0051] The processor executes the computer-executable instructions stored in the memory to implement the domain name configuration file processing method according to any one of the first aspects.

[0052] A fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the domain name configuration file processing method according to any one of the first aspects.

[0053] A fifth aspect of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the domain name configuration file processing method according to any one of the first aspects.

[0054] A method, apparatus, device, and storage medium for processing a domain name configuration file provided by this application. The method includes: obtaining a target domain name configuration file to be processed for change; performing file inspection processing on the target domain name configuration file according to a preset inspection policy to generate a corresponding target inspection result; if the target inspection result is passed, changing the target domain name configuration file to a corresponding domain name server. The domain name configuration file processing method of this application inspects the target domain name configuration file to be processed for change based on a preset inspection policy, so as to determine whether the target domain name configuration file meets the preset conditions. If it meets the preset conditions, the corresponding inspection result is passed, and the target domain name configuration file is changed to the corresponding domain name server. The domain name configuration file processing method of this application can realize the automatic processing of domain name change maintenance, and has higher efficiency for domain name change maintenance compared with the manual method. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.

[0056] Figure 1 It is a scenario diagram for implementing the domain name configuration file processing method of the embodiments of this application;

[0057] Figure 2 It is a flowchart of the domain name configuration file processing method provided by this application Figure 1 ;

[0058] Figure 3 It is a flowchart of the domain name configuration file processing method provided by this application Figure 2 ;

[0059] Figure 4 It is a schematic structural diagram of the domain name configuration file processing method provided by this application;

[0060] Figure 5 It is a schematic structural diagram of the domain name configuration file processing apparatus provided by this application;

[0061] Figure 6 It is a schematic structural diagram of the electronic device provided by this application.

[0062] Through the above accompanying drawings, the clear embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These accompanying drawings and the written description are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0063] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0064] It should be noted that the method, apparatus, device, and storage medium for processing domain name configuration files of the present disclosure can be used in the field of computer network technology. It can also be used in any field other than the field of computer network technology. The application field of the method, apparatus, device, and storage medium for processing domain name configuration files of the present disclosure is not limited.

[0065] The technical solution of the present application will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0066] To clearly understand the technical solution of the present application, the solutions of the prior art will be introduced in detail first. Currently, with the continuous development of network connection technology, the work of DNS domain name change and maintenance is also increasing day by day. When the DNS domain name changes, the change and maintenance process of the operation and maintenance personnel is as follows:

[0067] 1. The operation and maintenance personnel maintain the latest DNS configuration file in the excel sheet according to the domain name change.

[0068] 2. The operation and maintenance personnel change the domain name on the configuration file of the DNS server in the corresponding data center according to the actual needs, save it after the change, and restart the DNS service.

[0069] 3. After restarting, verify the relevant domain names in a timely manner.

[0070] As the number of domain names continues to increase, the efficiency of maintaining domain name changes through the above manual method is low and it is difficult to meet the actual needs.

[0071] Therefore, in view of the problem of low efficiency of maintaining domain name changes through manual methods in the prior art, the inventors found in their research that to solve this problem, the processes of checking and changing the target domain name configuration file to be processed can be automatically processed in an automated manner to improve the efficiency of domain name change and maintenance.

[0072] Specifically, obtain the target domain name configuration file to be processed for change. Perform file inspection processing on the target domain name configuration file according to the preset inspection policy, and generate the corresponding target inspection result. If the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

[0073] The domain name configuration file processing method of this application inspects the target domain name configuration file to be processed for change based on the preset inspection policy, so as to determine whether the target domain name configuration file meets the preset conditions. If it meets the preset conditions, the result of the corresponding inspection is passed, and the target domain name configuration file is changed to the corresponding domain name server. The domain name configuration file processing method of this application can realize the automatic processing of domain name change maintenance, and has higher efficiency for domain name change maintenance compared with the manual method.

[0074] Based on the above creative discovery, the inventor proposed the technical solution of this application.

[0075] Next, the application scenario of the domain name configuration file processing method provided by the embodiments of this application will be introduced. As Figure 1 shown, where 1 is an electronic device, 2 is a domain name server, and 3 is a user. The network architecture of the application scenario corresponding to the domain name configuration file processing method provided by the embodiments of this application includes: an electronic device 1 and a domain name server 2. The electronic device 1 can be a terminal device of an operation and maintenance platform. There can be multiple domain name servers 2. In this embodiment, an application scenario with 2 domain name servers is exemplarily shown, and in other application scenarios, there can also be 3 or more domain name servers.

[0076] Exemplarily, when domain name configuration file processing is required, the electronic device 1 performs the following processing:

[0077] ① Obtain the target domain name configuration file to be processed for change. The obtaining method can be that the user 3 performs corresponding domain name configuration operations on the electronic device 1 and inputs content such as the target domain name to be changed, so as to generate the corresponding target domain name configuration file.

[0078] ② Perform file inspection processing on the target domain name configuration file according to the preset inspection policy, and generate the corresponding target inspection result. The preset inspection policy includes data content inspection, syntax inspection, etc.

[0079] ③ If the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server 2.

[0080] At the same time, after changing the target domain name configuration file to the corresponding domain name server 2, the effectiveness of this domain name change maintenance can be further verified, and the verification result is prompted to the user 3, so that the user 3 can know the result of this change maintenance processing in a timely manner.

[0081] The embodiments of the present application will be described below with reference to the accompanying drawings of the specification.

[0082] Figure 2 It is a flowchart of the method for processing a domain name configuration file provided by the present application Figure 1 , as Figure 2 shown, the execution subject of the embodiments of the present application is a domain name configuration file processing device, and this domain name configuration file processing device can be integrated in an electronic device, such as a terminal device. The electronic device is communicatively connected to at least one domain name server. Then, the method for processing a domain name configuration file provided in this embodiment includes the following steps:

[0083] Step S101, obtain a target domain name configuration file to be processed for change.

[0084] In this embodiment, the method for obtaining the target domain name configuration file can be to obtain it after a user operation, or to obtain it from other devices, such as from a user terminal. The user operation method can be to generate a corresponding target domain name configuration file through operations such as domain name configuration by the user.

[0085] The target domain name configuration file includes contents such as a target domain name and domain name server information.

[0086] Step S102, perform file inspection processing on the target domain name configuration file according to a preset inspection policy to generate a corresponding target inspection result.

[0087] In this embodiment, the preset inspection policy includes data content inspection, syntax inspection, inspection of whether the file meets expectations, etc.

[0088] Step S103, if the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

[0089] In this embodiment, the target inspection result is either passed or not passed. If it is not passed, S101 can be returned to obtain the target domain name configuration file again, and perform inspection and change processing on the target domain name configuration file.

[0090] At the same time, whether the target inspection result is passed or not passed, the corresponding inspection result can be prompted to the user so that the user can know the result of this processing faster.

[0091] A method for processing a domain name configuration file provided by an embodiment of the present application, the method includes: obtaining a target domain name configuration file to be processed for change; performing file inspection processing on the target domain name configuration file according to a preset inspection policy to generate a corresponding target inspection result; if the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

[0092] The method for processing a domain name configuration file of the present application checks a target domain name configuration file to be processed based on a preset check policy, so as to determine whether the target domain name configuration file meets the preset conditions. If it meets the preset conditions, the result of the corresponding check is a passed check, and the target domain name configuration file is changed to the corresponding domain name server. The method for processing a domain name configuration file of the present application can realize the automatic processing of domain name change maintenance, and has higher efficiency for domain name change maintenance compared with the manual method.

[0093] Figure 3 It is a flow diagram of the method for processing a domain name configuration file provided by the present application Figure 2 , such as Figure 3 shown. The method for processing a domain name configuration file provided in this embodiment is a further refinement based on the method for processing a domain name configuration file provided in the previous embodiment of the present application. At the same time, the architecture of this embodiment is as Figure 4 shown, and is divided into a domain name configuration file processing device, a preset configuration management database, and multiple domain name servers. Then the method for processing a domain name configuration file provided in this embodiment includes the following steps.

[0094] Step S201: In response to a user's click operation on a configuration component in a preset domain name change page, a corresponding domain name configuration window is popped up.

[0095] In this embodiment, the electronic device can preset a preset domain name change page, and various components such as an execution component and a configuration component are set on the preset domain name change page. The execution component includes a domain name verification component, an execution change component, etc. The configuration component includes a configuration input sub-component, a file download sub-component, etc.

[0096] In this embodiment, the user can input a target domain name in the domain name configuration window, so as to generate a target domain name configuration file.

[0097] Step S202: In response to a user's input configuration operation on the target domain name in the domain name configuration window, data content corresponding to the target domain name is generated and stored in the preset configuration management database.

[0098] The preset configuration management database can be used to store and manage data content such as target domain name configuration files, domain name resolution records, and domain name maintenance status. The preset configuration management database can also provide API (Application Programming Interface) services, so that other devices such as middleware and database servers can access the domain name server based on the data in the preset configuration management database, improving the efficiency of network connection services.

[0099] The input configuration operation of the target domain name by the user in the domain name configuration window can be to input data content such as the target domain name and the address of the corresponding domain name server, providing a basis for generating the target domain name configuration file subsequently.

[0100] Step S203, in response to the user's click operation on the file generation component in the domain name configuration window, generate a target domain name configuration file according to the data content.

[0101] In this embodiment, when the user clicks the file generation component, the background can directly perform data processing such as data format conversion on the data content and then generate a target domain name configuration file.

[0102] After generating the target domain name configuration file, the user can also click the file download sub-component to download and check whether the target domain name configuration file meets the user's requirements, such as whether the data content in the target domain name configuration file is the data content required by the user and whether there are input errors.

[0103] If the target domain name configuration file does not meet the user's requirements, it can return to S201 to reconfigure and generate a new target domain name configuration file.

[0104] Step S204, send a comparison instruction to the domain name server so that the domain name server performs a difference comparison between the target domain name configuration file and the local domain name configuration file based on the comparison instruction and generates a corresponding difference comparison result. The comparison instruction includes the target domain name configuration file. The local domain name configuration file is the configuration file corresponding to the target domain name configuration file in the domain name server.

[0105] In this embodiment, the target domain name configuration file refers to the domain name configuration file that the user wants to update to, and the local domain name configuration file is the domain name configuration file that was updated to last time.

[0106] Exemplarily, the target domain name configuration file includes domain name A1 and other data, and the local domain name configuration file includes domain name A2 and other data. After performing a difference comparison between the target domain name configuration file and the local domain name configuration file, if domain name A1 and domain name A2 are different and the other data is the same, the difference comparison result is that domain name A1 and domain name A2 are different.

[0107] Step S205, receive the difference comparison result feedback by the domain name server and determine whether the difference comparison result meets the preset difference condition.

[0108] The preset difference condition can be whether there is only a difference between domain names and there is no difference in other data. Thus, based on the preset difference condition, it is determined whether only the domain name is changed and no other errors will occur after the update of the domain name configuration file this time.

[0109] Optionally, in this embodiment, the process of determining whether the difference comparison result meets the preset difference condition may be specifically as follows:

[0110] Determine whether the difference comparison result is that the difference data between the target domain name configuration file and the local domain name configuration file is the target domain name and the local domain name. The target domain name is the domain name in the target domain name configuration file. The local domain name is the corresponding domain name in the local domain name configuration file.

[0111] If it is determined that the difference comparison result is that the difference data is the target domain name and the local domain name, it is determined that the difference comparison result meets the preset difference condition.

[0112] The target domain name is the above-mentioned domain name A1, and the local domain name is the above-mentioned domain name A2. If the difference comparison result is only that the domain name A1 and the domain name A2 are different, it means that only the domain names are different, and other data has no difference. After the domain name configuration file is updated, only the domain names will be changed.

[0113] Step S206, if it is determined that the difference comparison result meets the preset difference condition, perform a syntax check process on the target domain name configuration file to generate a target check result.

[0114] In this embodiment, the syntax check process includes text format check, text grammar check, etc.

[0115] Optionally, in this embodiment, S206 may be specifically as follows:

[0116] Send a syntax check instruction to the domain name server so that the domain name server performs a syntax check process on the target domain name configuration file based on the syntax check instruction to generate a corresponding syntax check result.

[0117] Receive the syntax check result feedback by the domain name server.

[0118] If the syntax check result is that the syntax check is passed, generate a target check result of passing the file check.

[0119] If the syntax check result is that the syntax check fails, generate a target check result of failing the file check and prompt the user to reconfigure a new target domain name configuration file.

[0120] In this embodiment, through the syntax check, it can be further determined whether there are syntax and format errors in the target domain name configuration file. If there are no such errors, the target check result is passing the file check.

[0121] In this embodiment, by sending a syntax check instruction to the domain name server to enable the domain name server to perform the corresponding syntax check, the performance impact of the syntax check on the domain name configuration file processing device can be reduced.

[0122] Step S207, if the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

[0123] Optionally, in this embodiment, the change method may be to send a domain name change instruction to the domain name server to complete the change. Then S207 may be specifically:

[0124] Send a domain name change instruction to the domain name server, so that the domain name server replaces the local domain name configuration file with the target domain name configuration file based on the domain name change instruction, and restarts the domain name system service to complete the domain name change process.

[0125] To ensure that the domain name change takes effect, it is necessary to restart the domain name system service after replacing the local domain name configuration file with the target domain name configuration file.

[0126] At the same time, other methods can also be used, such as restarting the domain name server, reconfiguring the corresponding network for the domain name server, etc.

[0127] Optionally, in this embodiment, after S207, the domain name can be further verified for validity. The process can be specifically as follows:

[0128] Send a domain name verification instruction to the domain name server, so that the domain name server verifies the changed target domain name based on the domain name verification instruction and generates a verification result.

[0129] Receive the verification result sent by the domain name server.

[0130] If the verification result is that the domain name is valid, store the target domain name and the verification result in the preset configuration management database.

[0131] If the verification result is that the domain name is invalid, execute S201.

[0132] In this embodiment, the user only needs to perform simple operations on the page of the electronic device to complete the entire process of domain name change, comparison, inspection, verification, etc., improving work efficiency and reducing operation and maintenance costs. At the same time, the preset configuration management database can open self-service API services to provide domain name-related services for services such as middleware and databases.

[0133] Figure 5 For the structural schematic diagram of the domain name configuration file processing device provided by this application, as Figure 5 shown, in this embodiment, the domain name configuration file processing device 300 can be set in the electronic device. The domain name configuration file processing device 300 includes:

[0134] An acquisition module 301, configured to acquire a target domain name configuration file to be changed and processed.

[0135] A generation module 302, configured to perform file inspection processing on a target domain name configuration file according to a preset inspection policy, and generate a corresponding target inspection result.

[0136] An alteration module 303, configured to, if the target inspection result is inspection passed, alter the target domain name configuration file to a corresponding domain name server.

[0137] The domain name configuration file processing device provided in this embodiment may execute Figure 2 the technical solution of the method embodiment shown, and its implementation principle and technical effect are similar to Figure 2 the method embodiment shown, and will not be elaborated herein one by one.

[0138] Based on the domain name configuration file processing device provided in the previous embodiment, the domain name configuration file processing device provided in this application further refines the domain name configuration file processing device. The domain name configuration file processing device 300 includes:

[0139] Optionally, in this embodiment, the acquisition module 301 is specifically configured to:

[0140] In response to a user's click operation on a configuration component in a preset domain name alteration page, a corresponding domain name configuration window is popped up. In response to a user's input configuration operation on a target domain name in the domain name configuration window, data content corresponding to the target domain name is generated, and the data content is stored in a preset configuration management database. In response to a user's click operation on a file generation component in the domain name configuration window, a target domain name configuration file is generated according to the data content.

[0141] Further, for the above device, the generation module 302 is specifically configured to:

[0142] Send a comparison instruction to the domain name server, so that the domain name server performs a difference comparison between the target domain name configuration file and the local domain name configuration file based on the comparison instruction, and generates a corresponding difference comparison result. The comparison instruction includes the target domain name configuration file. The local domain name configuration file is the configuration file corresponding to the target domain name configuration file in the domain name server. Receive the difference comparison result fed back by the domain name server, and determine whether the difference comparison result meets a preset difference condition. If it is determined that the difference comparison result meets the preset difference condition, perform syntax inspection processing on the target domain name configuration file to generate a target inspection result.

[0143] Further, for the above device, when the generation module 302 determines whether the difference comparison result meets a preset difference condition, it is specifically configured to:

[0144] Determine whether the result of the difference comparison is that the difference data between the target domain name configuration file and the local domain name configuration file is the target domain name and the local domain name. The target domain name is the domain name in the target domain name configuration file. The local domain name is the corresponding domain name in the local domain name configuration file. If it is determined that the result of the difference comparison is that the difference data is the target domain name and the local domain name, it is determined that the result of the difference comparison meets the preset difference condition.

[0145] Further, for the above device, when the generation module 302 performs a syntax check process on the target domain name configuration file to generate a target check result, it is specifically used for:

[0146] Send a syntax check instruction to the domain name server so that the domain name server performs a syntax check process on the target domain name configuration file based on the syntax check instruction to generate a corresponding syntax check result. Receive the syntax check result fed back by the domain name server. If the syntax check result is that the syntax check is passed, generate a target check result that the file check is passed. If the syntax check result is that the syntax check fails, generate a target check result that the file check fails, and prompt the user to reconfigure a new target domain name configuration file.

[0147] Further, for the above device, when the change module 303 changes the target domain name configuration file to the corresponding domain name server, it is specifically used for:

[0148] Send a domain name change instruction to the domain name server so that the domain name server replaces the local domain name configuration file with the target domain name configuration file based on the domain name change instruction and restarts the domain name system service to complete the domain name change process.

[0149] Further, for the above device, the domain name configuration file processing device 300 further includes:

[0150] A verification module, which is used to send a domain name verification instruction to the domain name server so that the domain name server performs a verification process on the changed target domain name based on the domain name verification instruction to generate a verification result. Receive the verification result sent by the domain name server. If the verification result is that the domain name is valid, store the target domain name and the verification result in a preset configuration management database. If the verification result is that the domain name is invalid, perform the step of obtaining the target domain name configuration file to be changed.

[0151] The domain name configuration file processing device provided in this embodiment can execute Figures 2 - 4 the technical solution of the method embodiment shown, and its implementation principle and technical effect are similar to those of Figures 2 - 4 the method embodiment shown, and will not be elaborated here one by one.

[0152] According to the embodiments of the present application, the present application also provides an electronic device, a computer-readable storage medium, and a computer program product.

[0153] AsFigure 6 As shown Figure 6 is a schematic structural diagram of an electronic device provided by the present application. The electronic device is intended for various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described herein and / or claimed.

[0154] As Figure 6 shown, the electronic device includes: a processor 401 and a memory 402. Each component is interconnected using different buses and can be installed on a common motherboard or otherwise installed as required. The processor can process instructions executed within the electronic device.

[0155] The memory 402 is the non-transitory computer-readable storage medium provided by the present application. Among them, the memory stores instructions executable by at least one processor, so that at least one processor executes the domain name configuration file processing method provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, and the computer instructions are used to cause a computer to execute the domain name configuration file processing method provided by the present application.

[0156] The memory 402, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the domain name configuration file processing method in the embodiments of the present application (for example, attached Figure 5 shown acquisition module 301, generation module 302, and change module 303). The processor 401 executes various functional applications and data processing of the electronic device by running the non-transitory software programs, instructions, and modules stored in the memory 402, that is, implements the domain name configuration file processing method in the above method embodiments.

[0157] At the same time, this embodiment also provides a computer product. When the instructions in the computer product are executed by the processor of the electronic device, the electronic device can execute the domain name configuration file processing method of the above embodiment.

[0158] Those skilled in the art will readily think of other implementation schemes of the embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the embodiments of the present application, which follow the general principles of the embodiments of the present application and include the common general knowledge or conventional technical means in the technical field not disclosed in the embodiments of the present application.

[0159] It should be understood that the embodiments of the present application are not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the embodiments of the present application is only limited by the appended claims.

Claims

1. A method for processing a domain name configuration file, characterized in that, Including: Obtain a target domain name configuration file to be processed for change; Perform file inspection processing on the target domain name configuration file according to a preset inspection policy, and generate a corresponding target inspection result; If the target inspection result is passed, change the target domain name configuration file to the corresponding domain name server.

2. The method according to claim 1, wherein The obtaining of the target domain name configuration file to be processed for change includes: In response to a user's click operation on a configuration component in a preset domain name change page, pop up a corresponding domain name configuration window; In response to a user's input configuration operation on a target domain name in the domain name configuration window, generate data content corresponding to the target domain name, and store the data content in a preset configuration management database; In response to a user's click operation on a file generation component in the domain name configuration window, generate the target domain name configuration file according to the data content.

3. The method according to claim 1, characterized in that The performing of file inspection processing on the target domain name configuration file according to a preset inspection policy and generating a corresponding target inspection result includes: Send a comparison instruction to the domain name server, so that the domain name server performs a difference comparison between the target domain name configuration file and the local domain name configuration file based on the comparison instruction, and generates a corresponding difference comparison result; the comparison instruction includes the target domain name configuration file; the local domain name configuration file is the configuration file corresponding to the target domain name configuration file in the domain name server; Receive the difference comparison result fed back by the domain name server, and determine whether the difference comparison result meets a preset difference condition; If it is determined that the difference comparison result meets the preset difference condition, perform syntax inspection processing on the target domain name configuration file to generate the target inspection result.

4. The method according to claim 3, wherein The determining whether the difference comparison result meets the preset difference condition includes: Determine whether the difference comparison result is that the difference data between the target domain name configuration file and the local domain name configuration file is the target domain name and the local domain name; the target domain name is the domain name in the target domain name configuration file; the local domain name is the corresponding domain name in the local domain name configuration file; If it is determined that the difference comparison result is that the difference data is the target domain name and the local domain name, determine that the difference comparison result meets the preset difference condition.

5. The method according to claim 3, characterized in that The performing of syntax inspection processing on the target domain name configuration file to generate the target inspection result includes: Send a syntax inspection instruction to the domain name server, so that the domain name server performs syntax inspection processing on the target domain name configuration file based on the syntax inspection instruction, and generates a corresponding syntax inspection result; Receive the syntax inspection result fed back by the domain name server; If the syntax inspection result is passed, generate a target inspection result of passing the file inspection; If the syntax inspection result is not passed, generate a target inspection result of not passing the file inspection, and prompt the user to reconfigure a new target domain name configuration file.

6. The method according to claim 3, wherein The changing of the target domain name configuration file to the corresponding domain name server includes: Send a domain name change instruction to the domain name server, so that the domain name server replaces the local domain name configuration file with the target domain name configuration file based on the domain name change instruction, and restarts the domain name system service to complete the domain name change process.

7. The method according to any one of claims 2 to 6, characterized in that, After changing the target domain name configuration file to the corresponding domain name server, it includes: Send a domain name verification instruction to the domain name server, so that the domain name server performs a verification process on the changed target domain name based on the domain name verification instruction to generate a verification result; Receive the verification result sent by the domain name server; If the verification result is that the domain name is valid, store the target domain name and the verification result in a preset configuration management database; If the verification result is that the domain name is invalid, execute the step of obtaining the target domain name configuration file to be changed.

8. A domain name configuration file processing device, characterized in that It includes: An acquisition module for acquiring a target domain name configuration file to be changed; A generation module for performing a file check process on the target domain name configuration file according to a preset check policy to generate a corresponding target check result; A change module for, if the target check result is passed, changing the target domain name configuration file to the corresponding domain name server.

9. An electronic device, characterized in that, It includes: A memory and a processor; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the domain name configuration file processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the computer execution instructions are executed by a processor, they are used to implement the domain name configuration file processing method according to any one of claims 1 to 7.