Domain name resolution method and system, micro server cluster node and storage medium

By calculating the score of each target IP address in the domain name server and returning the address with the highest score, and combining the micro-server cluster and cache cluster for domain name resolution, the problem of slow addressing function and resource imbalance of the domain name server is solved, and the response speed and Resource utilization.

CN114945014BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110171453.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2024-08-27
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

In the existing domain name resolution technology, the addressing function of the domain name server is slow, which leads to high operation and maintenance costs and requires a large amount of database resources, resulting in high expenses.

Method used

By obtaining multiple target IP addresses corresponding to the domain name, determine the distance between each target IP address and the source IP address and the application cluster load value, calculate the score, and return the target IP address with the highest score, using micro-server cluster nodes and cache clusters. Domain name matching addressing, dynamically adjusting distribution rules to improve response speed.

Benefits of technology

It improves the response speed of the domain name server, achieves load balancing, improves resource utilization, and reduces operation and maintenance costs and database requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114945014B
    Figure CN114945014B
Patent Text Reader

Abstract

The present disclosure relates to a domain name resolution method and system, a micro server cluster node and a storage medium. The domain name resolution method includes: obtaining a list of optional addresses corresponding to a domain name in a domain name resolution request, the optional address list including multiple target IP addresses; determining the distance between each target IP address and a source IP address; for each target IP address, determining the application cluster load value of the target IP address according to the target cluster application load and the target IP address; for each target IP address, determining the score of the target IP address according to the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address; and returning the target IP address with the highest score. The present disclosure improves the response speed of the domain name server, balances the load of each cluster, and improves resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of the Internet, and in particular to a domain name resolution method and system, a micro server cluster node, and a storage medium. Background Art

[0002] IP address (Internet Protocol Address) refers to the Internet Protocol address. IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the difference in physical addresses.

[0003] A domain name is the name of a computer or computer group on the Internet, consisting of a string of names separated by dots. It is used to identify the electronic location of the computer during data transmission for ease of memory.

[0004] The addresses of a group of servers (websites, emails, FTP, etc.). A server cluster may have the same domain name. For example, when we use the domain name of Baidu search engine to access Baidu search engine, the last visited IP address may be the IP address of one of Baidu's many servers.

[0005] Domain name resolution is also called domain name pointing, server setting, domain name configuration and reverse IP registration, etc. Its essence is to resolve easy-to-remember domain names into IP addresses. Domain name resolution service is completed by DNS servers (Domain Name Servers), which resolve domain names to an IP address and then bind a subdirectory to the domain name on the host of this IP address. Summary of the invention

[0006] In the domain name resolution scheme of the related art, when the domain name accessed by the client corresponds to multiple IP addresses, the DNS server generally adopts an equal probability selection mode, that is, if there are multiple service nodes that can provide services, a node is randomly selected.

[0007] However, the domain name resolution technology in the related art has two characteristics: the function of accepting requests is very fast, but the function of performing addressing is slow. If the configuration file is used to solve the problem of slow addressing, it will bring huge maintenance costs to operation and maintenance; if the database solution is used, more databases are needed to complete it, which will incur high costs.

[0008] In view of at least one of the above technical problems, the present disclosure provides a domain name resolution method and system, a micro server cluster node and a storage medium, which improve the response speed of the domain name server.

[0009] According to one aspect of the present disclosure, a domain name resolution method is provided, including:

[0010] Obtain a list of optional addresses corresponding to the domain name in the domain name resolution request, the optional address list including multiple target IP addresses;

[0011] Determine the distance between each destination IP address and the source IP address;

[0012] For each target IP address, determine the application cluster load value of the target IP address according to the target cluster application load and the target IP address;

[0013] For each target IP address, determine the score of the target IP address according to the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address;

[0014] Returns the target IP address with the highest score.

[0015] In some embodiments of the present disclosure, for each target IP address, determining the score of the target IP address according to the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address includes:

[0016] Obtain the network reachability coefficient and application cluster availability coefficient for each target IP address;

[0017] For each target IP address, the score of the target IP address is determined according to the application cluster load value of the target IP address, the distance value between the target IP address and the source IP address, the network reachability coefficient of the target IP address and the application cluster availability coefficient.

[0018] In some embodiments of the present disclosure, determining the distance between each target IP address and the source IP address includes:

[0019] Get the source IP address;

[0020] For each target IP address, determine the distance value between the target IP address and the source IP address.

[0021] In some embodiments of the present disclosure, multiple micro-server cluster nodes are used to respectively execute the domain name resolution method as described in any of the above embodiments.

[0022] In some embodiments of the present disclosure, the domain name resolution method further includes:

[0023] The acceptance and feedback module receives the domain name resolution request input by the user;

[0024] Domain name matching addressing is performed through a microserver gateway, multiple microserver cluster nodes, multiple cache clusters, and multiple databases;

[0025] The acceptance and feedback module feeds back the target IP address with the highest score to the user terminal.

[0026] In some embodiments of the present disclosure, performing domain name matching addressing through a microserver gateway, multiple microserver cluster nodes, multiple cache clusters, and multiple databases includes:

[0027] The microserver gateway distributes the domain name resolution request to multiple microserver cluster nodes for processing according to the distribution rules;

[0028] The microserver cluster nodes perform domain name matching and addressing in the database through the cache cluster.

[0029] In some embodiments of the present disclosure, the domain name resolution method further includes:

[0030] The distribution rules are adjusted through the application program interface model, wherein the adjustment of the rules does not require restarting the system.

[0031] In some embodiments of the present disclosure, the domain name resolution method further includes:

[0032] The load of the target address of the domain name resolution is judged, a weighted factor is formed in the resolution algorithm, and the load of each microserver cluster node is comprehensively averaged.

[0033] According to another aspect of the present disclosure, a micro server cluster node is provided, comprising:

[0034] An address list acquisition unit is configured to acquire an optional address list corresponding to the domain name in the domain name resolution request, wherein the optional address list includes multiple target IP addresses;

[0035] a distance acquisition unit, configured to determine a distance between each target IP address and a source IP address;

[0036] The load determination unit is configured to determine, for each target IP address, an application cluster load value of the target IP address according to the target cluster application load and the target IP address;

[0037] a score determination unit configured to determine, for each target IP address, a score of the target IP address according to an application cluster load value of the target IP address and a distance value between the target IP address and a source IP address;

[0038] The address returning unit is configured to return the target IP address with the highest score.

[0039] In some embodiments of the present disclosure, the micro-server cluster node is configured to perform operations to implement the domain name resolution method as described in any of the above embodiments.

[0040] According to another aspect of the present disclosure, a micro server cluster node is provided, comprising:

[0041] a memory configured to store instructions;

[0042] The processor is configured to execute the instruction so that the micro-server cluster node performs operations to implement the domain name resolution method as described in any of the above embodiments.

[0043] According to another aspect of the present disclosure, a domain name resolution system is provided, including an acceptance and feedback module, a microserver gateway, a plurality of microserver cluster nodes, a plurality of cache clusters, and a plurality of databases, wherein:

[0044] The acceptance and feedback module is configured to receive a domain name resolution request input by a user through a user terminal, and to feed back a domain name resolution result to the user terminal;

[0045] The microserver gateway is configured to distribute the domain name resolution request to multiple microserver cluster nodes for processing according to the distribution rules;

[0046] The microserver cluster nodes are configured to perform domain name matching addressing in the database through the cache cluster.

[0047] In some embodiments of the present disclosure, the microserver cluster node is the microserver cluster node as described in any of the above embodiments.

[0048] In some embodiments of the present disclosure, the micro-server gateway is configured to adjust the distribution rules through an application program interface model, wherein the adjustment of the rules does not require restarting the system.

[0049] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the domain name resolution method as described in any of the above embodiments is implemented.

[0050] The present disclosure improves the response speed of the domain name server, balances the load of each cluster, and improves resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0052] Figure 1Schematic diagram of some embodiments of the domain name resolution method disclosed in the present invention.

[0053] Figure 2 Schematic diagrams of other embodiments of the domain name resolution method disclosed in the present invention.

[0054] Figure 3 Schematic diagram of some embodiments of the micro server cluster node disclosed in the present invention.

[0055] Figure 4 Schematic diagram of the structure of some other embodiments of the micro server cluster node disclosed in the present invention.

[0056] Figure 5 Schematic diagram of some embodiments of the domain name resolution system disclosed in the present invention. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0058] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0059] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0060] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0061] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0062] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0063] The domain name server function of the related technology has two main characteristics: 1. The function of accepting requests is very fast; 2. The function of performing addressing is slow. For the second characteristic, there are two solutions. First, use configuration files. Addressing uses static files, which is very slow and time-consuming to maintain. Find a line to be modified in hundreds of thousands of codes and restart, which has a high error rate. Second, use MySQL (a relational database management system) to implement it. The related technology puts domain names and IP addresses in it, which are at most a few hundred. Although it can be deployed in a cluster, it requires a lot of SSDs (Solid State Drives), which is too expensive. In the domain name server of the related technology, only read cache is relatively fast in performing addressing functions.

[0064] Figure 1 Schematic diagram of some embodiments of the domain name resolution method of the present disclosure. Preferably, this embodiment can be executed by the domain name resolution system of the present disclosure or the micro server cluster node of the present disclosure. The method may include steps 11 to 15, wherein:

[0065] Step 11, obtaining a list of optional addresses corresponding to the domain name in the domain name resolution request, wherein the list of optional addresses includes multiple target IP addresses.

[0066] In some embodiments of the present disclosure, step 11 may include obtaining a list of optional addresses of the domain name to form a collection of response answers. For example, the parameters of the return value are IP_TARGET1 and IP_TARGET2.

[0067] Step 12, determine the distance between each target IP address and the source IP address.

[0068] In some embodiments of the present disclosure, step 12 may include steps 121 and 122, wherein:

[0069] Step 121, obtain the source IP address (IP_SOURCE).

[0070] Step 122: for each target IP address (eg, IP_TARGET1 or IP_TARGET2), determine the distance value between the target IP address and the source IP address (IP_SOURCE).

[0071] In some embodiments of the present disclosure, step 122 may include: determining a distance value between the target IP address and the source IP address (IP_SOURCE) according to a predetermined source address and target address distance algorithm FX (IP_TARGET, IP_SOURCE).

[0072] In some embodiments of the present disclosure, the maximum value of the distance value may be 100, and the minimum value may be 1.

[0073] Step 13: for each target IP address, determine the application cluster load value of the target IP address according to the target cluster application load and the target IP address.

[0074] In some embodiments of the present disclosure, the target cluster application load condition may include CPU (CPU_RATE) and network card load (NET_LOAD).

[0075] In some embodiments of the present disclosure, step 13 may include: determining the application cluster load value of the target IP address (IP_TARGET) according to a predetermined target address application cluster load algorithm LX (IP_TARGET, CPU_RATE, NET_LOAD).

[0076] In some embodiments of the present disclosure, the maximum value of the application cluster load value may be 100, and the minimum value may be 1.

[0077] Step 14: for each target IP address, determine the score of the target IP address according to the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address.

[0078] In some embodiments of the present disclosure, step 14 may include steps 141 and 142, wherein:

[0079] Step 141, obtaining the network reachability coefficient NET_REACH and the application cluster availability coefficient SAAS_AVLIABLE of each target IP address.

[0080] In some embodiments of the present disclosure, the network reachability coefficient NET_REACH of the target IP address is 1 if it is reachable, and 0 if it is unreachable.

[0081] In some embodiments of the present disclosure, the application cluster availability coefficient SAAS_AVLIABLE is 1 when available and 0 when unavailable.

[0082] Step 142, for each target IP address, determine the score of the target IP address according to the application cluster load value of the target IP address, the distance value between the target IP address and the source IP address, the network reachability coefficient of the target IP address, and the application cluster availability coefficient.

[0083] In some embodiments of the present disclosure, step 142 may include: determining the score of the target IP address based on the sum of the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address, multiplied by the network reachability coefficient of the target IP address and the application cluster availability coefficient.

[0084] For example, compared with the target IP address IP_TARGET1, the return score is recorded as POINT1=NET_REACH1*SAAS_AVLIABLE1(FX(IP_TARGET1,IP_SOURCE)+LX(IP_TARGET1,CPU_RATE,NET_LOAD)).

[0085] For the target IP address IP_TARGET_2, the returned score is recorded as POINT2=NET_REACH2*SAAS_AVLIABLE2(FX(IP_TARGET2,IP_SOURCE)+LX(IP_TARGET2,CPU_RATE,NET_LOAD)) to return the high-scoring IP.

[0086] Step 15, return the target IP address with the highest score.

[0087] Figure 2 Schematic diagram of some other embodiments of the domain name resolution method disclosed in the present invention. Preferably, this embodiment can be executed by the domain name resolution system disclosed in the present invention. The method may include steps 21 to 23, wherein:

[0088] Step 21: The acceptance and feedback module receives the domain name resolution request input by the user.

[0089] Step 22, domain name matching addressing is performed through the micro server gateway, multiple micro server cluster nodes, multiple cache clusters and multiple databases.

[0090] In some embodiments of the present disclosure, step 22 may include step 221 and step 222, wherein:

[0091] Step 221: The microserver gateway distributes the domain name resolution request to multiple microserver cluster nodes for processing according to the distribution rules.

[0092] In some embodiments of the present disclosure, the domain name resolution method may further include: adjusting the distribution rules through an application program interface model, wherein the adjustment of the rules does not require restarting the system.

[0093] Step 222: The micro-server cluster node performs domain name matching and addressing in the database through the cache cluster.

[0094] In some embodiments of the present disclosure, step 222 may include: using multiple micro-server cluster nodes to respectively execute any of the above embodiments (for example Figure 1 The domain name resolution method described in embodiment) performs domain name matching addressing.

[0095] In some embodiments of the present disclosure, the domain name resolution method may further include: judging the load condition of the target address of the domain name resolution, forming a weighting factor in the resolution algorithm, and comprehensively averaging the usage load of each micro-server cluster node.

[0096] Step 23: The acceptance and feedback module feeds back the target IP address with the highest score to the user terminal.

[0097] In some embodiments of the present disclosure, the JAVA computer programming language is used to develop a language to implement the domain name resolution function of the network UDP User Datagram Protocol (UDP, User Datagram Protocol) protocol. When the host of the Window and Linux system uses the domain name resolution configuration, the resolution address of a certain domain name can be obtained normally.

[0098] Based on the domain name resolution method provided by the above embodiment of the present disclosure, mature technical means are used to optimize the addressing method of domain name resolution. For example, the related technology domain name server BIND, when the domain name specifies to return a single address, can use configuration files, caches, and MYSQL databases for domain name matching addressing; when the domain name specifies to return multiple addresses, configuration files and MYSQL data can be used for domain name matching addressing. The domain name resolution method of the above embodiment of the present disclosure can realize cache query in any environment, thereby ensuring performance to the greatest extent.

[0099] The above-mentioned embodiments of the present disclosure use an IT (Information Technology) API (Application Programming Interface) model to adjust the distribution rules. Benchmarking the related technology BIND, in scenarios where intelligent identification of source IP and dynamic domain name resolution are required, the ACL access control list (ACL) file preloading method is mainly adopted, which means that the adjustment of the rules requires a restart. In the above-mentioned embodiments of the present disclosure, an IT-based API model is used to adjust the rules, and the adjustment of the rules does not require a restart, thereby ensuring the continuity of services in the single-point mode.

[0100] The above-mentioned embodiment of the present disclosure uses an artificial intelligence algorithm to judge the load condition of the target address of the domain name resolution, and forms an intelligent weighting factor in the resolution algorithm, that is, a cluster with a lower system load returns a larger number of resolution results, thereby comprehensively averaging the usage load of each cluster in the scenario of stateless business, thereby improving resource utilization.

[0101] Figure 3 Schematic diagram of some embodiments of the micro server cluster node disclosed in the present invention. Figure 3As shown, the micro server cluster node may include an address list acquisition unit 31, a distance acquisition unit 32, a load determination unit 33, a score determination unit 34 and an address return unit 35, wherein:

[0102] The address list acquisition unit 31 is configured to acquire a list of optional addresses corresponding to the domain name in the domain name resolution request, wherein the list of optional addresses includes multiple target IP addresses.

[0103] In some embodiments of the present disclosure, the address list acquisition unit 31 may be configured to acquire a list of optional addresses of a domain name to form a collection of response answers. For example, the parameters of the return value are IP_TARGET1 and IP_TARGET2.

[0104] The distance obtaining unit 32 is configured to determine the distance between each target IP address and the source IP address.

[0105] In some embodiments of the present disclosure, the distance acquisition unit 32 may be configured to acquire a source IP address (IP_SOURCE); for each target IP address (eg, IP_TARGET1 or IP_TARGET2), determine a distance value between the target IP address and the source IP address (IP_SOURCE).

[0106] In some embodiments of the present disclosure, the distance acquisition unit 32 may be configured to determine the distance value between the target IP address and the source IP address (IP_SOURCE) according to a predetermined source address and target address distance algorithm FX (IP_TARGET, IP_SOURCE).

[0107] In some embodiments of the present disclosure, the maximum value of the distance value may be 100, and the minimum value may be 1.

[0108] The load determination unit 33 is configured to determine, for each target IP address, an application cluster load value of the target IP address according to the target cluster application load condition and the target IP address.

[0109] In some embodiments of the present disclosure, the target cluster application load condition may include CPU (CPU_RATE) and network card load (NET_LOAD).

[0110] In some embodiments of the present disclosure, the load determination unit 33 may be configured to determine the application cluster load value of the target IP address (IP_TARGET) according to a predetermined target address application cluster load algorithm LX (IP_TARGET, CPU_RATE, NET_LOAD).

[0111] In some embodiments of the present disclosure, the maximum value of the application cluster load value may be 100, and the minimum value may be 1.

[0112] The score determination unit 34 is configured to determine the score of each target IP address according to the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address.

[0113] In some embodiments of the present disclosure, the score determination unit 34 can be configured to obtain the network reachability coefficient NET_REACH and the application cluster availability coefficient SAAS_AVLIABLE of each target IP address; for each target IP address, the score of the target IP address is determined based on the application cluster load value of the target IP address, the distance value between the target IP address and the source IP address, the network reachability coefficient of the target IP address, and the application cluster availability coefficient.

[0114] In some embodiments of the present disclosure, the network reachability coefficient NET_REACH of the target IP address is 1 if it is reachable, and 0 if it is unreachable.

[0115] In some embodiments of the present disclosure, the application cluster availability coefficient SAAS_AVLIABLE is 1 when available and 0 when unavailable.

[0116] In some embodiments of the present disclosure, the score determination unit 34 can be configured to determine the score of each target IP address based on the sum of the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address, multiplied by the network reachability coefficient and the application cluster availability coefficient of the target IP address.

[0117] For example, compared with the target IP address IP_TARGET1, the return score is recorded as POINT1=NET_REACH1*SAAS_AVLIABLE1(FX(IP_TARGET1,IP_SOURCE)+LX(IP_TARGET1,CPU_RATE,NET_LOAD)).

[0118] For the target IP address IP_TARGET_2, the returned score is recorded as POINT2=NET_REACH2*SAAS_AVLIABLE2(FX(IP_TARGET2,IP_SOURCE)+LX(IP_TARGET2,CPU_RATE,NET_LOAD)) to return the high-scoring IP.

[0119] The address returning unit 35 is configured to return the target IP address with the highest score.

[0120] In some embodiments of the present disclosure, the micro server cluster node may be configured to execute any of the above embodiments (eg Figure 1 or Figure 2 The operation of the domain name resolution method described in Example).

[0121] Figure 4 FIG. 1 is a schematic diagram of the structure of some other embodiments of the micro server cluster node disclosed in the present invention. Figure 4 As shown, the micro server cluster node includes a memory 41 and a processor 42 .

[0122] The memory 41 is used to store instructions. The processor 42 is coupled to the memory 41. The processor 42 is configured to execute and implement any of the above embodiments (for example, Figure 1 or Figure 2 Embodiment) relates to the method.

[0123] like Figure 4 As shown, the micro server cluster node may also include a communication interface 43 for information exchange with other devices. At the same time, the micro server cluster node also includes a bus 44, through which the processor 42, the communication interface 43, and the memory 41 communicate with each other.

[0124] The memory 41 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 41 may also be a memory array. The memory 41 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.

[0125] In addition, the processor 42 may be a central processing unit (CPU), or may be an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.

[0126] Based on the micro-server cluster nodes provided by the above embodiments of the present disclosure, the response speed of the domain name server is improved; the service continuity and service stability in the single-point mode are guaranteed; the load of each cluster is balanced, and the resource utilization rate is improved.

[0127] Figure 5 Schematic diagram of some embodiments of the domain name resolution system disclosed in the present invention. Figure 5 As shown, the domain name resolution system disclosed in the present invention may include an acceptance and feedback module 51, a micro server gateway 52, a plurality of micro server cluster nodes 53, a plurality of cache clusters 54 and a plurality of databases 55, wherein:

[0128] The receiving and feedback module 51 is configured to receive a domain name resolution request input by a user through a user terminal, and feedback the domain name resolution result to the user terminal.

[0129] The micro server gateway 52 is configured to distribute the domain name resolution request to multiple micro server cluster nodes 53 for processing according to the distribution rules.

[0130] In some embodiments of the present disclosure, the micro-server gateway 52 is configured to adjust the distribution rules through an application program interface model, wherein the adjustment of the rules does not require restarting the system.

[0131] The micro server cluster node 53 is configured to perform domain name matching addressing in the database 55 through the cache cluster 54 .

[0132] In some embodiments of the present disclosure, the micro server cluster node 53 may be implemented as a domain name server.

[0133] In some embodiments of the present disclosure, the micro server cluster node 53 may be any of the above embodiments (for example Figure 3-Figure 4 The microserver cluster node described in any embodiment).

[0134] In some embodiments of the present disclosure, the database 55 may be implemented as a high-availability database.

[0135] In some embodiments of the present disclosure, the database 55 may be implemented as a MYSQL database.

[0136] In some embodiments of the present disclosure, the domain name resolution system of the present disclosure may be configured to determine the load condition of the target address of the domain name resolution, form a weighting factor in the resolution algorithm, and comprehensively average the usage load of each micro-server cluster node 53.

[0137] The domain name resolution system provided based on the above-mentioned embodiment of the present disclosure mainly solves two related problems: 1. It solves the problem that the domain name server performs the addressing function too slowly; 2. It solves the problem that the domain name server returns an unbalanced IP address.

[0138] The above-mentioned embodiments of the present disclosure can be applied and implemented in cloud-network integrated unified PaaS (Platform as a Service) platform development and application projects.

[0139] The above-mentioned embodiments of the present disclosure use Java cache technology to improve the response speed of the domain name server. The above-mentioned embodiments of the present disclosure adopt an intelligent dynamic algorithm of the domain name server.

[0140] The above embodiments of the present disclosure use the JAVA computer programming language to develop a language, which can realize the domain name resolution function of the network UDP protocol. When the host of the Window and Linux system uses the domain name resolution configuration, the resolution address of a certain domain name can be obtained normally.

[0141] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, any of the above embodiments (for example Figure 1 or Figure 2 The domain name resolution method described in embodiment).

[0142] Based on the non-transient computer-readable storage medium provided by the above embodiments of the present disclosure, mature technical means are used to optimize the addressing method of domain name resolution. The above embodiments of the present disclosure enable cache query to be performed in any environment, thereby ensuring performance to the greatest extent.

[0143] The above embodiment of the present disclosure uses an IT-based API mode to adjust the distribution rules. The above embodiment of the present disclosure does not require restarting to adjust the rules, thereby ensuring service continuity in a single-point mode.

[0144] The above-mentioned embodiment of the present disclosure uses an artificial intelligence algorithm to judge the load condition of the target address of the domain name resolution, and forms an intelligent weighting factor in the resolution algorithm, that is, a cluster with a lower system load returns a larger number of resolution results, thereby comprehensively averaging the usage load of each cluster in the scenario of stateless business, thereby improving resource utilization.

[0145] The micro-server cluster nodes described above can be implemented as general-purpose processors, programmable logic controllers (PLCs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or any appropriate combination thereof for performing the functions described in this application.

[0146] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0147] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0148] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A domain name resolution method, characterized in that: include: The acceptance and feedback module receives the domain name resolution request input by the user; The microserver gateway distributes the domain name resolution request to multiple microserver cluster nodes for processing according to the distribution rules; Multiple micro-server cluster nodes perform domain name matching and addressing in the database through the cache cluster; The acceptance and feedback module feeds back the target IP address with the highest score to the user terminal; The multiple micro-server cluster nodes performing domain name matching and addressing in the database through the cache cluster includes: Obtain a list of optional addresses corresponding to the domain name in the domain name resolution request. The optional address list includes multiple target IP addresses. Determine the distance between each destination IP address and the source IP address; For each target IP address, determine the application cluster load value of the target IP address based on the target cluster application load and the target IP address; For each target IP address, determine the score of the target IP address based on the application cluster load value of the target IP address and the distance value between the target IP address and the source IP address; Returns the target IP address with the highest score.

2. The domain name resolution method according to claim 1, wherein: The step of determining the score of each target IP address according to the application cluster load value of the target IP address and the distance between the target IP address and the source IP address includes: Obtain the network reachability coefficient and application cluster availability coefficient for each target IP address; For each target IP address, the score of the target IP address is determined based on the application cluster load value of the target IP address, the distance between the target IP address and the source IP address, the network reachability coefficient of the target IP address, and the application cluster availability coefficient.

3. The domain name resolution method according to claim 1, wherein: Determining the distance between each target IP address and the source IP address includes: Get the source IP address; For each target IP address, determine the distance between the target IP address and the source IP address.

4. The domain name resolution method according to any one of claims 1 to 3, characterized in that: Also includes: The distribution rules are adjusted through the application program interface model, wherein the adjustment of the rules does not require restarting the system.

5. The domain name resolution method according to any one of claims 1 to 3, characterized in that: Also includes: The load of the target address of the domain name resolution is judged, a weighted factor is formed in the resolution algorithm, and the load of each micro-server cluster node is comprehensively averaged.

6. A domain name resolution system, characterized in that: It includes acceptance and feedback modules, microserver gateway, multiple microserver cluster nodes, multiple cache clusters, and multiple databases, including: The acceptance and feedback module is configured to receive a domain name resolution request input by a user through a user terminal and feed back a domain name resolution result to the user terminal; The microserver gateway is configured to distribute domain name resolution requests to multiple microserver cluster nodes for processing according to the distribution rules; The microserver cluster nodes are configured to perform domain name matching addressing in the database through the cache cluster; Among them, the microserver cluster nodes include: An address list obtaining unit is configured to obtain a list of optional addresses corresponding to the domain name in the domain name resolution request, the optional address list including multiple target IP addresses; a distance obtaining unit configured to determine a distance between each destination IP address and a source IP address; The load determination unit is configured to determine, for each target IP address, an application cluster load value of the target IP address according to the target cluster application load and the target IP address; a score determination unit configured to determine, for each target IP address, a score of the target IP address based on an application cluster load value of the target IP address and a distance value between the target IP address and a source IP address; The address returning unit is configured to return the target IP address with the highest score.

7. The domain name resolution system according to claim 6, characterized in that: The score determination unit is configured to obtain the network reachability coefficient and application cluster availability coefficient of each target IP address; for each target IP address, the score of the target IP address is determined based on the application cluster load value of the target IP address, the distance value between the target IP address and the source IP address, the network reachability coefficient and application cluster availability coefficient of the target IP address.

8. The domain name resolution system according to claim 6 or 7, characterized in that: The microservice gateway is configured to adjust the distribution rules through an application program interface model, wherein the adjustment of the rules does not require restarting the system.

9. A non-transitory computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the domain name resolution method according to any one of claims 1 to 5 is implemented.