Domain name resolution method and device, electronic equipment and storage medium

By distinguishing the resolution paths of the intranet and DMZ servers, combined with the intelligent DNS cluster and the public network security DNS threat protection platform, the security and efficiency issues of the domain name resolution platform in the financial business data center are solved, achieving high availability and flexible expansion, and improving Improve user experience and system stability.

CN118740848APending Publication Date: 2024-10-01CHINA LIFE INSURANCE CO LTD SHANGHAI DATA CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019470.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In financial business data centers, it is difficult to guarantee the high availability, security, and intelligence of the domain name resolution platform. Especially in business microservice transformation and multi-active deployment scenarios, the failure of the domain name resolution platform will affect the global business.

Method used

By distinguishing the resolution paths of the intranet server and the DMZ server, the intranet domain name resolution server and the internal and external domain name resolution servers are used to process resolution requests respectively. Intelligent DNS clustering and RTT proximity algorithms are introduced to optimize resource allocation and load balancing, combined with public network secure DNS. The threat protection platform blocks malicious domain names.

Benefits of technology

It improves network security and parsing efficiency, optimizes resource utilization, simplifies management complexity, supports flexible expansion, and improves user experience and system availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740848A_ABST
    Figure CN118740848A_ABST
Patent Text Reader

Abstract

The invention provides a domain name resolution method and device, electronic equipment and a storage medium, the domain name resolution method and device are applied to a target server, the target server comprises an intranet domain name resolution server and an intranet and extranet domain name resolution server, and the method comprises the following steps: in response to an address resolution request, determining a sending main body of the resolution request, the sending main body comprises an intranet server and a DMZ server; if the sending main body is an intranet server, analyzing the analysis request through an intranet domain name analysis server, and returning an analysis result to the intranet server; and if the sending main body is the DMZ server, analyzing the analysis request through internal and external domain name analysis servers, and returning an analysis result to the DMZ server. According to the invention, the network security and analysis efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of domain name resolution, and in particular to a domain name resolution method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of financial services, the Internet WEB front-ends, application servers and database servers of various businesses are concentrated in data centers, resulting in a huge scale of business servers and complex cross-access relationships among various businesses.

[0003] In order to better carry out business microservice transformation, fault isolation of various application modules and domestic information innovation transformation, domain names are usually used to connect and call each other, business applications are deployed in multiple active-active environments, the center has tens of thousands of domain names, and the requirements for resolving domain names in various application scenarios are different. Security is also difficult to guarantee. Once the domain name resolution platform fails, it will affect the global business of the data center, and the requirements for high availability, security and intelligence of the domain name resolution platform are getting higher and higher. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a domain name resolution method, device, electronic device and storage medium, which can improve network security and resolution efficiency.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a domain name resolution method, which is applied to a target server, wherein the target server includes an intranet domain name resolution server and an internal and external domain name resolution server, and the method includes:

[0007] In response to the address resolution request, determining a sending subject of the resolution request, wherein the sending subject includes an intranet server and a DMZ server;

[0008] If the sending subject is the intranet server, the resolution request is resolved by the intranet domain name resolution server, and the resolution result is returned to the intranet server;

[0009] If the sending subject is the DMZ server, the resolution request is resolved by the internal and external domain name resolution servers, and the resolution result is returned to the DMZ server.

[0010] In a second aspect, an embodiment of the present application further provides a domain name resolution device, which is applied to a target server, wherein the target server includes an intranet domain name resolution server and an internal and external domain name resolution server, and the device includes:

[0011] A response module, configured to determine, in response to an address resolution request, a sending subject of the resolution request, wherein the sending subject includes an intranet server and a DMZ server;

[0012] A resolution module is used to resolve the resolution request through the intranet domain name resolution server if the sending entity is the intranet server, and return the resolution result to the intranet server; if the sending entity is the DMZ server, resolve the resolution request through the internal and external domain name resolution servers, and return the resolution result to the DMZ server.

[0013] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the domain name resolution method described in any one of the first aspects.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the domain name resolution method described in any one of the first aspects is executed.

[0015] The embodiments of the present application have the following beneficial effects:

[0016] (1) Improve network security: By distinguishing the resolution paths of the intranet server and the DMZ server, the resolution requests of the intranet and the extranet are effectively isolated, reducing the risk of the intranet being exposed to the extranet. For the extranet domain name resolution requests of the DMZ server, malicious domain names are intercepted by introducing the public network security DNS threat protection platform, thus enhancing the network security protection capability and preventing potential network attacks.

[0017] (2) Improve resolution efficiency: According to the different sending entities (intranet server or DMZ server), the most appropriate domain name resolution server (intranet domain name resolution server or internal and external domain name resolution server) is selected, which reduces unnecessary network jumps and improves resolution efficiency. The introduction of intelligent DNS cluster and RTT proximity algorithm ensures that the resolution request is forwarded to the nearest and less loaded intelligent DNS server, further shortening the resolution response time.

[0018] (3) Optimize resource utilization: By evaluating the carrying capacity of the target server and determining the weight ratio, the domain name resolution task volume can be reasonably allocated, avoiding the situation where some servers are overloaded while other servers are idle, and improving resource utilization. The load balancing capability of the intelligent DNS cluster ensures that the load of each server in the cluster remains balanced, extending the server life and reducing failures and maintenance costs caused by overload.

[0019] (4) Enhanced management convenience: Centralized management of multiple target servers and intelligent DNS clusters simplifies the network architecture and reduces management complexity. The real-time monitoring system can automatically adjust server weights and task allocations, reducing the need for manual intervention and improving management efficiency.

[0020] (5) Support flexible expansion: When the network scale expands or the resolution demand increases, new target servers can be easily added to the smart DNS cluster to achieve horizontal expansion without making major modifications to the existing architecture.

[0021] (6) Improve user experience: Fast domain name resolution response time and efficient security protection mechanism improve the speed and security of users' access to network resources, thereby improving user experience.

[0022] In summary, the embodiments of the present application have brought significant beneficial effects in improving network security, analysis efficiency, resource utilization, management convenience and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 It is a flowchart of steps S101-S102 provided in an embodiment of the present application;

[0025] Figure 2 This is a diagram of the architecture of the domain name resolution service platform provided in the embodiment of the present application;

[0026] Figure 3 This is a data flow diagram of an intranet server resolving an intranet domain name provided in an embodiment of the present application;

[0027] Figure 4 This is a data flow diagram of an intranet server resolving an external network domain name provided in an embodiment of the present application;

[0028] Figure 5 This is a data flow diagram of a DMZ server resolving an intranet domain name provided in an embodiment of the present application;

[0029] Figure 6 This is a data flow diagram of a DMZ server resolving an external network domain name provided in an embodiment of the present application;

[0030] Figure 7This is a multi-active intelligent DNS resolution data flow diagram provided in an embodiment of the present application;

[0031] Figure 8 It is a structural diagram of a domain name resolution device provided in an embodiment of the present application;

[0032] Fig. 9 It is a schematic diagram of the composition structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0033] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0034] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0035] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0037] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0039] See also Figure 1 , Figure 1 is a flowchart of steps S101-S102 of the domain name resolution method provided in the embodiment of the present application, which will be combined with Figure 1 Steps S101-S102 are shown for explanation.

[0040] In step S101, in response to an address resolution request, a sending subject of the resolution request is determined, wherein the sending subject includes an intranet server and a DMZ server.

[0041] In step S102, if the sending entity is the intranet server, the resolution request is resolved by the intranet domain name resolution server, and the resolution result is returned to the intranet server;

[0042] If the sending subject is the DMZ server, the resolution request is resolved by the internal and external domain name resolution servers, and the resolution result is returned to the DMZ server.

[0043] The above domain name resolution method is intended to provide appropriate domain name resolution services according to sending entities (such as intranet servers and DMZ servers) in different network environments.

[0044] Specifically, when an address resolution request is received, the sender of the request is first determined. The senders here are divided into two categories: intranet servers and DMZ (Demilitarized Zone) servers. Intranet servers are usually located in the internal network of an enterprise or organization to access internal resources and services. DMZ servers are located between the internal network and the external network to provide secure access services to external users while protecting the internal network from external threats.

[0045] If the sender is identified as an intranet server, the intranet domain name resolution server is used for resolution. The intranet domain name resolution server is mainly responsible for resolving domain names in the internal network to ensure that the intranet server can quickly and accurately access internal resources. After the resolution is completed, the resolution result is returned to the intranet server.

[0046] If the sender is identified as a DMZ server, the internal and external domain name resolution servers are used for resolution. The internal and external domain name resolution servers must not only be able to resolve domain names in the internal network, but also be able to handle resolution requests for external network domain names to meet the needs of the DMZ server to access internal and external resources at the same time. After the resolution is completed, the resolution result is also returned to the DMZ server.

[0047] The above method can optimize the resolution path and reduce unnecessary network delays and bandwidth consumption by distinguishing the resolution requests of the intranet server and the DMZ server. The intranet server directly uses the intranet domain name resolution server and can quickly respond to the resolution requests of internal network resources. The DMZ server can handle the resolution requirements for internal and external resources at the same time through the internal and external domain name resolution servers, thereby improving the overall resolution efficiency. As a buffer between the internal and external networks, the DMZ server can better control the access rights to external network resources and reduce potential security risks through the use of internal and external domain name resolution servers. The intranet domain name resolution server focuses on the resolution of internal network resources, which helps to protect the information security of the internal network. This method simplifies the complexity of network management and maintenance through clear resolution paths and server division of labor. Administrators can configure and optimize the corresponding domain name resolution servers in a targeted manner according to different types of resolution requests.

[0048] In summary, this domain name resolution method improves the efficiency and security of domain name resolution and simplifies network management by distinguishing the resolution requests of the intranet server and the DMZ server and processing them through the intranet domain name resolution server and the internal and external domain name resolution servers respectively.

[0049] In some embodiments, the method further includes: there are multiple target servers, and before determining the sending subject of the resolution request in response to the address resolution request, the method further includes:

[0050] Determine the sending address of the sending subject;

[0051] A target server closest to the sending subject is determined based on the sending address, and a domain name resolution method is performed through the target server.

[0052] Here, the embodiment of the present application introduces multiple target servers and adds a step of determining the closest target server based on the sending address. Such improvements further improve the efficiency and response speed of domain name resolution, especially in a distributed or multi-regional deployment environment.

[0053] See also Figure 2 , Figure 2It is a diagram of the domain name resolution service platform architecture provided by an embodiment of the present application. The A center and the B center in the figure can be understood as the target server. When an address resolution request is received, the sending address of the request is first determined. This usually involves the resolution of the IP address to determine which network area or geographical location the request comes from. Based on the sending address, a certain geographical location awareness algorithm (such as IP geolocation, network delay test, etc.) is used to determine the target server closest to the sending subject. Selecting the nearest target server can reduce network delay and improve the response speed of the resolution request. After determining the target server for processing the resolution request, the server will check the sending subject of the resolution request, that is, determine whether the request is from an intranet server or a DMZ server. If the sending subject is an intranet server, the resolution request is resolved by the intranet domain name resolution server on the target server, and the resolution result is returned to the intranet server. If the sending subject is a DMZ server, the resolution request is resolved by the internal and external domain name resolution servers on the target server, and the resolution result is returned to the DMZ server.

[0054] By selecting the target server closest to the sender to execute the resolution request, the network transmission delay can be significantly reduced and the resolution efficiency can be improved. In a distributed or multi-regional deployment environment, even if the target server in a certain region fails, servers in other regions can still take over the resolution request, improving the overall availability of the system. Dynamically selecting the target server based on the sending address can achieve load balancing to a certain extent and prevent some servers from being overloaded due to processing too many requests. This method supports flexible increase or decrease in the number of target servers to adapt to changes in network scale and enhances the scalability of the system.

[0055] In summary, by introducing multiple target servers and selecting the nearest target server based on the sending address to perform domain name resolution, the efficiency and response speed of domain name resolution can be further improved, while enhancing the system's availability, load balancing capabilities, and scalability.

[0056] In some embodiments, resolving the resolution request by the intranet domain name resolution server and returning the resolution result to the intranet server includes:

[0057] If the domain name in the resolution request is an intranet domain name, forwarding the resolution request to the intranet domain name resolution server, and returning the resolution result to the intranet server through the intranet domain name resolution server;

[0058] If the domain name in the resolution request is an external network domain name, the resolution request is forwarded to the DNS proxy server through the intranet domain name resolution server, and after the DNS proxy server receives the request, it returns a prohibited resolution result to the intranet domain name resolution server, and returns the prohibited resolution result to the intranet server through the intranet domain name resolution server.

[0059] See also Figure 3 and Figure 4 , Figure 3 This is a data flow diagram of an intranet server resolving an intranet domain name provided in an embodiment of the present application. Figure 4 This is a data flow diagram of the intranet server resolving the external network domain name provided in the embodiment of the present application, combined with Figure 3 and Figure 4 It can be seen that when the intranet domain name resolution server receives a resolution request from the intranet server, it first checks whether the domain name in the request is an intranet domain name.

[0060] If the domain name is an intranet domain name, the intranet domain name resolution server will directly process the resolution request and find the corresponding IP address or other necessary resolution information. After the resolution is completed, the intranet domain name resolution server will return the resolution result to the intranet server that initiated the request.

[0061] If the domain name is an external domain name, the intranet domain name resolution server will not directly resolve it after recognizing that it is a resolution request for an external domain name. Instead, it will forward the resolution request to a dedicated DNS proxy server. After the DNS proxy server receives the external domain name resolution request from the intranet domain name resolution server, it will check whether the intranet server is allowed to directly resolve the external domain name. For security reasons, this direct resolution is usually prohibited. Therefore, the DNS proxy server will return a resolution prohibition result to the intranet domain name resolution server. After receiving the resolution prohibition result returned by the DNS proxy server, the intranet domain name resolution server will further return the result to the intranet server that initiated the request.

[0062] In some embodiments, resolving the resolution request by the internal and external domain name resolution servers and returning the resolution result to the DMZ server includes:

[0063] If the domain name in the resolution request is an intranet domain name, forward the resolution request to the internal and external domain name resolution servers, and return the resolution result to the intranet server through the internal and external domain name resolution servers;

[0064] If the domain name in the resolution request is an external domain name, the resolution request is forwarded to the DNS proxy server through the internal and external domain name resolution servers, and after the DNS proxy server receives the request, the request is forwarded to the public network security DNS threat protection platform;

[0065] If the request is a malicious domain name, the public network security DNS threat protection platform intercepts the request, and the intercepted IP address is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in sequence;

[0066] If the request is a normal domain name, the request is forwarded to the local operator's Local DNS through the public network security DNS threat protection platform, and the resolution result is obtained through the iterative query of the local operator's Local DNS, and the resolution result is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in turn.

[0067] See also Figure 5 and Figure 6 , Figure 5 This is a data flow diagram of the DMZ server resolving the intranet domain name provided in the embodiment of the present application. Figure 6 This is a data flow diagram of the DMZ server resolving the external network domain name provided in the embodiment of the present application, combined with Figure 5 Figure 6 It can be seen that when the internal and external domain name resolution servers receive a resolution request from the DMZ server, they first check the domain name type in the request.

[0068] If the domain name is an intranet domain name, even though the request comes from the DMZ server, if it is an intranet domain name, the internal and external domain name resolution servers will directly process the resolution request and find the corresponding IP address or other necessary resolution information. After the resolution is completed, the internal and external domain name resolution servers will return the resolution result to the DMZ server that initiated the request.

[0069] If the domain name is an external domain name, the internal and external domain name resolution servers will forward it to the DNS proxy server after recognizing that it is a resolution request for an external domain name. After receiving the external domain name resolution request from the internal and external domain name resolution servers, the DNS proxy server will forward it to the public network security DNS threat protection platform. The public network security DNS threat protection platform will perform security checks on the domain name to determine whether it is a malicious domain name.

[0070] If the request is a malicious domain name, the public network security DNS threat protection platform will intercept the request and record or report the malicious behavior. At the same time, it will return the intercepted IP address (or related security warning information) to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers to notify it that the domain name has security risks.

[0071] If the request is for a normal domain name, the public network security DNS threat protection platform will forward the request to the local operator's Local DNS server. The Local DNS server obtains the resolution result of the domain name through iterative queries. The resolution result is returned to the public network security DNS threat protection platform through the Local DNS server, and then returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in turn.

[0072] By performing security checks on external domain names through the public network security DNS threat protection platform, malicious domain name requests can be effectively intercepted to protect the intranet and DMZ areas from network attacks. Distinguishing the processing flow of intranet domain names from that of external domain names makes network management strategies clearer and more specific. For normal external domain name resolution requests, the public network security DNS threat protection platform and the Local DNS server can work together to ensure the accuracy and efficiency of the resolution requests. At the same time, timely interception of malicious domain names can prevent the DMZ server from making invalid network requests, further optimizing network performance.

[0073] In summary, this method realizes the fine distinction and secure processing of intranet and extranet domain name resolution requests on internal and external domain name resolution servers, which not only ensures the effective access to network resources, but also enhances the security of the entire network.

[0074] In some embodiments, the target server further includes an intelligent DNS server, and the intelligent DNS servers in a plurality of the target servers form an intelligent DNS cluster, and the method further includes:

[0075] Responding to the resolution request sent by the intranet server, sending the resolution request to the smart DNS cluster;

[0076] Based on the RTT proximity algorithm, the resolution request is forwarded to the target intelligent DNS server for resolution, and the intranet server IP address is transparently transmitted to the intelligent DNS cluster through the ECS source count.

[0077] See also Figure 7 , Figure 7 This is a multi-active intelligent DNS resolution data flow diagram provided by the embodiment of the present application, such as Figure 7 As shown in the figure, in the business multi-active deployment scenario, dynamic domain name intelligent resolution obtains the best server address and detects the business application status through the intelligent DNS resolution platform.

[0078] When an intranet server sends a resolution request, the request is first sent to the smart DNS cluster. The smart DNS cluster consists of multiple smart DNS servers that can work together to handle a large number of resolution requests. After receiving the resolution request, the smart DNS cluster uses the RTT (round-trip time) proximity algorithm to determine the best target smart DNS server to handle the request. The RTT proximity algorithm takes into account network latency and selects the smart DNS server with the smallest network latency to the intranet server to reduce the response time of the resolution request. Before forwarding the resolution request to the target smart DNS server, the smart DNS cluster uses the ECS (edge ​​cache server) source counting function to count and transparently transmit the IP address of the intranet server. The benefit of this is that the target smart DNS server can make smarter resolution decisions based on the IP address of the intranet server, such as optimizing the resolution result based on geographic location or access history. After receiving the optimized resolution request, the target smart DNS server performs the domain name resolution operation. This includes looking up the IP address corresponding to the domain name or other necessary resolution information. After the resolution is completed, the target smart DNS server returns the resolution result to the smart DNS cluster. The smart DNS cluster then forwards the resolution result back to the intranet server that originally initiated the request.

[0079] After the introduction of intelligent DNS servers and intelligent DNS clusters, the entire domain name resolution process has become more intelligent, efficient and reliable, and can better meet the resolution needs in complex network environments.

[0080] In some embodiments, the target smart DNS server is determined based on at least one of distance, load, and operating status.

[0081] Please continue to see Figure 7 ,The selection of the target smart DNS server is usually based on a ,comprehensive consideration of multiple factors, including distance, load, operating status, etc. These factors jointly determine which smart DNS server is ,most suitable for processing the current resolution request.

[0082] Distance is an important factor when selecting a target smart DNS server. A shorter distance means lower network latency, which can respond to resolution requests faster. The RTT (round trip time) proximity algorithm is based on this principle. By measuring the network latency between the intranet server and each smart DNS server, the server with the smallest latency is selected as the target server.

[0083] Load refers to the number of resolution requests currently being processed by the smart DNS server and the server's processing capacity. Too high a load may cause the server to respond slowly or even be unable to process new resolution requests. Therefore, when selecting a target smart DNS server, you need to consider its current load.

[0084] The operating status refers to the health and working status of the smart DNS server. A well-functioning server can stably process resolution requests, while a server that fails or has degraded performance may not be able to provide reliable services.

[0085] In actual applications, the smart DNS cluster usually considers multiple factors such as distance, load, and operating status to determine the target smart DNS server. For example, when a server is close to the intranet server and has a low load, it may be selected as the target server first; but if the server fails or has degraded performance, it will be immediately excluded. Through this comprehensive consideration, the smart DNS cluster can ensure that resolution requests are processed quickly, stably, and reliably.

[0086] In some embodiments, the method further comprises:

[0087] Determining a weight ratio based on the carrying capacity of the multiple target servers;

[0088] The domain name resolution task amount of each target server in the multiple target servers is determined based on the weight ratio.

[0089] Please continue to see Figure 7 , determining the weight ratio based on the carrying capacity of multiple target servers and further allocating the amount of domain name resolution tasks is an effective resource management and optimization strategy. First, a comprehensive evaluation of the carrying capacity of each target server is required. This includes the server's hardware performance (such as CPU, memory, storage, etc.), network bandwidth, current load, and historical performance data. These data can be collected and analyzed in real time through professional monitoring tools or systems to accurately understand the current status of each server and its possible future load capacity. Based on the evaluation results, a weight value is assigned to each target server. The weight value should be able to reflect the relative carrying capacity of the server, that is, the server with a higher weight should be able to undertake more domain name resolution tasks. The specific method of weight calculation can be selected according to the actual situation, such as using subjective assignment methods such as AHP hierarchical analysis method and priority diagram method, or objective weighting methods such as entropy method and CRITIC weight method. In practical applications, multiple methods are usually combined to determine the weight ratio to ensure its accuracy and rationality. The weight ratio is not static. With the changes in server performance and fluctuations in load, regular adjustments and optimizations may be required. This can be achieved through real-time feedback and data analysis of the monitoring system to ensure that the weight ratio is always consistent with the actual carrying capacity of the server.

[0090] According to the determined weight ratio, the domain name resolution task volume is allocated to each target server. The server with a higher weight will take on more resolution tasks to fully utilize its performance advantages. During the allocation process, a load balancing algorithm (such as Nginx's weighted polling algorithm) can be used to ensure the uniform distribution of requests and the effective use of resources. The allocation of domain name resolution tasks should be dynamic, that is, it should be adjusted in real time according to the real-time load and performance changes of the server. This can be achieved through the intelligent scheduling function of the load balancer to ensure that the resolution task can be allocated to the most appropriate server at any time. After allocating the domain name resolution task volume, it is necessary to continuously monitor the performance and load of each server. If it is found that a server is overloaded or its performance has degraded, its weight ratio and task allocation should be adjusted in time to avoid service interruption or performance bottleneck.

[0091] Determining the weight ratio based on the carrying capacity of multiple target servers and further allocating the domain name resolution task volume is an effective resource management and optimization strategy. By evaluating the carrying capacity of the server, calculating the weight, dynamically adjusting and optimizing the task allocation, the stability and efficiency of the domain name resolution service can be ensured.

[0092] In summary, the embodiments of the present application have the following beneficial effects:

[0093] (1) Improve network security: By distinguishing the resolution paths of the intranet server and the DMZ server, the resolution requests of the intranet and the extranet are effectively isolated, reducing the risk of the intranet being exposed to the extranet. For the extranet domain name resolution requests of the DMZ server, malicious domain names are intercepted by introducing the public network security DNS threat protection platform, thus enhancing the network security protection capability and preventing potential network attacks.

[0094] (2) Improve resolution efficiency: According to the different sending entities (intranet server or DMZ server), the most appropriate domain name resolution server (intranet domain name resolution server or internal and external domain name resolution server) is selected, which reduces unnecessary network jumps and improves resolution efficiency. The introduction of intelligent DNS cluster and RTT proximity algorithm ensures that the resolution request is forwarded to the nearest and less loaded intelligent DNS server, further shortening the resolution response time.

[0095] (3) Optimize resource utilization: By evaluating the carrying capacity of the target server and determining the weight ratio, the domain name resolution task volume can be reasonably allocated, avoiding the situation where some servers are overloaded while other servers are idle, and improving resource utilization. The load balancing capability of the intelligent DNS cluster ensures that the load of each server in the cluster remains balanced, extending the server life and reducing failures and maintenance costs caused by overload.

[0096] (4) Enhanced management convenience: Centralized management of multiple target servers and intelligent DNS clusters simplifies the network architecture and reduces management complexity. The real-time monitoring system can automatically adjust server weights and task allocations, reducing the need for manual intervention and improving management efficiency.

[0097] (5) Support flexible expansion: When the network scale expands or the resolution demand increases, new target servers can be easily added to the smart DNS cluster to achieve horizontal expansion without making major modifications to the existing architecture.

[0098] (6) Improve user experience: Fast domain name resolution response time and efficient security protection mechanism improve the speed and security of users' access to network resources, thereby improving user experience.

[0099] In summary, the embodiments of the present application have brought significant beneficial effects in improving network security, analysis efficiency, resource utilization, management convenience and user experience.

[0100] Based on the same inventive concept, the embodiment of the present application also provides a domain name resolution device corresponding to the domain name resolution method in the first embodiment. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned domain name resolution method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0101] like Figure 8 As shown, Figure 8 8 is a schematic diagram of the structure of a domain name resolution device 800 provided in an embodiment of the present application. The domain name resolution device 800 is applied to a target server, and the target server includes an intranet domain name resolution server and an internal and external domain name resolution server, including:

[0102] A response module 801 is used to respond to the address resolution request and determine the sending subject of the resolution request, wherein the sending subject includes an intranet server and a DMZ server;

[0103] The resolution module 802 is used to resolve the resolution request through the intranet domain name resolution server if the sending entity is the intranet server, and return the resolution result to the intranet server; if the sending entity is the DMZ server, resolve the resolution request through the internal and external domain name resolution servers, and return the resolution result to the DMZ server.

[0104] Those skilled in the art should understand that Figure 8 The implementation functions of each unit in the domain name resolution device 800 shown can be understood by referring to the relevant description of the aforementioned domain name resolution method. Figure 8The functions of each unit in the domain name resolution device 800 shown can be implemented by a program running on a processor, or by a specific logic circuit.

[0105] In a possible implementation manner, there are multiple target servers, and before responding to the address resolution request and determining the sender of the resolution request, the response module 801 further includes:

[0106] Determine the sending address of the sending subject;

[0107] A target server closest to the sending subject is determined based on the sending address, and a domain name resolution method is performed through the target server.

[0108] In a possible implementation, the resolution module 802 resolves the resolution request through the intranet domain name resolution server and returns the resolution result to the intranet server, including:

[0109] If the domain name in the resolution request is an intranet domain name, forwarding the resolution request to the intranet domain name resolution server, and returning the resolution result to the intranet server through the intranet domain name resolution server;

[0110] If the domain name in the resolution request is an external network domain name, the resolution request is forwarded to the DNS proxy server through the intranet domain name resolution server, and after the DNS proxy server receives the request, it returns a prohibited resolution result to the intranet domain name resolution server, and returns the prohibited resolution result to the intranet server through the intranet domain name resolution server.

[0111] In a possible implementation manner, the resolution module 802 resolves the resolution request through the internal and external domain name resolution servers and returns the resolution result to the DMZ server, including:

[0112] If the domain name in the resolution request is an intranet domain name, forward the resolution request to the internal and external domain name resolution servers, and return the resolution result to the intranet server through the internal and external domain name resolution servers;

[0113] If the domain name in the resolution request is an external domain name, the resolution request is forwarded to the DNS proxy server through the internal and external domain name resolution servers, and after the DNS proxy server receives the request, the request is forwarded to the public network security DNS threat protection platform;

[0114] If the request is a malicious domain name, the public network security DNS threat protection platform intercepts the request, and the intercepted IP address is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in sequence;

[0115] If the request is a normal domain name, the request is forwarded to the local operator's Local DNS through the public network security DNS threat protection platform, and the resolution result is obtained through the iterative query of the local operator's Local DNS, and the resolution result is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in turn.

[0116] In a possible implementation, the target server further includes an intelligent DNS server, and the intelligent DNS servers in a plurality of the target servers form an intelligent DNS cluster, and the resolution module 802 further includes:

[0117] Responding to the resolution request sent by the intranet server, sending the resolution request to the smart DNS cluster;

[0118] Based on the RTT proximity algorithm, the resolution request is forwarded to the target intelligent DNS server for resolution, and the intranet server IP address is transparently transmitted to the intelligent DNS cluster through the ECS source count.

[0119] In a possible implementation, the target intelligent DNS server is determined based on at least one of distance, load, and operating status.

[0120] In a possible implementation, the parsing module 802 further includes:

[0121] Determining a weight ratio based on the carrying capacity of the multiple target servers;

[0122] The domain name resolution task amount of each target server in the multiple target servers is determined based on the weight ratio.

[0123] The above domain name resolution device has the following beneficial effects:

[0124] (1) Improve network security: By distinguishing the resolution paths of the intranet server and the DMZ server, the resolution requests of the intranet and the extranet are effectively isolated, reducing the risk of the intranet being exposed to the extranet. For the extranet domain name resolution requests of the DMZ server, malicious domain names are intercepted by introducing the public network security DNS threat protection platform, thus enhancing the network security protection capability and preventing potential network attacks.

[0125] (2) Improve resolution efficiency: According to the different sending entities (intranet server or DMZ server), the most appropriate domain name resolution server (intranet domain name resolution server or internal and external domain name resolution server) is selected, which reduces unnecessary network jumps and improves resolution efficiency. The introduction of intelligent DNS cluster and RTT proximity algorithm ensures that the resolution request is forwarded to the nearest and less loaded intelligent DNS server, further shortening the resolution response time.

[0126] (3) Optimize resource utilization: By evaluating the carrying capacity of the target server and determining the weight ratio, the domain name resolution task volume can be reasonably allocated, avoiding the situation where some servers are overloaded while other servers are idle, and improving resource utilization. The load balancing capability of the intelligent DNS cluster ensures that the load of each server in the cluster remains balanced, extending the server life and reducing failures and maintenance costs caused by overload.

[0127] (4) Enhanced management convenience: Centralized management of multiple target servers and intelligent DNS clusters simplifies the network architecture and reduces management complexity. The real-time monitoring system can automatically adjust server weights and task allocations, reducing the need for manual intervention and improving management efficiency.

[0128] (5) Support flexible expansion: When the network scale expands or the resolution demand increases, new target servers can be easily added to the smart DNS cluster to achieve horizontal expansion without making major modifications to the existing architecture.

[0129] (6) Improve user experience: Fast domain name resolution response time and efficient security protection mechanism improve the speed and security of users' access to network resources, thereby improving user experience.

[0130] In summary, the embodiments of the present application have brought significant beneficial effects in improving network security, analysis efficiency, resource utilization, management convenience and user experience.

[0131] like Fig. 9 As shown, Fig. 9 The present invention provides a schematic diagram of the structure of an electronic device 900, wherein the electronic device 900 includes:

[0132] A processor 901, a storage medium 902 and a bus 903, wherein the storage medium 902 stores machine-readable instructions executable by the processor 901. When the electronic device 900 is running, the processor 901 communicates with the storage medium 902 via the bus 903, and the processor 901 executes the machine-readable instructions to perform the steps of the domain name resolution method described in the embodiment of the present application.

[0133] In actual application, the components in the electronic device 900 are coupled together via the bus 903. It is understood that the bus 903 is used to realize the connection and communication between these components. In addition to the data bus, the bus 903 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus 903.

[0134] The above electronic device has the following beneficial effects:

[0135] (1) Improve network security: By distinguishing the resolution paths of the intranet server and the DMZ server, the resolution requests of the intranet and the extranet are effectively isolated, reducing the risk of the intranet being exposed to the extranet. For the extranet domain name resolution requests of the DMZ server, malicious domain names are intercepted by introducing the public network security DNS threat protection platform, thus enhancing the network security protection capability and preventing potential network attacks.

[0136] (2) Improve resolution efficiency: According to the different sending entities (intranet server or DMZ server), the most appropriate domain name resolution server (intranet domain name resolution server or internal and external domain name resolution server) is selected, which reduces unnecessary network jumps and improves resolution efficiency. The introduction of intelligent DNS cluster and RTT proximity algorithm ensures that the resolution request is forwarded to the nearest and less loaded intelligent DNS server, further shortening the resolution response time.

[0137] (3) Optimize resource utilization: By evaluating the carrying capacity of the target server and determining the weight ratio, the domain name resolution task volume can be reasonably allocated, avoiding the situation where some servers are overloaded while other servers are idle, and improving resource utilization. The load balancing capability of the intelligent DNS cluster ensures that the load of each server in the cluster remains balanced, extending the server life and reducing failures and maintenance costs caused by overload.

[0138] (4) Enhanced management convenience: Centralized management of multiple target servers and intelligent DNS clusters simplifies the network architecture and reduces management complexity. The real-time monitoring system can automatically adjust server weights and task allocations, reducing the need for manual intervention and improving management efficiency.

[0139] (5) Support flexible expansion: When the network scale expands or the resolution demand increases, new target servers can be easily added to the smart DNS cluster to achieve horizontal expansion without making major modifications to the existing architecture.

[0140] (6) Improve user experience: Fast domain name resolution response time and efficient security protection mechanism improve the speed and security of users' access to network resources, thereby improving user experience.

[0141] In summary, the embodiments of the present application have brought significant beneficial effects in improving network security, analysis efficiency, resource utilization, management convenience and user experience.

[0142] The embodiment of the present application further provides a computer-readable storage medium, which stores executable instructions. When the executable instructions are executed by at least one processor 901, the domain name resolution method described in the embodiment of the present application is implemented.

[0143] In some embodiments, the storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface storage, an optical disk, or a compact disc read-only memory (CD ROM); it can also be various devices including one or any combination of the above memories.

[0144] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0145] As an example, executable instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).

[0146] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0147] The computer-readable storage medium has the following advantages:

[0148] (1) Improve network security: By distinguishing the resolution paths of the intranet server and the DMZ server, the resolution requests of the intranet and the extranet are effectively isolated, reducing the risk of the intranet being exposed to the extranet. For the extranet domain name resolution requests of the DMZ server, malicious domain names are intercepted by introducing the public network security DNS threat protection platform, thus enhancing the network security protection capability and preventing potential network attacks.

[0149] (2) Improve resolution efficiency: According to the different sending entities (intranet server or DMZ server), the most appropriate domain name resolution server (intranet domain name resolution server or internal and external domain name resolution server) is selected, which reduces unnecessary network jumps and improves resolution efficiency. The introduction of intelligent DNS cluster and RTT proximity algorithm ensures that the resolution request is forwarded to the nearest and less loaded intelligent DNS server, further shortening the resolution response time.

[0150] (3) Optimize resource utilization: By evaluating the carrying capacity of the target server and determining the weight ratio, the domain name resolution task volume can be reasonably allocated, avoiding the situation where some servers are overloaded while other servers are idle, and improving resource utilization. The load balancing capability of the intelligent DNS cluster ensures that the load of each server in the cluster remains balanced, extending the server life and reducing failures and maintenance costs caused by overload.

[0151] (4) Enhanced management convenience: Centralized management of multiple target servers and intelligent DNS clusters simplifies the network architecture and reduces management complexity. The real-time monitoring system can automatically adjust server weights and task allocations, reducing the need for manual intervention and improving management efficiency.

[0152] (5) Support flexible expansion: When the network scale expands or the resolution demand increases, new target servers can be easily added to the smart DNS cluster to achieve horizontal expansion without making major modifications to the existing architecture.

[0153] (6) Improve user experience: Fast domain name resolution response time and efficient security protection mechanism improve the speed and security of users' access to network resources, thereby improving user experience.

[0154] In summary, the embodiments of the present application have brought significant beneficial effects in improving network security, analysis efficiency, resource utilization, management convenience and user experience.

[0155] In the several embodiments provided in the present application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0156] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0158] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0159] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A domain name resolution method, characterized in that: Applied to a target server, the target server includes an intranet domain name resolution server and an internal and external domain name resolution server, the method includes: In response to the address resolution request, determining a sending subject of the resolution request, wherein the sending subject includes an intranet server and a DMZ server; If the sending subject is the intranet server, the resolution request is resolved by the intranet domain name resolution server, and the resolution result is returned to the intranet server; If the sending subject is the DMZ server, the resolution request is resolved by the internal and external domain name resolution servers, and the resolution result is returned to the DMZ server.

2. The method according to claim 1, characterized in that The method further includes: when there are multiple target servers, before determining the sending subject of the resolution request in response to the address resolution request, the method further includes: Determine the sending address of the sending subject; A target server closest to the sending subject is determined based on the sending address, and a domain name resolution method is performed through the target server.

3. The method according to claim 1, characterized in that The step of resolving the resolution request by the intranet domain name resolution server and returning the resolution result to the intranet server includes: If the domain name in the resolution request is an intranet domain name, forwarding the resolution request to the intranet domain name resolution server, and returning the resolution result to the intranet server through the intranet domain name resolution server; If the domain name in the resolution request is an external network domain name, the resolution request is forwarded to the DNS proxy server through the intranet domain name resolution server, and after the DNS proxy server receives the request, it returns a prohibited resolution result to the intranet domain name resolution server, and returns the prohibited resolution result to the intranet server through the intranet domain name resolution server.

4. The method according to claim 1, characterized in that: The resolving request is resolved by the internal and external domain name resolution servers, and the resolution result is returned to the DMZ server, including: If the domain name in the resolution request is an intranet domain name, forward the resolution request to the internal and external domain name resolution servers, and return the resolution result to the intranet server through the internal and external domain name resolution servers; If the domain name in the resolution request is an external domain name, the resolution request is forwarded to the DNS proxy server through the internal and external domain name resolution servers, and after the DNS proxy server receives the request, the request is forwarded to the public network security DNS threat protection platform; If the request is a malicious domain name, the public network security DNS threat protection platform intercepts the request, and the intercepted IP address is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in sequence; If the request is a normal domain name, the request is forwarded to the local operator LocalDNS through the public network security DNS threat protection platform, and the resolution result is obtained through the local operator LocalDNS iterative query, and the resolution result is returned to the DMZ server through the DNS proxy server and the internal and external domain name resolution servers in turn.

5. The method according to claim 2, characterized in that: The target server further includes an intelligent DNS server, and the intelligent DNS servers in a plurality of the target servers form an intelligent DNS cluster, and the method further includes: Responding to the resolution request sent by the intranet server, sending the resolution request to the smart DNS cluster; Based on the RTT proximity algorithm, the resolution request is forwarded to the target intelligent DNS server for resolution, and the intranet server IP address is transparently transmitted to the intelligent DNS cluster through the ECS source count.

6. The method according to claim 5, characterized in that The target smart DNS server is determined based on at least one of distance, load, and operating status.

7. The method according to claim 6, characterized in that The method further comprises: Determining a weight ratio based on the carrying capacity of the multiple target servers; The domain name resolution task amount of each target server in the multiple target servers is determined based on the weight ratio.

8. A domain name resolution device, characterized in that: Applied to a target server, the target server includes an intranet domain name resolution server and an internal and external domain name resolution server, the device includes: A response module, configured to determine, in response to an address resolution request, a sending subject of the resolution request, wherein the sending subject includes an intranet server and a DMZ server; A resolution module is used to resolve the resolution request through the intranet domain name resolution server if the sending entity is the intranet server, and return the resolution result to the intranet server; if the sending entity is the DMZ server, resolve the resolution request through the internal and external domain name resolution servers, and return the resolution result to the DMZ server.

9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the domain name resolution method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the domain name resolution method according to any one of claims 1 to 7 is executed.