A Domain Name Query Method, Device, System and Storage Medium
The method ensures operational link addresses are returned by checking their status and providing automatic recovery, addressing access failures and improving user experience and recovery efficiency.
Patent Information
- Application Number
- CN202211673258.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-12-26
Smart Images

Figure CN116095041B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and particularly to a domain name query method, device, system, and storage medium. Background Art
[0002] With the continuous development of Internet technology, enterprises have begun to release various business applications to external users through the Internet, and the Internet link, as the data carrier, is particularly important. When an enterprise has only one link connected to the Internet, a single-point failure often causes the entire network to collapse and important applications cannot be delivered. To ensure uninterrupted network transmission, the method of using multiple links has been widely applied. The multi-link method provides a more reliable and efficient network transmission. However, in this architecture, once a certain link fails, the network can still continue to operate to ensure the uninterrupted operation of the service.
[0003] Normally, the link inbound load balancer provides the mapping relationship between the domain name and the service IP addresses on different links, and can return the service IP addresses on different links to the client according to different requirements. A domain name can be mapped to multiple IP addresses, where each IP address can correspond to a physical link, or multiple IPs can correspond to the same physical link. When an external network user accesses a service through the domain name method, after a series of basic DNS processes, finally, the domain name is resolved by the link inbound load balancer. Through the load balancing algorithm, the optimal line is selected from multiple links, and then the domain name is resolved into the IP address of the corresponding line and returned to the user. The external network user accesses the corresponding service through the obtained IP.
[0004] The above-mentioned link inbound domain name resolution function only responsible for returning the service addresses on the local link to the domain name request source according to different scheduling algorithms, and does not care whether the services provided by the returned service addresses are normal. If the service of the service address returned to the client is abnormal, the problem that the service cannot be accessed will only be found when the client accesses the real service at the back end through the obtained IP address. This will lead to serious waste of network bandwidth and the problem that users cannot access normal services. In addition, even if the link inbound can detect that the service is abnormal, it will not further process it. As a result, in the case of no manual intervention, the abnormal service will be in an inaccessible state for a long time and cannot provide services normally. Summary of the Invention
[0005] The present invention provides a domain name query method, device, system, and storage medium that can provide a secure and available link address for a client based on a domain name resolution request sent by the client, so as to enable the client to successfully access the domain name of the link address.
[0006] To solve the above technical problems, an embodiment of the present invention provides a domain name query method, including:
[0007] Obtaining a DNS domain name resolution request initiated by a client for a specified domain name;
[0008] Based on the load balancing algorithm configured in the link inbound, selecting a candidate link address from the virtual service list as the mapping address of the domain name that the client wants to access;
[0009] Based on the candidate link address, determining whether the link where it is located and the backend server are operating normally. If so, determining the candidate link address as the target link address and returning it to the client.
[0010] As an optional embodiment, there are multiple candidate link addresses, and the operators corresponding to the multiple candidate link addresses are different. Confirm the priority based on the matching degree configured between different operators and the client, and arrange the multiple candidate link addresses based on the priority.
[0011] As an optional embodiment, the step of "Based on the candidate link address, determining whether the link where it is located and the backend server are operating normally. If so, determining the candidate link address as the target link address and returning it to the client" includes:
[0012] Sequentially determining whether the link where each candidate link address is located and the backend server are operating normally according to the arranged priority order. If so, determining the current candidate link address as the target link address and returning it to the client.
[0013] As an optional embodiment, it further includes:
[0014] Based on the candidate link address, determining whether the link where it is located and the backend server are operating normally. If not, allocating other link addresses to the client according to the priority, and continuing to determine whether the link address where it is located and the backend server are operating normally.
[0015] As an optional embodiment, it further includes:
[0016] When the link where the candidate link address is located operates abnormally, determining whether the link enables an abnormal service repair function. If so, repairing the link and its backend server based on the abnormal service repair function.
[0017] As an optional embodiment, it further includes:
[0018] After determining that the link where the candidate link address is located has been operating abnormally for a target time period, if the link enables an abnormal service repair function, restarting the link and its backend server or restarting the service process based on the abnormal service repair function, thereby achieving repair.
[0019] As an optional embodiment, it further includes:
[0020] Adding the determined target link address to an address list;
[0021] The step of determining the candidate link address as the target link address and returning it to the client includes:
[0022] Returning the target link address in the address list to the client.
[0023] Another embodiment of the present invention also provides a domain name query device, including:
[0024] An obtaining module, configured to obtain a DNS domain name resolution request initiated by a client for a specified domain name;
[0025] A selection module, configured to select a candidate link address from a virtual service list as a mapping address of the domain name to be accessed by the client based on a load balancing algorithm configured in the link inbound;
[0026] A judgment module, configured to determine whether the link where the candidate link address is located and the backend server are operating normally based on the candidate link address. If so, the candidate link address is determined as the target link address and returned to the client.
[0027] Another embodiment of the present invention also provides a reliable domain name query system based on link inbound, including:
[0028] One or more processors;
[0029] A memory, configured to store one or more programs;
[0030] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the domain name query method described in any of the above embodiments.
[0031] Another embodiment of the present invention also provides a storage medium, characterized in that a computer program is stored thereon, and when the program is executed by a processor, the domain name query method described in any of the above embodiments is implemented.
[0032] Based on the disclosure of the above embodiments, the beneficial effects of the embodiments of the present invention include obtaining a DNS domain name resolution request initiated by a client for a specified domain name, then selecting a candidate link address from a virtual service list as the mapped address of the domain name to be accessed by the client based on the load balancing algorithm configured in the link inbound, and then determining whether the link where the candidate link address is located and the backend server are operating normally. If so, the candidate link address is determined as the target link address and returned to the client. In this way, it can be ensured that the link address obtained by the user can access the actual service normally, and there will be no phenomenon of access failure due to link anomalies, ensuring that the user can access the service successfully and smoothly, and improving the user's access experience. In addition, through the method in this embodiment, link anomalies can be detected in a timely manner, rather than being discovered by the user during access, thus laying a foundation for the timely repair of the link and the server and improving the repair efficiency. At the same time, the method in this embodiment can also repair the link or the server in a timely manner when anomalies are detected, avoiding affecting the subsequent business access of users.
[0033] Other features and advantages of the present application will be described in the subsequent description, and some of them will be obvious from the description, or understood by implementing the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures specifically pointed out in the written description, claims, and drawings.
[0034] The technical solutions of the present application will be further described in detail below through the drawings and embodiments. Description of the Drawings
[0035] The drawings are used to provide a further understanding of the present application, and constitute a part of the description. They are used to explain the present application together with the embodiments of the present application, and do not constitute a limitation to the present application. In the drawings:
[0036] Figure 1 It is a flowchart of the domain name query method in the embodiments of the present invention.
[0037] Figure 2 It is an application flowchart of the domain name query method in the embodiments of the present invention.
[0038] Figure 3 It is a structural topology diagram of the domain name query method in the embodiments of the present invention.
[0039] Figure 4 It is a structural block diagram of the domain name query device in the embodiments of the present invention. Detailed Embodiments
[0040] Next, the specific embodiments of the present invention will be described in detail with reference to the drawings, but it is not a limitation of the present invention.
[0041] It should be understood that various modifications can be made to the embodiments disclosed herein. Therefore, the following description should not be construed as limiting, but merely as exemplary of the embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the present disclosure.
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and, together with the general description of the disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.
[0043] These and other features of the present invention will become apparent from the following description of the preferred forms of the embodiments, given as non-limiting examples with reference to the accompanying drawings.
[0044] It should also be understood that although the present invention has been described with reference to some specific examples, those skilled in the art can surely implement many other equivalent forms of the present invention, which have the features as described in the claims and thus are all within the scope of protection defined thereby.
[0045] The above and other aspects, features, and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0046] Specific embodiments of the present disclosure are hereinafter described with reference to the accompanying drawings; however, it should be understood that the disclosed embodiments are merely examples of the present disclosure, which can be implemented in various ways. Well-known and / or repetitive functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and a representative basis for teaching those skilled in the art to use the present disclosure in substantially any suitable detailed structure in a variety of ways.
[0047] This specification may use the phrases "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments", each of which may refer to one or more of the same or different embodiments according to the present disclosure.
[0048] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0049] As Figure 1 shown, an embodiment of the present invention provides a domain name query method, including:
[0050] Obtaining a DNS domain name resolution request initiated by a client for a specified domain name;
[0051] Selecting a candidate link address from a virtual service list as the mapped address of the domain name that the client desires to access based on the load balancing algorithm configured in the link inbound;
[0052] Based on the candidate link address, determine whether the link where it is located and the backend server are operating normally. If so, determine the candidate link address as the target link address and return it to the client.
[0053] Based on the disclosure of the above embodiments, the beneficial effects of this embodiment include obtaining the DNS domain name resolution request initiated by the client for a specified domain name, then selecting a candidate link address from the virtual service list as the mapping address of the domain name that the client wants to access based on the load balancing algorithm configured in the link inbound, and then determining whether the link where the candidate link address is located and the backend server are operating normally. If so, determine the candidate link address as the target link address and return it to the client. In this way, it can be ensured that the link address obtained by the user can access the actual service normally, and there will be no phenomenon of access failure caused by link anomalies, ensuring that the user can access the service successfully and smoothly, and improving the user's access experience. In addition, through the method in this embodiment, link anomalies can be detected in a timely manner, rather than being discovered by the user during access, thus laying a foundation for the timely repair of the link and the server and improving the repair efficiency.
[0054] That is, the method provided in this embodiment can, when different operator customers (clients) access the same domain name, intelligently select a highly reliable local link address based on the pre-configured scheduling algorithm and combined with the actual service health status of the backend server during the domain name resolution stage, and return it to the client, avoiding returning an address with an unavailable backend service to the client only according to the scheduling algorithm, resulting in the problem of user access failure.
[0055] Furthermore, there are multiple candidate link addresses in this embodiment, and the operators corresponding to the multiple candidate link addresses are different. For example, the operator corresponding to the first candidate link address is Mobile, and the operator corresponding to the second candidate link address is China Unicom, etc. Confirm the priority based on the matching degree between different operators and the client configuration, and arrange the multiple candidate link addresses based on the priority.
[0056] For example, if the client is a Mobile user, the priority of the first candidate link address will be higher than that of the second candidate link address with the operator of China Unicom. When there are more candidate link addresses, assuming there are three, and the operator corresponding to the third candidate link address is China Telecom, then the priority can be sorted according to the status of the servers corresponding to the current second candidate link address and the third candidate link address, or the priority can be determined according to the current network signal status of the client and the network signal status of the servers corresponding to the second candidate link address and the third candidate link address. It is also possible to sort the second candidate link address and the third candidate link address based on a preset priority, or even sort them in alphabetical order of the first letter of their names. The specific sorting method is not unique.
[0057] Specifically, based on the candidate link address, determine whether the link where it is located and the backend server are operating normally. If so, determine the candidate link address as the target link address and return it to the client, including:
[0058] Determine in sequence according to the priority order whether the link where each candidate link address is located and the backend server are operating normally. If so, determine the current candidate link address as the target link address and return it to the client.
[0059] That is, when there are multiple candidate link addresses, determine in sequence according to their arrangement order whether the link where each candidate link address is located and the backend server are operating normally. If the link where the current candidate link address is located and the backend server are operating normally, determine the current candidate link address as the target link address.
[0060] Furthermore, the method in this embodiment further includes:
[0061] Based on the candidate link address, determine whether the link where it is located and the backend server are operating normally. If not, allocate other link addresses to the client according to the priority, and continue to determine whether the link where the link address is located and the backend server are operating normally.
[0062] That is, the above-mentioned detection method for normal or abnormal operation can be used to detect in sequence the link where each candidate link address is located and the backend server until a link and backend server that are operating normally are detected, and confirm them as the target link address.
[0063] Preferably, the method in this embodiment further includes:
[0064] When the link where the candidate link address is located is operating abnormally, determine whether the link enables the abnormal service repair function. If so, repair the link and its backend server based on the abnormal service repair function.
[0065] In the existing solutions, even if the link inbound can detect that the service is abnormal, it will not be further processed, which results in the abnormal service being in an inaccessible state for a long time without manual intervention, and thus cannot provide services normally. To solve this problem, a solution is proposed in this embodiment. When it is determined that the link where the candidate link address is located is operating abnormally, first determine whether the link enables the abnormal service repair function. If so, repair the link and its backend server in a timely manner based on the abnormal service repair function. That is, the link inbound provides an automatic service repair function based on virtualization technology to ensure that automatic repair of abnormal services can be provided without the presence of operation and maintenance personnel or when the operation and maintenance personnel cannot arrive in time, avoiding the problem that the service cannot be restored for a long time without manual intervention and affecting subsequent access by the client.
[0066] Preferably, since the link and the server may only have a temporary fault during the link inbound detection, but the duration is not long and it can be self-repaired without continuously affecting the client's access. Therefore, to handle this situation, the method in this embodiment further includes:
[0067] After determining the target time period during which the link where the candidate link address is located continuously operates abnormally, if the link enables the abnormal service repair function, then based on the abnormal service repair function, restart the link and its backend server or restart the service process, thereby achieving repair.
[0068] For example, when the link inbound needs to determine whether the link and the backend server have been operating abnormally for a target time period, the specific length of this time period is uncertain and can be set according to the actual situation. When it is determined that the abnormal duration meets the requirements, it will be repaired immediately, thus avoiding waste of repair resources.
[0069] Furthermore, the method in this embodiment further includes:
[0070] Add the determined target link address to the address list;
[0071] Determining the candidate link address as the target link address and returning it to the client includes:
[0072] Return the target link address in the address list to the client.
[0073] Specifically, when in actual application, the following embodiments can be referred to:
[0074] Such as Figure 2As shown in the figure, a company leases three physical links from three operators, namely China Unicom, China Mobile, and China Telecom, to provide web services externally. There are three web servers A, B, and C on the virtualization platform in the internal network to provide the same domain name service, and its domain name is "www.test.com". The service port published externally for this domain name is 80. Among them, when a China Unicom user sends a domain name resolution request, the service address of China Unicom, 65.50.0.2, is returned, and the web service is provided by the backend server 20.20.20.2. When a China Mobile user sends a domain name resolution request, the service address of China Mobile, 45.121.176.2, is returned, and the web service is provided by the backend server 30.30.30.2. When a China Telecom user sends a domain name resolution request, the service address of China Telecom, 211.100.0.2, is returned, and the web service is provided by the backend server 10.10.10.2. If the backend web service of the China Telecom link is abnormal, the service address on the next other operator link is selected according to the link order or a service address is randomly selected and returned to the client. If the backend web services of the China Unicom link and the China Mobile link are abnormal, the service address on the next other operator link is selected according to the link order or a service address is randomly selected and returned to the client, but it is necessary to ensure that the service address returned to the client can be accessed normally. In addition, each link needs to have a function of automatically repairing services, and an automatic repair function is provided for the servers with service exceptions at the backend of different links. The specific topology diagram is as shown in Figure 3 the figure.
[0075] The client configures the link inbound function, specifies the domain name to be accessed as www.test.com, selects the virtual service addresses of 211.100.0.2 on the local China Telecom link, 61.50.0.2 on the local China Unicom link, and 45.121.176.2 on the local China Mobile link, and selects the topology algorithm for the route selection algorithm. A health check detection function with a destination address of 10.10.10.2 and a destination port of 80 is configured on the China Telecom link, and the service exception restart function is enabled for repair in case of an exception; a health check detection function with a destination address of 20.20.20.2 and a destination port of 80 is configured on the China Unicom link, and the service exception restart function is enabled for repair in case of an exception; a health check detection function with a destination address of 30.30.30.2 and a destination port of 80 is configured on the China Mobile link, and the service exception restart function is enabled for repair in case of an exception.
[0076] Telecom users access the service at http: / / www.test.com. Domain name resolution is performed by the inbound link. The inbound link first selects the telecom link address 211.100.0.2 as the service address according to the topology algorithm, and then judges the health check result of the backend 10.10.10.2:80 service on the telecom link. If the health check on the telecom link detects that the service is normal, the telecom link address 211.100.0.2 is placed in the return address list and returned to the client. Telecom users use the queried 211.100.0.2 for service access. If the health check on the telecom link detects that the service is abnormal, then the health check result on the Unicom link is judged in turn. If the health check on the Unicom link detects that it is normal, then the inbound link places the Unicom link address (61.50.0.2) in the return address list and returns it to the client. If the health check on the Unicom link still detects that it is abnormal, then the health check result on the Mobile link is judged. If the health check on the Mobile link detects that it is normal, then the inbound link places the Mobile link address (45.121.176.2) in the return address list and returns it to the client. If the health checks on both the Unicom link and the Mobile link are also in an abnormal state, the inbound link still returns the address on the telecom link. Subsequently, the telecom link performs a remote restart on the 10.10.10.2 virtual machine at the backend for service repair. Among them, the results of the return addresses of the domain name requests of users of different operators are as follows:
[0077]
[0078]
[0079] As Figure 4 shown, another embodiment of the present invention also provides a domain name query device 100, including:
[0080] An obtaining module, configured to obtain a DNS domain name resolution request initiated by a client for a specified domain name;
[0081] A selection module, configured to select a candidate link address from the virtual service list as the mapping address of the domain name to be accessed by the client based on the load balancing algorithm configured in the inbound link;
[0082] A judgment module, configured to determine whether the link where the candidate link address is located and the backend server are running normally based on the candidate link address. If so, the candidate link address is determined as the target link address and returned to the client.
[0083] As an optional embodiment, there are multiple candidate link addresses, and the operators corresponding to the multiple candidate link addresses are different. The priorities are confirmed based on the matching degrees configured between different operators and the client, and the multiple candidate link addresses are arranged based on the priorities.
[0084] As an alternative embodiment, determining whether the link where the candidate link address is located and the backend server are operating normally, and if so, determining the candidate link address as the target link address and returning it to the client, includes:
[0085] Determine in sequence according to the priority order whether the link where each candidate link address is located and the backend server are operating normally, and if so, determine the current candidate link address as the target link address and return it to the client.
[0086] As an alternative embodiment, it further includes:
[0087] Based on the candidate link address, determine whether the link where it is located and the backend server are operating normally. If not, allocate other link addresses to the client according to the priority, and continue to determine whether the link where the link address is located and the backend server are operating normally.
[0088] As an alternative embodiment, it further includes:
[0089] When the link where the candidate link address is located is operating abnormally, determine whether the link enables an abnormal service repair function. If so, repair the link and its backend server based on the abnormal service repair function.
[0090] As an alternative embodiment, it further includes:
[0091] After determining that the link where the candidate link address is located has been operating abnormally for a target time period, if the link enables an abnormal service repair function, restart the link and its backend server or restart the service process based on the abnormal service repair function, thereby achieving repair.
[0092] As an alternative embodiment, it further includes:
[0093] Add the determined target link address to the address list;
[0094] The determining the candidate link address as the target link address and returning it to the client includes:
[0095] Return the target link address in the address list to the client.
[0096] Another embodiment of the present application further provides a domain name query system, including:
[0097] One or more processors;
[0098] A memory configured to store one or more programs;
[0099] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the above domain name query method.
[0100] Further, an embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the above domain name query method is implemented. It should be understood that each solution in this embodiment has the corresponding technical effects in the above method embodiment, and will not be elaborated herein.
[0101] Further, an embodiment of the present application also provides a computer program product, the computer program product being tangibly stored on a computer-readable medium and including computer-readable instructions, the computer-executable instructions, when executed, causing at least one processor to execute the domain name query method in the above-described embodiment.
[0102] It should be noted that the computer storage medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable medium may, for example but without limitation, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the foregoing. In the present application, a computer-readable storage medium may 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. And in the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program configured to be used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted by any appropriate medium, including but not limited to: wireless, antenna, optical cable, RF, etc., or any suitable combination of the foregoing.
[0103] In addition, those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0104] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a system for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0105] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction system that implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0107] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
[0108] The above embodiments are only exemplary embodiments of the present invention and are not used to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements within the essence and protection scope of the present invention, and such modifications or equivalent replacements should also be regarded as falling within the protection scope of the present invention.
Claims
1. A domain name query method, characterized in that, including: Obtaining a DNS domain name resolution request initiated by a client for a specified domain name; Selecting a candidate link address from a virtual service list as the mapping address of the domain name that the client desires to access based on the load balancing algorithm configured in the link inbound; Determining whether the link where the candidate link address is located and the backend server are operating normally. If so, determining the candidate link address as the target link address and returning it to the client; It also includes: When the link where the candidate link address is located is operating abnormally, determining whether the link enables an abnormal service repair function. If so, repairing the link and its backend server based on the abnormal service repair function.
2. The domain name query method according to claim 1, characterized in that There are multiple candidate link addresses, and the operators corresponding to the multiple candidate link addresses are different. The priority is confirmed based on the matching degree configured between different operators and the client, and the multiple candidate link addresses are arranged based on the priority.
3. The domain name query method according to claim 2, wherein The determining whether the link where the candidate link address is located and the backend server are operating normally. If so, determining the candidate link address as the target link address and returning it to the client includes: Sequentially determining whether the link where each candidate link address is located and the backend server are operating normally according to the arranged priority order. If so, determining the current candidate link address as the target link address and returning it to the client.
4. The domain name query method according to claim 2, wherein It also includes: Determining whether the link where the candidate link address is located and the backend server are operating normally. If not, allocating other link addresses to the client according to the priority, and continuing to determine whether the link where the link address is located and the backend server are operating normally.
5. The domain name query method according to claim 4, characterized in that It also includes: After determining that the link where the candidate link address is located has been operating abnormally for a target time period, if the link enables an abnormal service repair function, restarting the link and its backend server or restarting the service process based on the abnormal service repair function, thereby achieving repair.
6. The domain name query method according to claim 1, characterized in that, It also includes: Adding the determined target link address to an address list; The determining the candidate link address as the target link address and returning it to the client includes: Returning the target link address in the address list to the client.
7. A domain name query device, characterized in that, including: An obtaining module, configured to obtain a DNS domain name resolution request initiated by a client for a specified domain name; A selecting module, configured to select a candidate link address from a virtual service list as the mapping address of the domain name that the client desires to access based on the load balancing algorithm configured in the link inbound; A judging module, configured to determine whether the link where the candidate link address is located and the backend server are operating normally. If so, determining the candidate link address as the target link address and returning it to the client; It also includes: A determining module, configured to determine whether the link enables an abnormal service repair function when the link where the candidate link address is located is operating abnormally. If so, repairing the link and its backend server based on the abnormal service repair function.
8. A domain name query system, characterized in that, including: One or more processors; A memory, configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the domain name query method according to any one of claims 1-6.
9. A storage medium, characterized in that, A computer program is stored thereon, and when the program is executed by a processor, the domain name query method according to any one of claims 1-6 is implemented.