Configuration method, device, equipment, medium and program product
By using a simulated environment server to verify the forwarding configuration information in the DNS forwarding service, the instability caused by directly modifying the configuration file is resolved, thus achieving stability and real-time performance of the DNS service.
Patent Information
- Application Number
- CN202511178707.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2025-10-31
AI Technical Summary
Directly modifying the configuration file of the DNS forwarding service can easily lead to service failures and make the DNS service unstable.
If the heartbeat detection results between the simulated environment server and the real environment server meet the preset conditions, the simulated environment server is used to verify the forwarding configuration information. After successful verification, the configuration information is sent to the real environment server to query the corresponding address.
Ensuring that the DNS forwarding service performs data verification before configuration information is updated improves service stability and real-time performance, and avoids failures caused by direct modification of configuration files.
Smart Images

Figure CN120881077A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a configuration method, apparatus, device, medium, and program product. Background Technology
[0002] DNS (Domain Name System) forwarding is an efficient and flexible DNS resolution mechanism. By forwarding query requests to other DNS servers, the query service of the DNS servers can find the entry point of a site or resource and then access it, thus realizing the main function of DNS in converting domain names to IP addresses.
[0003] BIND (Berkeley Internet Name Domain) software is currently the most commonly used DNS server software. Forwarding functionality is achieved by updating the BIND service configuration file and adding relevant configuration parameters.
[0004] In realizing the concept disclosed herein, the inventors discovered that directly modifying configuration parameters in configuration files in related technologies can easily lead to DNS forwarding service failures, resulting in unstable DNS services. Summary of the Invention
[0005] In view of the above, this disclosure provides a configuration method, apparatus, device, medium, and program product.
[0006] One aspect of this disclosure provides a configuration method, comprising: in response to a heartbeat detection result between a simulated environment server and a real environment server meeting preset conditions, sending a query request associated with a target domain name to the simulated environment server, wherein the query request includes the target domain name and forwarding configuration information of the target domain name; calling an interface of the simulated environment server to perform data verification on the forwarding configuration information and obtaining a verification result; in response to the verification result indicating successful verification, sending the forwarding configuration information to the real environment server, so that the real environment server performs a corresponding address query for the target domain name based on the forwarding configuration information.
[0007] According to embodiments of this disclosure, the method further includes: acquiring first heartbeat data containing status information generated by each first node in the simulated environment server; acquiring second heartbeat data containing status information generated by each second node in the real environment server; performing data verification on the first heartbeat data and the second heartbeat data to obtain verification results; and determining whether the heartbeat detection results of the simulated environment server and the real environment server meet preset conditions based on the verification results.
[0008] According to embodiments of this disclosure, calling the simulated environment server interface to perform data verification on the forwarding configuration information and obtain verification results includes: calling the simulated environment server interface to parse the forwarding configuration information and obtain parsed forwarding configuration information; and performing data verification on the parsed forwarding configuration information based on preset verification rules and the simulated configuration information of the simulated environment server to obtain verification results.
[0009] According to embodiments of this disclosure, the simulated configuration information includes at least one, and the parsed and forwarded configuration information includes at least one.
[0010] According to embodiments of this disclosure, based on preset verification rules, and according to the simulated configuration information of the simulated environment server, data verification is performed on the parsed forwarding configuration information to obtain verification results. This includes: determining the parsed forwarding configuration information identifier that is the same as each configuration identifier according to the configuration identifier corresponding to each simulated configuration information in the simulated environment server; verifying the simulated configuration information corresponding to each configuration identifier and the parsed forwarding configuration information corresponding to each parsed forwarding configuration information identifier to obtain the corresponding verification results.
[0011] According to embodiments of this disclosure, the method further includes: determining that the verification result is successful upon detecting that each simulated configuration information in the simulated environment server is consistent with the corresponding parsed forwarding configuration information; and determining that the verification result is unsuccessful upon detecting that at least one simulated configuration information in the simulated environment server is inconsistent with at least one corresponding parsed forwarding configuration information.
[0012] According to embodiments of this disclosure, the real environment server performs a corresponding address query for the target domain name based on the forwarding configuration information by the following operations: updating the original configuration information in the real environment server to the forwarding configuration information; and performing a corresponding address query for the target domain name based on the forwarding configuration information to obtain the query result.
[0013] According to embodiments of this disclosure, it further includes: a management and monitoring module that stores forwarding configuration information in a real environment server.
[0014] Another aspect of this disclosure provides a configuration apparatus, comprising: a request sending module, configured to send a query request associated with a target domain name to the simulated environment server in response to a preset condition being met by the heartbeat detection results between the simulated environment server and the real environment server, wherein the query request includes the target domain name and forwarding configuration information of the target domain name; a data verification module, configured to call the interface of the simulated environment server to perform data verification on the forwarding configuration information and obtain a verification result; and an information sending module, configured to send the forwarding configuration information to the real environment server in response to the verification result indicating successful verification, so that the real environment server performs a corresponding address query on the target domain name based on the forwarding configuration information.
[0015] Another aspect of this disclosure provides an electronic device comprising:
[0016] One or more processors;
[0017] Memory, used to store one or more programs.
[0018] Specifically, when one or more programs are executed by one or more processors, the one or more processors implement the above method.
[0019] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the methods described above.
[0020] Another aspect of this disclosure provides a computer program product including computer-executable instructions that, when executed, are used to implement the methods described above.
[0021] According to the embodiments of this disclosure, by employing a technical means that, when the heartbeat detection results between the simulated environment server and the real environment server meet preset conditions, the simulated environment server performs data verification on the forwarding configuration information in the received query request. If the verification result indicates successful verification, the forwarding configuration information is sent to the real environment server, enabling the real environment server to perform corresponding address queries on the target domain name based on the forwarding configuration information. This at least partially overcomes the technical problem in related technologies where directly modifying the configuration parameters of the configuration file can easily lead to DNS forwarding service failures and cause DNS service instability. Thus, it achieves the technical effect of verifying the forwarding configuration information before the real environment server implements the forwarding service, ensuring that the forwarding configuration information can take effect in real time, thereby guaranteeing the stability of the DNS forwarding service. Attached Figure Description
[0022] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0023] Figure 1 This illustration schematically shows an exemplary system architecture to which configuration methods and apparatus can be applied according to embodiments of the present disclosure;
[0024] Figure 2 A schematic flowchart of a configuration method according to an embodiment of the present disclosure is shown;
[0025] Figure 3 A flowchart illustrating a method for obtaining verification results according to an embodiment of the present disclosure is shown schematically.
[0026] Figure 4A schematic diagram illustrating a configuration method according to an embodiment of the present disclosure is shown.
[0027] Figure 5 A schematic diagram illustrating a configuration method according to another embodiment of the present disclosure is shown;
[0028] Figure 6 A block diagram schematically illustrates a configuration apparatus according to embodiments of the present disclosure; and
[0029] Figure 7 A block diagram of an electronic device suitable for implementing a configuration method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0030] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0032] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0033] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0034] In the embodiments disclosed herein, the collection, updating, analysis, processing, use, transmission, provision, disclosure, and storage of data (e.g., including but not limited to user personal information) comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures have been taken to prevent unauthorized access to user personal information data and to safeguard user personal information security and network security.
[0035] In the embodiments disclosed herein, user authorization or consent is obtained before acquiring or collecting user personal information.
[0036] The embodiments of this disclosure provide a configuration method, including: in response to the heartbeat detection results between the simulated environment server and the real environment server meeting preset conditions, sending a query request associated with a target domain name to the simulated environment server, wherein the query request includes the target domain name and forwarding configuration information of the target domain name; calling the interface of the simulated environment server to perform data verification on the forwarding configuration information and obtaining a verification result; in response to the verification result indicating successful verification, sending the forwarding configuration information to the real environment server, so that the real environment server performs a corresponding address query for the target domain name based on the forwarding configuration information.
[0037] Figure 1 The illustration schematically depicts an exemplary system architecture to which configuration methods and apparatus can be applied according to embodiments of this disclosure. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0038] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a terminal device 101, a configuration server 102, a simulation environment server 103, a network 104, and a real environment server 105. The network 104 serves as a medium for providing communication links between the terminal device 101 and the configuration server 102, the simulation environment server 103, and the real environment server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0039] Terminal device 101 can be various electronic devices with a display screen and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0040] The user uses the web browsing interface supported by terminal device 101 to set forwarding configuration information for querying the target domain name, and sends the forwarding configuration information to configuration server 102 for storage. Configuration server 102 then sends the forwarding configuration information to simulation environment server 103, which simulates real environment server 105 to implement the forwarding service. After receiving the forwarding configuration information, simulation server 103 performs data verification. If the verification is successful, it sends the forwarding configuration parameters to real environment server 105 through configuration server 102, enabling real environment server 105 to perform the query operation for the target domain name. If the verification fails, it does not send forwarding configuration information to real environment server 105, terminates the operation, and displays the verification failure result to terminal device 101.
[0041] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0042] Figure 2 A schematic flowchart of a configuration method according to an embodiment of the present disclosure is shown.
[0043] like Figure 2 As shown, the method 200 includes operations S210 to S230.
[0044] In operation S210, in response to the heartbeat detection results between the simulated environment server and the real environment server meeting the preset conditions, a query request associated with the target domain name is sent to the simulated environment server.
[0045] According to embodiments of this disclosure, the executing entity of this disclosure may be a configuration server, which can be used to connect a real environment server and a simulated environment server, and send forwarding configuration information to the real environment server and the simulated environment server.
[0046] According to embodiments of this disclosure, the real environment server can be a DNS server, which may include BIND service and management (i.e., AGENT) service. The management service can monitor and manage the operation of the BIND service. The simulated environment server is a real environment that replicates the real environment server as closely as possible, such as hardware, software, configuration, data, etc.
[0047] According to the embodiments of this disclosure, before implementing this disclosure, it is necessary to detect whether the heartbeat detection results of the simulated environment server and the real environment server meet preset conditions. The preset conditions may be that the heartbeats of the simulated environment server and the real environment server are consistent, or that the heartbeat detection results of both meet a threshold range.
[0048] According to embodiments of this disclosure, the target domain name can be a domain name whose corresponding IP (Internet Protocol) address needs to be found through a real-world server. The query request can be a request to query the corresponding address of the target domain name. The purpose is to convert the target domain name to an IP address and find the entry point to the site or resource.
[0049] According to embodiments of this disclosure, the query request may include a target domain name and its forwarding configuration information. The forwarding configuration information may define the forwarding behavior mode of the DNS server. The forwarding behavior mode may include a default mode and a forced forwarding mode. The default mode may execute a complete recursive query automatically, while the forced forwarding mode may rely on upstream queries and never perform recursive queries automatically.
[0050] According to embodiments of this disclosure, the forwarding configuration information can be edited and selected by the user on a web interface, relating to the target domain name. A query request carrying this forwarding configuration information is then sent to the simulation environment server.
[0051] When operating the S220, the simulated environment server interface is called to perform data verification on the forwarding configuration information and obtain the verification result.
[0052] According to embodiments of this disclosure, data verification is used to verify whether DNS service can be successfully implemented using forwarding configuration information.
[0053] According to embodiments of this disclosure, the simulation environment server may include a simulation BIND service and an AGENT service. When the simulation environment server receives a query request carrying the forwarding configuration information, the AGENT service first backs up and stores the forwarding configuration information, and at the same time uses the BIND service to perform data verification on the forwarding configuration information to verify whether the forwarding configuration information is consistent with the configuration of the BIND service in the simulation environment server, thereby obtaining the verification result.
[0054] In operation S230, in response to the verification result indicating successful verification, forwarding configuration information is sent to the real environment server so that the real environment server can query the corresponding address of the target domain name based on the forwarding configuration information.
[0055] According to embodiments of this disclosure, if the verification result indicates successful data verification, the forwarding configuration information is sent to the real environment server. The forwarding configuration information is then stored in the management and monitoring module (i.e., the AGENT service) of the real environment server. The real environment server includes a BIND service and an AGENT service. As described above, the AGENT service first stores the forwarding configuration information, and then changes the configuration information of the server's BIND service to this forwarding configuration information, thereby enabling address lookup of the target domain name based on the forwarding configuration information.
[0056] According to the embodiments of this disclosure, by employing a technical means that, when the heartbeat detection results between the simulated environment server and the real environment server meet preset conditions, the simulated environment server performs data verification on the forwarding configuration information in the received query request. If the verification result indicates successful verification, the forwarding configuration information is sent to the real environment server, enabling the real environment server to perform corresponding address queries on the target domain name based on the forwarding configuration information. This at least partially overcomes the technical problem in related technologies where directly modifying the configuration parameters of the configuration file can easily lead to DNS forwarding service failures and cause DNS service instability. Thus, it achieves the technical effect of verifying the forwarding configuration information before the real environment server implements the forwarding service, ensuring that the forwarding configuration information can take effect in real time, thereby guaranteeing the stability of the DNS forwarding service.
[0057] According to embodiments of this disclosure, the method further includes: acquiring first heartbeat data containing status information generated by each first node in the simulated environment server; acquiring second heartbeat data containing status information generated by each second node in the real environment server; performing data verification on the first heartbeat data and the second heartbeat data to obtain verification results; and determining whether the heartbeat detection results of the simulated environment server and the real environment server meet preset conditions based on the verification results.
[0058] According to embodiments of this disclosure, each node of the simulated environment server and the real environment server can be the server's hardware status, memory pressure, disk, CPU (Central Processing Unit) limit, etc.
[0059] According to embodiments of this disclosure, the first heartbeat data is the status information of each node in the simulated environment server that is collected independently; the second heartbeat data can be the status information of each node in the real environment server that is collected independently.
[0060] According to embodiments of this disclosure, a signature of the status data of each node in the simulated environment server can be calculated separately, and the signature can be appended to the respective first heartbeat data and second heartbeat data. The integrity of the signature of the first heartbeat data in the simulated environment server and the data of each node is verified, and the status information of each successfully verified first node and the corresponding first node are extracted. Simultaneously, the signature of the second heartbeat data in the real environment server and the integrity of the data of each node are verified, and the status information of each successfully verified second node and the corresponding second node are extracted.
[0061] According to embodiments of this disclosure, the successfully verified heartbeat data is compared for state consistency. For example, the state fields are directly compared to see if they are completely identical. If the state fields are completely identical, the tolerance of the indicators for the same node type is compared. For example, if the node type is CPU, and the tolerance of the CPU value in the simulated environment server and the CPU value in the real environment server is less than a preset threshold, it indicates that the heartbeat state of the CPU of that node is consistent. Similarly, the heartbeats of each node are compared. When the heartbeats of all nodes are consistent, it indicates that the heartbeat detection results of the simulated environment server and the real environment server meet the preset conditions. Otherwise, the results of the two do not meet the preset conditions, and this disclosure cannot be realized.
[0062] According to embodiments of this disclosure, dual-environment heartbeat detection identifies whether the behavior states of the simulated environment server and the real environment server are consistent, thereby achieving consistency in behavior between environments, verifying the availability of forwarding configuration information, and improving the service stability of the real environment server.
[0063] Figure 3 A flowchart illustrating a method for obtaining verification results according to an embodiment of the present disclosure is shown schematically.
[0064] like Figure 3 As shown, the method 300 includes operations S310 to S320.
[0065] When operating the S310, the simulated environment server interface is called to parse the forwarding configuration information and obtain the parsed forwarding configuration information.
[0066] When operating the S320, based on preset verification rules and the simulated configuration information of the simulated environment server, the parsed forwarding configuration information is verified to obtain the verification result.
[0067] According to embodiments of this disclosure, the BIND service in a simulated environment server can be used to parse and transform forwarding configuration information according to predefined rules and semantics to obtain standardized, structured parsed forwarding configuration information. For example, it can be parsed into explicit file storage paths, IP addresses, etc.
[0068] According to embodiments of this disclosure, the simulated configuration information can be the configuration information set in the simulated environment server. The obtained parsed forwarding configuration information is compared and matched with the simulated configuration information in the simulated server. If they match, the parsed forwarding configuration information verification is successful; otherwise, the verification fails.
[0069] According to embodiments of this disclosure, the simulation configuration information in the simulation environment server may include at least one; the post-resolved forwarding configuration information associated with the target domain name may include at least one.
[0070] According to embodiments of this disclosure, based on preset verification rules, and according to the simulated configuration information of the simulated environment server, data verification is performed on the parsed forwarding configuration information to obtain verification results. This includes: determining the parsed forwarding configuration information identifier that is the same as each configuration identifier according to the configuration identifier corresponding to each simulated configuration information in the simulated environment server; verifying the simulated configuration information corresponding to each configuration identifier and the parsed forwarding configuration information corresponding to each parsed forwarding configuration information identifier to obtain the corresponding verification results.
[0071] According to embodiments of this disclosure, each simulation configuration information in the simulation environment server has a corresponding configuration identifier. Based on the configuration identifier in the simulation environment server, a parsed forwarding configuration information identifier identical to that configuration identifier can be queried from the parsed forwarding configuration information.
[0072] According to the embodiments of this disclosure, based on the same identifier, the simulated configuration information corresponding to the configuration identifier is compared and matched with the parsed forwarding configuration information corresponding to the parsed forwarding configuration information identifier. If the match is successful, the above operation is continued to compare and match the next parsed forwarding configuration information until all forwarding configuration information is matched, and the verification result of each parsed forwarding configuration information is obtained.
[0073] According to embodiments of this disclosure, the above method further includes: in response to detecting that each simulation configuration information in the simulation environment server is consistent with the corresponding parsed forwarding configuration information, determining that the verification result is successful;
[0074] In response to the detection that at least one simulated configuration information in the simulated environment server is inconsistent with at least one corresponding parsed forwarding configuration information, the verification result is determined to be a verification failure.
[0075] According to embodiments of this disclosure, based on the configuration identifier in the simulation environment server, the parsed forwarding configuration information identifier that is the same as the configuration identifier is queried from the parsed forwarding configuration information. This allows for the comparison and matching results between the simulation configuration information corresponding to each configuration identifier in the simulation environment server and the parsed forwarding configuration information corresponding to each parsed forwarding configuration information identifier that is the same as the configuration identifier.
[0076] According to the embodiments of this disclosure, if each simulated configuration information matches its corresponding parsed forwarding configuration information, it indicates that the forwarding configuration information verification is successful, and the forwarding configuration information can be sent to the real environment server to perform an address query operation.
[0077] According to the embodiments of this disclosure, if at least one of the simulated configuration information fails to match its corresponding parsed forwarding configuration information, it indicates that the forwarding configuration information verification has failed, and the forwarding configuration information will no longer be sent to the real environment server.
[0078] According to embodiments of this disclosure, a simulated environment server with the same environment as the real environment server verifies the forwarding configuration information of the target domain name, and sends the forwarding configuration information to the real environment server if the verification result ensures that the forwarding configuration information is usable. This enables the real environment server to use the successfully verified forwarding configuration information to implement forwarding query services, thereby improving the service stability of the real environment server.
[0079] According to embodiments of this disclosure, the real environment server performs a corresponding address query for the target domain name based on the forwarding configuration information by the following operations: updating the original configuration information in the real environment server to the forwarding configuration information; and performing a corresponding address query for the target domain name based on the forwarding configuration information to obtain the query result.
[0080] According to the embodiments of this disclosure, after the real environment server receives the successfully verified forwarding configuration information, it can change the original configuration information of the server to the forwarding configuration information, reload the service of the real environment server, and perform a corresponding address query on the target domain name based on the forwarding mode of the forwarding configuration information, thereby obtaining the address query result of the target domain name.
[0081] According to embodiments of this disclosure, after the real environment server completes the above operations, it can return the execution result to the simulation environment server. The simulation environment server then returns the execution result to the terminal device to show the user that the forwarding configuration information is available, and updates the database.
[0082] Figure 4 A schematic diagram illustrating a configuration method according to an embodiment of the present disclosure is shown.
[0083] like Figure 4As shown in the schematic diagram 400, heartbeat detection is performed on the simulated environment server and the real environment server S401. It is then determined whether the heartbeat detection results of the simulated environment server and the real environment server meet preset conditions S402. If the preset conditions are not met, the operation ends S403. If the preset conditions are met, a query request associated with the target domain name is sent to the simulated environment server S404. The query request includes the target domain name and at least one forwarding configuration information. The simulated environment server interface is called to parse at least one forwarding configuration information to obtain at least one parsed forwarding configuration information S405. The at least one configuration information of the simulated environment server is verified against the corresponding at least one parsed forwarding configuration information S406. It is then determined whether the forwarding configuration information verification is successful S407. If the verification fails, the operation ends S403. If the verification succeeds, the forwarding configuration information is sent to the real environment server so that the real environment server can perform a corresponding address query for the target domain name based on the forwarding configuration information S408.
[0084] Figure 5 A schematic diagram illustrating a configuration method according to another embodiment of the present disclosure is shown.
[0085] like Figure 5 As shown in diagram 500, the user edits forwarding configuration information associated with the target domain name on the WEB (World Wide Web) terminal (S501), such as forwarding configuration information for domain A, domain B, domain C, and domain D. The system then determines whether the heartbeat detection results between the simulated environment server and the real environment server meet preset conditions (S502). If the preset conditions are not met, the operation ends (S505), and the detection result is returned to the WEB terminal. If the heartbeat detection results between the simulated environment server and the real environment server meet the preset conditions, the system sends a query request carrying the target domain name and corresponding forwarding configuration information to the simulated environment server (S503). Upon receiving the query request, the simulated environment server uses the AGENT service to back up the forwarding configuration information and uses the BIND service to perform data verification on the forwarding configuration information (S504). If the verification fails, a verification failure result is returned to the WEB terminal, the operation ends (S505), and a verification failure result is returned to the WEB terminal. If the verification is successful, the forwarding configuration information is sent to the real environment server (S506). The original configuration information is changed to the forwarding configuration information using the BIND service on the real environment server. The service on the real environment server is reloaded, and a query for the corresponding address of the target domain name is performed (S507). The execution result is then returned to the simulated environment server (S508). The simulated server returns the execution result, indicating that the forwarding configuration information is available, to the web client for display to the user.
[0086] Figure 6 A block diagram of a configuration apparatus according to an embodiment of the present disclosure is shown schematically.
[0087] like Figure 6 As shown, the device 600 includes a request sending module 610, a data verification module 620, and an information sending module 630.
[0088] The request sending module 610 is used to send a query request associated with the target domain name to the simulated environment server in response to the heartbeat detection results between the simulated environment server and the real environment server meeting preset conditions. The query request includes the target domain name and the forwarding configuration information of the target domain name.
[0089] The data verification module 620 is used to call the simulated environment server interface to verify the forwarding configuration information and obtain the verification result.
[0090] The information sending module 630 is used to send forwarding configuration information to the real environment server in response to the verification result indicating successful verification, so that the real environment server can perform a corresponding address query for the target domain name based on the forwarding configuration information.
[0091] According to embodiments of this disclosure, the device further includes: a first heartbeat data acquisition module, a second heartbeat data acquisition module, a data verification module, and a detection result determination module.
[0092] The first heartbeat data acquisition module is used to acquire the first heartbeat data containing status information generated by each first node in the simulation environment server.
[0093] The second heartbeat data acquisition module is used to acquire second heartbeat data containing status information generated by each second node in the real environment server.
[0094] The data verification module is used to verify the first heartbeat data and the second heartbeat data to obtain the verification results.
[0095] The detection result determination module is used to determine whether the heartbeat detection results of the simulated environment server and the real environment server meet the preset conditions based on the verification results.
[0096] According to embodiments of this disclosure, the data verification module 620 includes a parsing submodule and a data verification submodule.
[0097] The parsing submodule is used to call the simulation environment server interface to parse the forwarding configuration information and obtain the parsed forwarding configuration information.
[0098] The data verification submodule is used to perform data verification on the parsed forwarding configuration information based on preset verification rules and the simulated configuration information of the simulated environment server, and obtain the verification result.
[0099] According to embodiments of this disclosure, the simulated configuration information includes at least one, and the parsed and forwarded configuration information includes at least one.
[0100] According to embodiments of this disclosure, the data verification submodule includes an identifier determination unit and a verification unit.
[0101] The identifier determination unit is used to determine the parsed forwarding configuration information identifier that is the same as each configuration identifier, based on the configuration identifier corresponding to each simulation configuration information in the simulation environment server.
[0102] The verification unit is used to verify the simulated configuration information corresponding to each configuration identifier and the parsed forwarding configuration information corresponding to each parsed forwarding configuration information identifier, and obtain the corresponding verification result.
[0103] According to embodiments of this disclosure, the data verification submodule further includes: a first verification result determination unit and a second verification result determination unit.
[0104] The first verification result determination unit is used to determine the verification result as successful when it is detected that each simulated configuration information in the simulated environment server is consistent with the corresponding parsed forwarding configuration information.
[0105] The second verification result determination unit is used to determine the verification result as verification failure in response to detecting that at least one simulated configuration information in the simulated environment server is inconsistent with at least one corresponding parsed forwarding configuration information.
[0106] According to embodiments of this disclosure, the information sending module includes: a configuration information update submodule and a query result acquisition submodule.
[0107] The configuration information update submodule is used to update the original configuration information in the real environment server to the forwarding configuration information.
[0108] The query result retrieval submodule is used to query the corresponding address of the target domain name based on the forwarding configuration information and obtain the query result.
[0109] According to embodiments of this disclosure, the information sending module further includes a storage submodule.
[0110] The storage submodule is a management and monitoring module used to store forwarding configuration information on a real-world server.
[0111] Any one or more of the modules, submodules, and units according to embodiments of this disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, and units according to embodiments of this disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, and units according to embodiments of this disclosure can be at least partially implemented as hardware circuitry, such as a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a System-on-Chip, a System-on-a-Substrate, a System-on-Package, an Application-Specific Integrated Circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, and units according to embodiments of this disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.
[0112] For example, any plurality of the request sending module 610, data verification module 620, and information sending module 630 may be combined into one module / submodule / unit, or any one of these modules / units may be split into multiple modules / units. Alternatively, at least part of the functionality of one or more of these modules / submodules / units may be combined with at least part of the functionality of other modules / submodules / units and implemented in one module / submodule / unit. According to embodiments of this disclosure, at least one of the request sending module 610, data verification module 620, and information sending module 630 may be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the request sending module 610, the data verification module 620, and the information sending module 630 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.
[0113] It should be noted that the configuration device part in the embodiments of this disclosure corresponds to the configuration method part in the embodiments of this disclosure. For a detailed description of the configuration device part, please refer to the configuration method part, which will not be repeated here.
[0114] Figure 7 A block diagram of an electronic device suitable for implementing the configuration method described above, according to an embodiment of the present disclosure, is shown schematically. Figure 7The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0115] like Figure 7 As shown, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0116] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
[0117] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the input / output (I / O) interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0118] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0119] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0120] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0121] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0122] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the configuration methods provided in the embodiments of this disclosure.
[0123] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0124] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0125] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0126] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways, even if such combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0127] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A configuration method, comprising: In response to the heartbeat detection results between the simulated environment server and the real environment server meeting preset conditions, a query request associated with the target domain name is sent to the simulated environment server, wherein the query request includes the target domain name and the forwarding configuration information of the target domain name; The simulated environment server interface is invoked to perform data verification on the forwarding configuration information, and the verification result is obtained. In response to the verification result indicating successful verification, the forwarding configuration information is sent to the real environment server so that the real environment server can perform a corresponding address query for the target domain name based on the forwarding configuration information.
2. The method according to claim 1, wherein, The method further includes: Obtain the first heartbeat data containing status information generated by each first node in the simulation environment server; Obtain the second heartbeat data containing status information generated by each second node in the real environment server; The first heartbeat data and the second heartbeat data are validated to obtain the validation results; Based on the verification results, determine whether the heartbeat detection results of the simulated environment server and the real environment server meet the preset conditions.
3. The method according to claim 1, wherein, The step of calling the simulated environment server interface to perform data verification on the forwarding configuration information and obtain the verification result includes: The simulated environment server interface is invoked to parse the forwarding configuration information, thereby obtaining the parsed forwarding configuration information; Based on preset verification rules, the parsed forwarding configuration information is verified according to the simulated configuration information of the simulated environment server to obtain the verification result.
4. The method according to claim 3, wherein, The simulated configuration information includes at least one, and the parsed forwarding configuration information includes at least one; The process involves verifying the parsed forwarding configuration information based on preset verification rules and the simulated configuration information of the simulated environment server to obtain verification results, including: Based on the configuration identifiers corresponding to each simulation configuration information in the simulation environment server, determine the parsed forwarding configuration information identifier that is identical to each of the configuration identifiers; The simulated configuration information corresponding to each configuration identifier and the parsed forwarding configuration information corresponding to each parsed forwarding configuration information identifier are verified to obtain the corresponding verification results.
5. The method according to claim 4, further comprising: In response to the detection that each of the simulation configuration information in the simulation environment server is consistent with the corresponding parsed forwarding configuration information, the verification result is determined to be a successful verification. In response to detecting that at least one of the simulation configuration information in the simulation environment server is inconsistent with at least one of the corresponding parsed forwarding configuration information, the verification result is determined to be a verification failure.
6. The method according to claim 1, wherein, The real environment server performs the address lookup for the target domain name based on the forwarding configuration information through the following operations: Update the original configuration information in the real environment server to the forwarding configuration information; Based on the forwarding configuration information, a corresponding address query is performed on the target domain name to obtain the query result.
7. The method according to claim 6, further comprising: The forwarding configuration information is stored in the management and monitoring module of the real environment server.
8. A configuration device, comprising: The request sending module is used to send a query request associated with a target domain name to the simulated environment server in response to the heartbeat detection results between the simulated environment server and the real environment server meeting preset conditions. The query request includes the target domain name and the forwarding configuration information of the target domain name. The data verification module is used to call the simulated environment server interface to perform data verification on the forwarding configuration information and obtain the verification result; The information sending module is used to send the forwarding configuration information to the real environment server in response to the verification result indicating successful verification, so that the real environment server can perform a corresponding address query for the target domain name based on the forwarding configuration information.
9. An electronic device, comprising: One or more processors; Memory, used to store one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
11. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.