A domain name resolution detection method, system and device
By simulating domain name resolution detection methods from different user perspectives and utilizing source address translation and load balancing technologies, the problem of high verification difficulty after domain name configuration changes is solved, achieving efficient and accurate domain name resolution detection and ensuring the accuracy of domain name configuration.
Patent Information
- Application Number
- CN202211271439.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-10-18
AI Technical Summary
In a multi-user, multi-device domain name system, it is difficult to verify the accuracy of domain name resolution after changes in domain name configuration. This is especially true when there are a large number of real users and they are widely distributed. Existing technologies cannot fully and accurately verify the domain name resolution status of all clients.
By simulating different user perspectives, using source address translation and load balancing technologies, a virtual address control list is generated, a domain name resolution request is sent to the domain name resolution cluster, and consistency checks are performed on the configured address and the resolved address to ensure the accuracy of domain name resolution.
It improves the comprehensiveness and accuracy of domain name resolution verification, reduces the verification difficulty, ensures the accuracy of domain name configuration, simplifies the detection process, and reduces human error.
Smart Images

Figure CN116132402B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, particularly to the field of artificial intelligence technology, and especially to a domain name resolution detection method, system, and apparatus. Background Technology
[0002] Currently, to enable clients to access application servers from the nearest location, thereby accelerating user access and improving client experience, views are typically configured in the Domain Name System (DNS) configuration, allowing different clients to resolve the same domain name to different IP addresses. However, after adding or modifying a domain name configuration, verifying the DNS resolution is necessary. With a large number of real users widely distributed (i.e., dozens of views), verifying the accuracy of domain name resolution for all clients is difficult, as it's impossible to contact all users for verification. Furthermore, with rapid application iteration, domain name configurations are updated more frequently, increasing the verification difficulty with each change. This method significantly improves verification efficiency and configuration accuracy for multi-user, multi-device applications. Summary of the Invention
[0003] One objective of this invention is to provide a domain name resolution detection method that, by simulating different user perspectives to detect the accuracy of domain name resolution, can improve the comprehensiveness and accuracy of domain name resolution verification, reduce verification difficulty, and thus ensure configuration accuracy. Another objective of this invention is to provide a domain name resolution detection device. A further objective of this invention is to provide a domain name resolution detection system. A further objective of this invention is to provide a computer-readable medium. A still further objective of this invention is to provide a computer device.
[0004] To achieve the above objectives, this invention discloses a domain name resolution detection method, comprising:
[0005] By testing the client, domain name resolution requests are sent sequentially to the current domain name resolution device in the domain name resolution cluster according to multiple pre-generated virtual addresses, so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request;
[0006] A consistency check is performed between the stored configuration address and the resolved address to obtain the resolution check result.
[0007] Preferably, before sending domain name resolution requests sequentially to the current domain name resolution device in the domain name resolution cluster via the test client according to multiple pre-generated virtual addresses, the method further includes:
[0008] Source address translation technology is used to convert the server address of the test client into the source address of different views;
[0009] The source addresses of different views are respectively converted into different virtual addresses through a load balancing strategy.
[0010] Preferably, after the source addresses of different views are respectively converted into different virtual addresses through a load balancing strategy, the method further comprises:
[0011] generating a virtual address control list according to the virtual addresses and the corresponding views;
[0012] adding the virtual address control list to a current domain name resolution device, so that the current domain name resolution device obtains a resolution address according to the current virtual address and a domain name resolution request through the virtual address control list.
[0013] Preferably, the current domain name resolution device comprises multiple views for resolving domain names, and each view is pre-configured with a corresponding domain name resolution record, wherein the domain name resolution record comprises a configuration address.
[0014] Preferably, consistency detection is performed on the stored configuration address and the resolution address to obtain a resolution detection result, comprising:
[0015] if the configuration address is consistent with the resolution address, it is determined that the resolution detection of a target view corresponding to the current virtual address in the current domain name resolution device is passed;
[0016] if the configuration address is inconsistent with the resolution address, it is determined that the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device fails.
[0017] Preferably, the method further comprises:
[0018] if the current domain name resolution device completes the domain name resolution detection, the next domain name resolution device in the domain name resolution cluster is determined as the current domain name resolution device, and the step of sequentially sending the domain name resolution request to the current domain name resolution device in the domain name resolution cluster according to the pre-generated multiple virtual addresses is continued to be executed.
[0019] The application also discloses a domain name resolution detection system, comprising a test client, a domain name resolution cluster and a domain name resolution detection device, wherein the domain name resolution cluster comprises multiple domain name resolution devices.
[0020] The test client is used for sequentially sending a domain name resolution request to a current domain name resolution device in the domain name resolution cluster according to pre-generated multiple virtual addresses.
[0021] The domain name resolution device is used for obtaining a resolution address according to the current virtual address and the domain name resolution request.
[0022] The domain name resolution detection device is used for performing consistency detection on the stored configuration address and the resolution address to obtain a resolution detection result.
[0023] The application further discloses a domain name resolution detection device, which comprises:
[0024] a control unit, configured to send, by a test client, a domain name resolution request to a current domain name resolution device in a domain name resolution cluster in sequence according to a plurality of virtual addresses generated in advance, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request;
[0025] a detection unit, configured to perform consistency detection on the stored configuration address and the resolution address, and obtain a resolution detection result.
[0026] The application further discloses a computer readable medium, which stores a computer program, and the program is executed by a processor to implement the method.
[0027] The application further discloses a computer device, which comprises a memory and a processor, wherein the memory is configured to store information comprising program instructions, and the processor is configured to control execution of the program instructions, and the processor implements the method when executing the program.
[0028] The application further discloses a computer program product, which comprises computer program / instructions, and the computer program / instructions are executed by a processor to implement the method.
[0029] The application sends, by a test client, a domain name resolution request to a current domain name resolution device in a domain name resolution cluster in sequence according to a plurality of virtual addresses generated in advance, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request; consistency detection is performed on the stored configuration address and the resolution address, and a resolution detection result is obtained, so that the accuracy of domain name resolution is detected from different user perspectives, the comprehensiveness and accuracy of domain name resolution verification are improved, the verification difficulty is reduced, and the configuration accuracy is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0031] Figure 1 A structural schematic diagram of a domain name resolution detection system provided by the embodiments of the present application;
[0032] Figure 2 A flowchart of a domain name resolution detection method provided by the embodiments of the present application;
[0033] Figure 3 A flowchart of another domain name resolution detection method provided for an embodiment of the present application is shown in FIG. 6.
[0034] Figure 4 A structural schematic diagram of a domain name resolution detection device provided for an embodiment of the present application is shown in FIG. 7.
[0035] Figure 5 A structural schematic diagram of a computer device provided for an embodiment of the present application is shown in FIG. 8. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0037] It should be noted that the domain name resolution detection method, system and device disclosed in the present application can be used in the field of artificial intelligence technology, and can also be used in any field other than the field of artificial intelligence technology. The application field of the domain name resolution detection method, system and device disclosed in the present application is not limited.
[0038] In order to facilitate understanding of the technical solutions provided in the present application, the related contents of the technical solutions of the present application will be described first. The present application detects the accuracy of domain name resolution by simulating different user perspectives. After the domain name configuration is changed, different user perspectives are simulated by source address conversion, and the accuracy of each view configuration of each domain name resolution device (DNS device) in different domain name resolution clusters (DNS cluster) is completed. By the present application, the access domain name resolution of all real users can be simulated, the verification after technical change is performed, and it is ensured that all domain name resolution requests initiated by subsequent users can obtain correct resolution results on any DNS device, ensuring the consistency of resolution records. In this way, the multi-user resolution correctness and device configuration consistency are verified, thereby ensuring the accuracy of domain name configuration change. Moreover, the present application simplifies the detection process and improves the detection efficiency.
[0039] Figure 1 A structural schematic diagram of a domain name resolution detection system provided for an embodiment of the present application is shown in FIG. 5, as shown in FIG. 5, the system comprises a test client 100, a domain name resolution cluster 200 and a domain name resolution detection device 300. The domain name resolution cluster 200 comprises a plurality of domain name resolution devices 210. The test client 100 is connected with the domain name resolution cluster 200 and the domain name resolution detection device 300 respectively, and the domain name resolution detection device 300 is connected with the domain name resolution cluster 200. Figure 1
[0040] The test client 100 is configured to sequentially send a domain name resolution request to a current domain name resolution device in the domain name resolution cluster according to a plurality of pre-generated virtual addresses.
[0041] The domain name resolution device 210 is configured to obtain a resolution address according to the current virtual address and the domain name resolution request.
[0042] The domain name resolution detection apparatus 300 is configured to perform consistency detection on the stored configuration address and the resolution address to obtain a resolution detection result.
[0043] In the embodiments of the present application, Figure 1 The domain name resolution detection system shown is also configured to execute Figure 2 or Figure 3 The domain name resolution detection method shown, which will not be described here.
[0044] The following will take the domain name resolution detection apparatus as an example to illustrate the implementation process of the domain name resolution detection method provided by the embodiments of the present application. It can be understood that the execution subject of the domain name resolution detection method provided by the embodiments of the present application includes but is not limited to the domain name resolution detection apparatus.
[0045] Figure 2 The flow chart of the domain name resolution detection method provided by the embodiments of the present application is shown in Figure 2 The method comprises the following steps:
[0046] Step 101, by the test client, sequentially sending a domain name resolution request to a current domain name resolution device in the domain name resolution cluster according to a plurality of pre-generated virtual addresses, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request.
[0047] Step 102, performing consistency detection on the stored configuration address and the resolution address to obtain a resolution detection result.
[0048] It is worth mentioning that the acquisition, storage, use, processing, etc. of data in the technical solutions in the present application comply with the relevant provisions of national laws and regulations. The user information in the embodiments of the present application is obtained through legal and compliant channels, and the acquisition, storage, use, processing, etc. of the user information is authorized and agreed by the client.
[0049] In the technical scheme provided by the embodiment of the present application, the test client sends a domain name resolution request to the current domain name resolution device in the domain name resolution cluster in turn according to the plurality of virtual addresses generated in advance, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request; consistency detection is performed on the stored configuration address and the resolution address to obtain a resolution detection result, and the domain name resolution accuracy is detected from different user perspectives, so that the comprehensiveness and accuracy of the domain name resolution verification are improved, the verification difficulty is reduced, and the configuration accuracy is ensured.
[0050] Figure 3 A flowchart of another domain name resolution detection method provided by the embodiment of the present application is shown in FIG. 2, and the method comprises the following steps. Figure 3
[0051] In step 201, the server address of the test client is converted into a source address of different views by using a source address conversion technology.
[0052] In the embodiment of the present application, each step is executed by a domain name resolution detection device.
[0053] In the embodiment of the present application, the source address conversion technology refers to that when an internal network address accesses externally, the internal network IP address initiating the access is converted into a specified IP address, so that a host using a reserved IP address in the internal network can access an external network, that is, multiple hosts in the internal network can access the external network through one valid public network IP address. In the embodiment of the present application, the source address conversion is to convert the server address of the test client into a source address accessible on a specific view, and the view can be accessed through the source address.
[0054] In step 202, the source addresses of different views are respectively converted into different virtual addresses by using a load balancing strategy.
[0055] In the embodiment of the present application, the implementation principle of the DNS load balancing technology is to configure multiple IP addresses for the same host name in the DNS server, and when responding to a DNS query, the DNS server returns different resolution results in sequence according to the IP addresses of the host records in the DNS file for each query, so as to guide the access of the client to different machines, so that different clients access different servers, thereby achieving the purpose of load balancing. Specifically, the view source address is converted into a virtual address vs by using the load balancing strategy, and when the view source address is accessed, the view source address is converted into the virtual address vs, and the destination address is converted into a DNS node in a survival state.
[0056] Further, a virtual address control list is generated according to the virtual address and the corresponding view, and the virtual address control list is added to a current domain name resolution device (DNS) so that the current DNS obtains a resolution address according to the current virtual address and a domain name resolution request through the virtual address control list. The virtual address control list includes a plurality of virtual addresses and a plurality of virtual addresses corresponding to the view. Each view corresponding to the virtual address control list is configured on the current DNS, so that each virtual address can only enter the corresponding view for domain name resolution when accessed in subsequent detection.
[0057] In step 203, a test client sends a domain name resolution request to a current domain name resolution device (DNS) in a domain name resolution cluster according to a plurality of virtual addresses in sequence, so that the current DNS obtains a resolution address according to the current virtual address and the domain name resolution request.
[0058] In the embodiment of the application, the domain name resolution cluster includes a plurality of domain name resolution devices (DNS), and only one DNS is hung down each time for full-quantity configuration detection by using the current DNS.
[0059] In the embodiment of the application, a plurality of virtual addresses (vs) are set as DNS servers (server) during testing, and the test client sends a domain name resolution request to the DNS under the condition that the virtual address is used as the DNS server, the domain name resolution request including a domain name to be resolved; and the DNS obtains a resolution address according to the current virtual address and the domain name to be resolved.
[0060] Specifically, the current DNS matches a corresponding target view (view) according to the current virtual address through a set virtual address control list, and resolves the domain name to be resolved through the target view to obtain a resolution address.
[0061] It should be noted that the process of resolving the domain name is a relatively mature technology, and will not be described here.
[0062] In step 204, consistency detection is performed on the stored configuration address and the resolution address to obtain a resolution detection result.
[0063] In the embodiment of the application, the current DNS includes a plurality of views (view) for resolving domain names, and each view (view) is pre-configured with a corresponding domain name resolution record, and the domain name resolution record includes a configuration address.
[0064] In the embodiment of the application, step 204 specifically includes:
[0065] In step 2041, it is judged whether the configuration address and the resolution address are consistent, if yes, step 2042 is executed, and if no, step 2043 is executed.
[0066] In the embodiment of the present application, if the configuration address is consistent with the resolution address, it indicates that the configuration address configured under the view is consistent with the resolution address resolved by the current DNS, the configuration under the view is accurate, and step 2042 is continuously executed.
[0067] Step 2042, the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device is determined to be passed, and the step ends.
[0068] In the embodiment of the present application, if the configuration under the view is accurate, the domain name resolution in the current user perspective is accurate, and the resolution detection is passed.
[0069] Step 2043, if the configuration address is inconsistent with the resolution address, the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device is determined to fail.
[0070] In the embodiment of the present application, if the configuration under the view is incorrect, the domain name resolution in the current user perspective is incorrect, and the resolution detection fails, and the step ends.
[0071] Step 205, if the current domain name resolution device completes the domain name resolution detection, it is judged whether there is a next domain name resolution device of the current domain name resolution device in the domain name resolution cluster, if yes, step 206 is continuously executed, and if no, the flow ends.
[0072] In the embodiment of the present application, the domain name resolution cluster includes multiple domain name resolution devices (DNS), only one DNS is hung down each time, and the domain name resolution detection needs to be performed on each DNS in the domain name resolution cluster respectively. Assuming that there are M DNS devices in the domain name resolution cluster, the DNS nodes under each vs are sequentially set as DNS 1 to DNS M, only one DNS j is hung down each time, then the single DNS device full configuration detection flow is entered, the full view configuration of the DNS j is verified, and finally the full M DNS node configuration is completely verified.
[0073] Specifically, if all virtual addresses complete the domain name resolution, it indicates that the current DNS completes the domain name resolution detection. It is judged whether there is a next domain name resolution device of the current DNS in the domain name resolution cluster, if yes, it indicates that the current DNS is not the last DNS, and step 206 is continuously executed, and if no, it indicates that the current DNS is the last DNS, and the full user domain name resolution detection of the domain name resolution cluster is completed, and the flow ends.
[0074] Step 206, the next domain name resolution device in the domain name resolution cluster is determined as the current domain name resolution device, and step 203 is continuously executed.
[0075] Specifically, if the current domain name resolution device completes the domain name resolution test, the next domain name resolution device in the domain name resolution cluster will be identified as the current domain name resolution device, and the full configuration test process for a single DNS device will be entered, and step 203 will continue to be executed.
[0076] In this embodiment of the invention, when the test client accesses different virtual addresses, the DNS resolution will access the corresponding view, so that the test client can reach the corresponding view for resolution by accessing different virtual addresses, thereby simulating the resolution of different real users accessing the domain name, and thus verifying whether the configuration is consistent with the user's needs.
[0077] In this embodiment of the invention, by configuring virtual addresses for access control of different views, it is possible to simulate real users in different regions to initiate domain name resolution requests through a single test client, compare and verify resolution records, and verify the accuracy of domain name resolution from the perspective of all users; it can automatically verify the accuracy of domain name configuration of all DNS nodes in the domain name resolution cluster without the need for manual verification on each machine, reducing human error and improving verification efficiency and accuracy.
[0078] In the technical solution of the domain name resolution detection method provided in this embodiment of the invention, a test client sends domain name resolution requests to the current domain name resolution device in the domain name resolution cluster in sequence according to multiple pre-generated virtual addresses, so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request; the consistency of the stored configuration address and the resolution address is checked to obtain the resolution detection result. By simulating the domain name resolution accuracy detection from different user perspectives, the comprehensiveness and accuracy of domain name resolution verification can be improved, the verification difficulty can be reduced, and thus the configuration accuracy can be guaranteed.
[0079] Figure 4 This is a schematic diagram of a domain name resolution detection device provided in an embodiment of the present invention. This device is used to execute the aforementioned domain name resolution detection method, such as... Figure 4 As shown, the device includes a control unit 11 and a detection unit 12.
[0080] The control unit 11 is used to send domain name resolution requests to the current domain name resolution device in the domain name resolution cluster in sequence according to multiple pre-generated virtual addresses through the test client, so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request.
[0081] The detection unit 12 is used to perform consistency detection on the stored configuration address and the resolution address to obtain the resolution detection result.
[0082] In this embodiment of the invention, the device further includes an address translation unit 13 and a load balancing unit 14.
[0083] The address conversion unit 13 is configured to convert the server address of the test client into a source address of a different view through a source address conversion technology.
[0084] The load balancing unit 14 is configured to convert the source address of the different view into a different virtual address through a load balancing strategy.
[0085] In the embodiment of the present application, the device further comprises a generating unit 15 and an adding unit 16.
[0086] The generating unit 15 is configured to generate a virtual address control list according to the virtual address and the corresponding view.
[0087] The adding unit 16 is configured to add the virtual address control list to the current domain name resolution device, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request through the virtual address control list.
[0088] In the embodiment of the present application, the detecting unit 12 is specifically configured to determine that the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device is passed if the configuration address is consistent with the resolution address; and determine that the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device fails if the configuration address is inconsistent with the resolution address.
[0089] In the embodiment of the present application, the device further comprises a determining unit 17.
[0090] The determining unit 17 is configured to determine the next domain name resolution device in the domain name resolution cluster as the current domain name resolution device if the domain name resolution detection of the current domain name resolution device is completed, and trigger the control unit 11 to continue to execute the step of sequentially sending the domain name resolution request to the current domain name resolution device in the domain name resolution cluster according to the pre-generated multiple virtual addresses through the test client.
[0091] In the scheme of the embodiment of the present application, the domain name resolution request is sequentially sent to the current domain name resolution device in the domain name resolution cluster according to the pre-generated multiple virtual addresses through the test client, so that the current domain name resolution device obtains a resolution address according to the current virtual address and the domain name resolution request; the consistency detection is performed on the stored configuration address and the resolution address to obtain a resolution detection result, and the domain name resolution accuracy detection is performed through the simulation of different user perspectives, which can improve the comprehensiveness and accuracy of the domain name resolution verification, reduce the verification difficulty, and thus ensure the configuration accuracy.
[0092] The systems, apparatuses, modules or units illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer device, and specifically, the computer device can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0093] The embodiment of the present application provides a computer device, including a memory and a processor, the memory is used for storing information including program instructions, the processor is used for controlling execution of the program instructions, the program instructions are loaded and executed by the processor to implement each step of the above domain name resolution detection method, and specific description can be referred to the above embodiment of the domain name resolution detection method.
[0094] Reference is made below to Figure 5 which shows a structural schematic diagram of a computer device 600 suitable for being used to implement the embodiments of the present application.
[0095] As shown in Figure 5 , the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to programs stored in a read-only memory (ROM) 602 or loaded from a storage portion 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer device 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0096] The following components are connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker, and the like; a storage portion 608 including a hard disk, and the like; and a communication portion 609 including a network interface card such as a LAN card, a modem, and the like. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable recording medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 610 as needed, so that a computer program read therefrom is installed in the storage portion 608 as needed.
[0097] In particular, the processes described above with reference to the flow charts can be implemented as computer software programs in accordance with embodiments of the application. For example, embodiments of the application include a computer program product which includes a computer program tangibly embodied on a machine readable medium, the computer program including program code for executing the methods illustrated by the flow charts. In such embodiments, the computer program can be downloaded and installed from a network via the communications portion 609 and / or installed from the removable media 611.
[0098] Computer readable media includes permanent and non-permanent, removable and non-removable media which can be implemented by any method or technology for storing information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer readable media does not include transitory media such as modulated data signals and carriers.
[0099] For the convenience of description, the above device is described as various units respectively described in function. Of course, in the implementation of the present application, the functions of each unit can be implemented in the same or more software and / or hardware.
[0100] The present application is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one or more flows and / or blocks Figure 1 The device that implements the functions specified in one or more flows and / or blocks
[0101] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flow Figure 1 one or more flow or block diagrams. Figure 1 one or more flow or block diagrams.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 one or more flow or block diagrams. Figure 1 one or more flow or block diagrams.
[0103] It is also noted that the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0104] The data acquisition, storage, use, processing and the like in the technical solutions of the present application comply with the relevant provisions of the national laws and regulations.
[0105] Those skilled in the art will appreciate that embodiments of the present application can be a method, a system or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer-readable program code.
[0106] The present application can be described in the general context of computer- executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.
[0107] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the system embodiments, the description is relatively simple because the system embodiments are basically similar to the method embodiments, and the relevant parts can be referred to the part of the method embodiments.
[0108] The above only describes the embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various modifications and changes to the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims
1. A domain name resolution detection method, characterized in that, The method includes: By testing the client, domain name resolution requests are sent sequentially to the current domain name resolution device in the domain name resolution cluster according to multiple pre-generated virtual addresses, so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request; A consistency check is performed between the stored configuration address and the resolved address to obtain the resolution check result; The domain name resolution cluster includes multiple domain name resolution devices. Each detection only involves one domain name resolution device, and a full configuration detection is performed using the currently connected domain name resolution device. The current domain name resolution device includes multiple views for resolving domain names. Each view has a corresponding domain name resolution record pre-configured, and the domain name resolution record includes a configuration address.
2. The domain name resolution detection method according to claim 1, characterized in that, Before the step of sending domain name resolution requests sequentially to the current domain name resolution device in the domain name resolution cluster via the test client according to multiple pre-generated virtual addresses, the method further includes: Source address translation technology is used to convert the server address of the test client into the source address of different views; By employing a load balancing strategy, the source addresses of the different views are respectively converted into different virtual addresses.
3. The domain name resolution detection method according to claim 2, characterized in that, After the load balancing strategy is used to convert the source addresses of the different views to different virtual addresses, the method further includes: Based on the virtual address and the corresponding view, generate a virtual address control list; The virtual address control list is added to the current domain name resolution device so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request through the virtual address control list.
4. The domain name resolution detection method according to claim 1, characterized in that, The process of performing a consistency check between the stored configuration address and the resolved address to obtain the resolution check result includes: If the configured address is consistent with the resolved address, then the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device is determined to be successful; If the configured address and the resolved address are inconsistent, it is determined that the resolution detection of the target view corresponding to the current virtual address in the current domain name resolution device has failed.
5. The domain name resolution detection method according to claim 1, characterized in that, The method further includes: If the current domain name resolution device completes the domain name resolution test, the next domain name resolution device in the domain name resolution cluster is determined as the current domain name resolution device, and the step of sending domain name resolution requests to the current domain name resolution device in the domain name resolution cluster in sequence according to the multiple virtual addresses generated in advance is continued.
6. A domain name resolution detection system, characterized in that, The system includes: a test client, a domain name resolution cluster, and a domain name resolution detection device. The domain name resolution cluster includes multiple domain name resolution devices. Each test only connects one domain name resolution device and performs a full configuration test using the currently connected domain name resolution device. The test client is used to send domain name resolution requests to the current domain name resolution device in the domain name resolution cluster in sequence according to multiple pre-generated virtual addresses; The domain name resolution device is used to obtain the resolution address based on the current virtual address and the domain name resolution request; The domain name resolution detection device is used to perform consistency detection between the stored configuration address and the resolution address to obtain the resolution detection result; The domain name resolution cluster includes multiple domain name resolution devices. Each detection only involves one domain name resolution device, and a full configuration detection is performed using the currently connected domain name resolution device. The current domain name resolution device includes multiple views for resolving domain names. Each view has a corresponding domain name resolution record pre-configured, and the domain name resolution record includes a configuration address.
7. A domain name resolution detection device, characterized in that, The device includes: The control unit is used to send domain name resolution requests to the current domain name resolution device in the domain name resolution cluster in sequence according to multiple pre-generated virtual addresses through the test client, so that the current domain name resolution device can obtain the resolution address based on the current virtual address and the domain name resolution request; The detection unit is used to perform consistency detection between the stored configuration address and the parsed address, and obtain the parsing detection result; The domain name resolution cluster includes multiple domain name resolution devices. Each detection only involves one domain name resolution device, and a full configuration detection is performed using the currently connected domain name resolution device. The current domain name resolution device includes multiple views for resolving domain names. Each view has a corresponding domain name resolution record pre-configured, and the domain name resolution record includes a configuration address.
8. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the domain name resolution detection method as described in any one of claims 1 to 5.
9. A computer device comprising a memory and a processor, the memory for storing information including program instructions, and the processor for controlling the execution of the program instructions, characterized in that, When the program instructions are loaded and executed by the processor, they implement the domain name resolution detection method according to any one of claims 1 to 5.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the domain name resolution detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for generating configuration file
CN103701817A
Internet information self-service query method and device
CN113094570A