DNS resolution method, device, storage medium and electronic device

By aggregating local diagnostic data on the server and dynamically adjusting the DNS configuration content, the existing DNS resolution optimization solutions have solved the risk of hijacking and the inability to update IP in time, and achieved lower network latency and higher network request success rate.

CN119766699APending Publication Date: 2025-04-04HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411956827.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing DNS resolution optimization solution has the risk of being hijacked, and the IP cannot be updated in time to repair the problem of network failure, and the IP access results of the server and client are not necessarily the same, resulting in the IP issued not necessarily the optimal IP.

Method used

By obtaining local diagnostic data reported by each client, the information aggregation analysis is performed to obtain the diagnostic analysis results. Based on this result, the DNS configuration content is dynamically adjusted and returned to the client to determine the IP information to ensure that the client accesses the correct access link.

Benefits of technology

It achieves lower network latency and higher network request success rate, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766699A_ABST
    Figure CN119766699A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of data processing technology, and specifically to a DNS resolution method, a DNS resolution device, a storage medium, and an electronic device. The DNS resolution method is applied to the server, and includes: obtaining local diagnostic data reported by each client; performing information aggregation analysis on the local diagnostic data according to a preset dimension to obtain a diagnostic analysis result; responding to a target interface call request initiated by a target client, obtaining DNS configuration content based on the diagnostic analysis result; returning the DNS configuration content to the target client, so that the target client can resolve the DNS configuration content to determine the IP information. The DNS resolution method disclosed in the present disclosure can bring lower network latency and better network request success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a DNS resolution method, a DNS resolution device, a storage medium, and an electronic device. Background Art

[0002] DNS (Domain Name System) is a service of the Internet. It is a distributed database that maps domain names and IP addresses to each other, making it easier for people to access the Internet. Network requests are resolved by DNS to obtain one or more IP addresses, and then a connection is established through the IP addresses.

[0003] At present, there are two common DNS resolution optimization solutions: client IP tracking and server IP tracking. Client IP tracking means that the client adds or subtracts weights on the IP addresses obtained by DNS resolution, re-sorts them according to the weights, and gives priority to IP addresses with high weights. However, this method has the risk of being hijacked, and when access to IPs fails in a certain area, it will not be possible to update the IP in time and fix the network failure. Server IP tracking means that the server accesses the IP through a self-built DNS resolution server, sets different weights according to the success rate, and re-sorts and issues them according to the weights. Under this method, the result of the server accessing the IP may not be the same as the result of the client accessing the IP, resulting in the IP sent being not necessarily the optimal IP.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a DNS resolution method, a DNS resolution device, a storage medium and an electronic device, aiming to bring lower network latency and better network request success rate.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a DNS resolution method is provided, which is applied to a server, and includes: obtaining local diagnostic data reported by each client; performing information aggregation analysis on the local diagnostic data according to preset dimensions to obtain a diagnostic analysis result; responding to a target interface call request initiated by a target client, obtaining DNS configuration content based on the diagnostic analysis result; and returning the DNS configuration content to the target client, so that the target client parses the DNS configuration content to determine the IP information.

[0008] Optionally, obtaining the DNS configuration content based on the diagnostic analysis result includes: determining abnormal IP information based on the diagnostic analysis result; and removing the abnormal IP information from the initial DNS configuration content as the DNS configuration content.

[0009] Optionally, when the diagnostic analysis result is that the network channel between the operator and the cloud service is abnormal, the DNS configuration content is obtained based on the diagnostic analysis result, including: determining the abnormal operator and abnormal cloud service corresponding to the network channel abnormality based on the diagnostic analysis result, and determining the abnormal IP information corresponding to the abnormal cloud service; removing the abnormal IP information from the initial DNS configuration content corresponding to the abnormal operator as the DNS configuration content.

[0010] Optionally, when the diagnostic analysis result is that the cloud service is abnormal, the DNS configuration content is obtained based on the diagnostic analysis result, including: determining the abnormal cloud service based on the diagnostic analysis result, and determining the abnormal IP information corresponding to the abnormal cloud service; removing the abnormal IP information from the initial DNS configuration content corresponding to each operator as the DNS configuration content.

[0011] According to a second aspect of the present disclosure, a DNS resolution method is provided, which is applied to a client, and includes: performing network diagnosis to obtain local diagnostic data when a network request fails; reporting the local diagnostic data to a server, so that the server performs aggregation analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result; in response to the network request, calling a target interface to obtain DNS configuration content returned by the server based on the diagnostic analysis result; and parsing the DNS configuration content to determine the IP information.

[0012] Optionally, after determining the IP information, the method further includes: sorting each IP address in the IP information based on the local diagnostic data.

[0013] According to a third aspect of the present disclosure, a DNS resolution device is provided, including: an acquisition module, used to acquire local diagnostic data reported by each client; an analysis module, used to perform information aggregation analysis on the local diagnostic data according to preset dimensions to obtain a diagnostic analysis result; a configuration module, used to respond to a target interface call request initiated by a target client, and obtain DNS configuration content based on the diagnostic analysis result; and a return module, used to return the DNS configuration content to the target client, so that the target client determines the IP information according to the DNS configuration content.

[0014] According to a fourth aspect of the present disclosure, a DNS resolution device is provided, comprising: a diagnostic module, used to perform network diagnosis when a network request fails to obtain local diagnostic data; a reporting module, used to report the local diagnostic data to a server, so that the server performs aggregation analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result; a calling module, used to call a target interface in response to a network request to obtain a DNS configuration content returned by the server based on the diagnostic analysis result; and a resolution module, used to parse the DNS configuration content to determine the IP information.

[0015] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the DNS resolution method in the above embodiment is implemented.

[0016] According to a sixth aspect of the present disclosure, an electronic device is provided, characterized in that it includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the DNS resolution method as in the above-mentioned embodiment.

[0017] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0018] In the technical solutions provided by some embodiments of the present disclosure, after pre-collecting the local diagnostic data reported by each client, information aggregation analysis is performed to obtain the diagnostic analysis results, and then when the client performs DNS resolution service, the DNS configuration content sent by the self-built DNS server is obtained through the target interface to obtain the IP information of the specified domain name, and then the client can access the correct access link through the DNS. In this way, the method of dynamically adjusting the network configuration through local network quality diagnosis combined with cloud resolution can bring lower network latency, better network request success rate, and thus better improve the user experience.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1A schematic diagram schematically illustrates a flow chart of a DNS resolution method in an exemplary embodiment of the present disclosure;

[0022] Figure 2 A schematic diagram schematically illustrates a network connection in an exemplary embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram schematically illustrates a method of configuring DNS configuration content when a network channel is abnormal in an exemplary embodiment of the present disclosure;

[0024] Figure 4 A schematic diagram schematically illustrates a method of configuring DNS configuration content when a cloud service is abnormal in an exemplary embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram schematically illustrates a flow chart of another DNS resolution method in an exemplary embodiment of the present disclosure;

[0026] Figure 6 A schematic diagram schematically shows a data flow diagram of a DNS resolution method in an exemplary embodiment of the present disclosure;

[0027] Figure 7 A schematic diagram schematically shows the composition of a DNS resolution device in an exemplary embodiment of the present disclosure;

[0028] Figure 8 A schematic diagram schematically shows the composition of another DNS resolution device in an exemplary embodiment of the present disclosure;

[0029] Fig. 9 A schematic diagram schematically illustrates a computer-readable storage medium in an exemplary embodiment of the present disclosure;

[0030] Fig.10 The structure diagram of a computer system of an electronic device in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.

[0032] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0033] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0034] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0035] Network requests will be resolved by DNS to obtain one or more IP addresses, and then establish a connection through the IP addresses. Currently common DNS resolution optimization solutions are:

[0036] Solution 1: Client IP Ranking: The client adds or subtracts weights on the IP addresses obtained through DNS resolution, reorders them according to weights, and gives priority to IP addresses with higher weights.

[0037] Solution 2: Server-side IP tracking: Use a self-built DNS resolution server to access the IP on the server side, set different weights based on the success rate, and re-sort and distribute them according to the weights.

[0038] Solution 1 has the following problems: the DNS resolution data may come from the system DNS resolution, which may be hijacked, and may cause the interface request to fail or access a malicious website; the client's region and network environment may not be suitable for the current network weight ranking, which may cause the interface request to fail or take a long time to complete; when access IP fails in a certain area, there is a problem that the IP cannot be updated in time to repair the network failure.

[0039] Solution 2 has the following problems: the result of the server accessing the IP may not be the same as the result of the client accessing the IP, resulting in the IP sent being not necessarily the optimal IP; the server network environment is different from the client IP environment, and the IP address that the server can access may not be accessible to the client in a different network environment. For example, when accessing the server room of China Telecom under the Unicom network of the car computer, access failure may occur.

[0040] Therefore, the present disclosure proposes a DNS resolution method to solve one or more of the above problems in order to combine more network feature data of the client in the prior art so that the DNS resolution results can respond to exceptions more quickly and provide better resolution results.

[0041] The implementation details of the technical solution of the embodiment of the present disclosure are elaborated in detail below.

[0042] Figure 1 The following is a schematic diagram showing a flow chart of a DNS resolution method in an exemplary embodiment of the present disclosure. Figure 1 As shown, the DNS resolution method is applied to the server, including steps S101 to S107:

[0043] Step S101, obtaining local diagnostic data reported by each client;

[0044] Step S103, performing information aggregation analysis on the local diagnostic data according to preset dimensions to obtain a diagnostic analysis result;

[0045] Step S105, in response to the target interface call request initiated by the target client, obtaining DNS configuration content based on the diagnostic analysis result;

[0046] Step S107: returning the DNS configuration content to the target client, so that the target client parses the DNS configuration content to determine the IP information.

[0047] In the technical solutions provided by some embodiments of the present disclosure, after pre-collecting the local diagnostic data reported by each client, information aggregation analysis is performed to obtain the diagnostic analysis results, and then when the client performs DNS resolution service, the DNS configuration content sent by the self-built DNS server is obtained through the target interface to obtain the IP information of the specified domain name, and then the client can access the correct access link through the DNS. In this way, the method of dynamically adjusting the network configuration through local network quality diagnosis combined with cloud resolution can bring lower network latency, better network request success rate, and thus better improve the user experience.

[0048] Below, each step of the DNS resolution method in this example implementation will be described in more detail with reference to the accompanying drawings and embodiments.

[0049] In step S101, local diagnostic data reported by each client is obtained.

[0050] Specifically, when a client network request fails, the client performs network diagnosis and reports local diagnostic data to the server after diagnosis.

[0051] In step S103, the local diagnostic data is subjected to information aggregation analysis according to preset dimensions to obtain a diagnostic analysis result.

[0052] Specifically, the server can store local diagnostic data in a database, and then aggregate and analyze the information according to different dimensions to conduct a secondary analysis of what went wrong.

[0053] Figure 2 A schematic diagram schematically shows a network connection in an exemplary embodiment of the present disclosure. Figure 2 As shown in the figure, network connections are roughly divided into network connections between each client (i.e., Actor in the figure, which can also be recorded as a user) and each router, network connections between each router and each operator, and network connections between each operator and each cloud service. That is, the client's access to the cloud service (based on the domain name) may pass through different routers and operators to reach the target server.

[0054] When a client's network request fails, only the problem of the client itself is reported. When the server collects local diagnostic data sent by multiple clients, it can aggregate the diagnostic information, evaluate all problematic nodes, and determine the part of the network where the abnormality occurs. Then, through the DNS distribution, the user end can use the correct access link to improve the user experience.

[0055] Preset dimensions can be pre-configured, such as network channels (which can be broken down into network channels between routers and operators, network channels between operators and cloud services, etc.), clients, routers, operators, cloud services, etc. for aggregate analysis.

[0056] In step S105, in response to the target interface call request initiated by the target client, the DNS configuration content is obtained based on the diagnosis and analysis result.

[0057] When the client initiates a new network connection, the client calls the target interface to obtain the current DNS configuration content, which is obtained based on the diagnostic analysis results.

[0058] In one embodiment of the present disclosure, obtaining the DNS configuration content based on the diagnostic analysis result includes: determining abnormal IP information based on the diagnostic analysis result; and removing the abnormal IP information from the initial DNS configuration content as the DNS configuration content.

[0059] Specifically, when the server can determine the abnormal IP information based on the diagnostic analysis results, it can then remove the abnormal IP information through DNS delivery, allowing the user to use the correct access link, thereby improving the user experience.

[0060] When the diagnostic analysis result is that the network channel between the operator and the cloud service is abnormal, the DNS configuration content is obtained based on the diagnostic analysis result, including: determining the abnormal operator and abnormal cloud service corresponding to the network channel abnormality based on the diagnostic analysis result, and determining the abnormal IP information corresponding to the abnormal cloud service; removing the abnormal IP information from the initial DNS configuration content corresponding to the abnormal operator as the DNS configuration content.

[0061] Figure 3 A schematic diagram of configuring DNS configuration content when a network channel is abnormal in an exemplary embodiment of the present disclosure is schematically shown. Taking the network channel abnormality between the operator and the cloud service as an example, first identify the characteristics, statistically analyze the local diagnostic data of the access abnormality, and identify the abnormal users (i.e., the Actors in the figure) based on the client IP as clients concentrated in the network segment of operator A. Then get the processing strategy, judge that there is an abnormality in the network channel from operator A to cloud service 1, and for the affected users, i.e., users in the network segment of operator A, the DNS service resolution content sent down no longer contains the problematic IP_1.

[0062] When the diagnostic analysis result is that the cloud service is abnormal, the DNS configuration content is obtained based on the diagnostic analysis result, including: determining the abnormal cloud service based on the diagnostic analysis result, and determining the abnormal IP information corresponding to the abnormal cloud service; removing the abnormal IP information from the initial DNS configuration content corresponding to each operator as the DNS configuration content.

[0063] Figure 4 A schematic diagram of configuring DNS configuration content when a cloud service is abnormal in an exemplary embodiment of the present disclosure is schematically shown. Taking cloud service abnormality as an example, first identify the characteristics, statistically analyze the local diagnostic data of the reported access abnormality, and analyze that the abnormal clients generally have the problem of high RT. Based on the user domain name resolution IP, the users (i.e., the Actors in the figure) are all concentrated in the cloud service DNS resolution IP as IP_1. Then get the processing strategy, judge that there is a problem with the cloud service itself, and need to remove its external services. For all users, remove the result of DNS resolution of IP_1, and let users access IP_2.

[0064] Step S107: returning the DNS configuration content to the target client, so that the target client parses the DNS configuration content to determine the IP information.

[0065] Specifically, the server sends DNS configuration content without any abnormality, and returns the DNS configuration content to the client, so that the client can use the correct access link and improve the user experience.

[0066] Figure 5 The flowchart of another DNS resolution method in the exemplary embodiment of the present disclosure is schematically shown. Figure 5 As shown, the DNS resolution method is applied to the client, including steps S501 to S507:

[0067] Step S501, when a network request fails, network diagnosis is performed to obtain local diagnostic data;

[0068] Step S503, reporting the local diagnostic data to the server, so that the server performs aggregate analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result;

[0069] Step S505, in response to the network request, calling the target interface to obtain the DNS configuration content returned by the server based on the diagnosis and analysis result;

[0070] Step S507: parsing the DNS configuration content to determine the IP information.

[0071] Specifically, in step S501, when the client network request fails, network diagnosis is performed to obtain local diagnostic data, such as whether the vehicle computer is connected to the network, the public network IP of the vehicle computer, the target IP of the network request, and Traceroute.

[0072] Among them, car computer refers to the abbreviation of the in-vehicle infotainment product installed in the car. The car computer can functionally realize information communication between people and cars, cars and the outside world, or cars and cars; Traceroute is a network command under the Linux system, which uses the ICMP protocol to locate all router information between the current computer and the target computer.

[0073] In step S505, when the client performs DNS resolution in response to the network request, the DNS configuration content returned by the server is obtained through the target interface during resolution.

[0074] In step S507, the DNS configuration content is parsed to obtain the IP information of the specified domain name.

[0075] In one embodiment of the present disclosure, after determining the IP information, the method further includes: sorting each IP address in the IP information based on the local diagnostic data.

[0076] In one embodiment of the present disclosure, after the anomaly is resolved and restored, active or passive recovery can be adopted. Active means combining the operation and maintenance feedback of the faulty node, and restoring the original DNS configuration after the problem is solved; passive means periodically trying to send configuration to individual users to detect whether the problem has been restored. At this time, it is necessary to cooperate with the user-side application to sniff the abnormal recovery situation.

[0077] Figure 6 The following is a schematic diagram showing the data flow of a DNS resolution method in an exemplary embodiment of the present disclosure. Figure 6 As shown, this solution needs to be processed together with the client and the server.

[0078] On the client side, the client initiates a network request, for example, the vehicle computer initiates a network request, which is resolved through DNS and determines whether the network request is successful. If it is not executed successfully, network diagnosis is performed, and then the diagnostic information is reported to the server for secondary analysis. When the client initiates a network request again, the custom DNS resolution service is used to resolve the network request. During resolution, the self-built DNS server is used to obtain the IP information of the specified domain name through the interface, and the IP is sorted in combination with the local diagnostic results.

[0079] On the server side, the local diagnostic data uploaded by the client is recorded and analyzed, and stored in the database. Information aggregation analysis and optimization are performed according to different dimensions, and finally the DNS configuration content is obtained for the next round of DNS resolution.

[0080] Based on the above method, the method of dynamically adjusting the network configuration through local network quality diagnosis combined with cloud analysis can bring lower network latency and better network request success rate.

[0081] Figure 7 The following is a schematic diagram showing the composition of a DNS resolution device in an exemplary embodiment of the present disclosure. Figure 7 As shown, the DNS resolution device 700 may include an acquisition module 701, an analysis module 702, a configuration module 703 and a return module 704. Among them:

[0082] The acquisition module 701 is used to acquire the local diagnostic data reported by each client;

[0083] An analysis module 702 is used to perform information aggregation analysis on the local diagnostic data according to a preset dimension to obtain a diagnostic analysis result;

[0084] Configuration module 703, used to respond to the target interface call request initiated by the target client and obtain DNS configuration content based on the diagnosis and analysis result;

[0085] The return module 704 is used to return the DNS configuration content to the target client, so that the target client determines the IP information according to the DNS configuration content.

[0086] According to an exemplary embodiment of the present disclosure, the configuration module 703 is used to determine abnormal IP information based on the diagnosis and analysis result; and remove the abnormal IP information from the initial DNS configuration content as the DNS configuration content.

[0087] According to an exemplary embodiment of the present disclosure, the configuration module 703 is also used to determine the abnormal operator and abnormal cloud service corresponding to the network channel abnormality based on the diagnostic analysis result when the diagnostic analysis result is that the network channel between the operator and the cloud service is abnormal, and determine the abnormal IP information corresponding to the abnormal cloud service; remove the abnormal IP information from the initial DNS configuration content corresponding to the abnormal operator as the DNS configuration content.

[0088] According to an exemplary embodiment of the present disclosure, the configuration module 703 is also used to determine the abnormal cloud service based on the diagnostic analysis result and determine the abnormal IP information corresponding to the abnormal cloud service when the diagnostic analysis result is a cloud service abnormality; and remove the abnormal IP information from the initial DNS configuration content corresponding to each operator as the DNS configuration content.

[0089] The specific details of each module in the above-mentioned DNS resolution device 700 have been described in detail in the corresponding DNS resolution method, so they will not be repeated here.

[0090] Figure 8 The following is a schematic diagram showing the composition of another DNS resolution device in an exemplary embodiment of the present disclosure. Figure 8 As shown, the DNS resolution device 800 may include a diagnosis module 801, a reporting module 802, a calling module 803 and a resolution module 804. Among them:

[0091] Diagnostic module 801, used to perform network diagnosis to obtain local diagnostic data when a network request fails;

[0092] The reporting module 802 is used to report the local diagnostic data to the server, so that the server performs an aggregate analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result;

[0093] The calling module 803 is used to call the target interface in response to the network request to obtain the DNS configuration content returned by the server based on the diagnosis and analysis result;

[0094] The parsing module 804 is used to parse the DNS configuration content to determine the IP information.

[0095] According to an exemplary embodiment of the present disclosure, the parsing module 804 is further configured to sort each IP address in the IP information based on the local diagnostic data after the IP information is determined.

[0096] The specific details of each module in the above-mentioned DNS resolution device 800 have been described in detail in the corresponding DNS resolution method, so they will not be repeated here.

[0097] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0098] In an exemplary embodiment of the present disclosure, a storage medium capable of implementing the above method is also provided. Fig. 9 A schematic diagram schematically illustrates a computer-readable storage medium in an exemplary embodiment of the present disclosure, such as Fig. 9 As shown, a program product 900 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a mobile phone. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0099] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. Fig.10 The structure diagram of a computer system of an electronic device in an exemplary embodiment of the present disclosure is schematically shown.

[0100] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0101] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003. Various programs and data required for system operation are also stored in the RAM 1003. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0102] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0103] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present disclosure are executed.

[0104] It should be noted that the computer-readable medium shown in the embodiment of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0105] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0106] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0107] As another aspect, the present disclosure further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0108] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0109] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0111] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A DNS resolution method, characterized in that: Applied to the server, including: Obtain local diagnostic data reported by each client; Performing information aggregation analysis on the local diagnostic data according to preset dimensions to obtain a diagnostic analysis result; In response to a target interface call request initiated by a target client, obtaining DNS configuration content based on the diagnostic analysis result; The DNS configuration content is returned to the target client so that the target client parses the DNS configuration content to determine the IP information.

2. The DNS resolution method according to claim 1, characterized in that: The obtaining of DNS configuration content based on the diagnostic analysis result includes: Determine abnormal IP information based on the diagnostic analysis result; The abnormal IP information is removed from the initial DNS configuration content as the DNS configuration content.

3. The DNS resolution method according to claim 2, characterized in that: When the diagnosis and analysis result is that the network channel between the operator and the cloud service is abnormal, obtaining the DNS configuration content based on the diagnosis and analysis result includes: Determine the abnormal operator and abnormal cloud service corresponding to the network channel abnormality based on the diagnostic analysis result, and determine the abnormal IP information corresponding to the abnormal cloud service; The abnormal IP information is removed from the initial DNS configuration content corresponding to the abnormal operator as the DNS configuration content.

4. The DNS resolution method according to claim 2, characterized in that: When the diagnostic analysis result is that the cloud service is abnormal, obtaining the DNS configuration content based on the diagnostic analysis result includes: Determine an abnormal cloud service based on the diagnostic analysis result, and determine abnormal IP information corresponding to the abnormal cloud service; The abnormal IP information is removed from the initial DNS configuration content corresponding to each operator as the DNS configuration content.

5. A DNS resolution method, characterized in that: Applied to the client, including: Perform network diagnosis to obtain local diagnostic data when a network request fails; Reporting the local diagnostic data to the server, so that the server performs aggregate analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result; In response to the network request, calling the target interface to obtain the DNS configuration content returned by the server based on the diagnostic analysis result; The DNS configuration content is parsed to determine the IP information.

6. The DNS resolution method according to claim 5, characterized in that: After determining the IP information, the method further includes: The IP addresses in the IP information are sorted based on the local diagnostic data.

7. A DNS resolution device, characterized in that: include: An acquisition module is used to acquire local diagnostic data reported by each client; An analysis module, used to perform information aggregation analysis on the local diagnostic data according to preset dimensions to obtain a diagnostic analysis result; A configuration module, configured to respond to a target interface call request initiated by a target client and obtain DNS configuration content based on the diagnostic analysis result; The return module is used to return the DNS configuration content to the target client, so that the target client determines the IP information according to the DNS configuration content.

8. A DNS resolution device, characterized in that: include: A diagnostic module, used to perform network diagnosis and obtain local diagnostic data when a network request fails; A reporting module, used to report the local diagnostic data to the server, so that the server performs aggregate analysis based on the local diagnostic data reported by each client to obtain a diagnostic analysis result; A calling module, used for calling a target interface in response to a network request to obtain the DNS configuration content returned by the server based on the diagnostic analysis result; The parsing module is used to parse the DNS configuration content to determine the IP information.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the DNS resolution method according to any one of claims 1 to 6 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the DNS resolution method according to any one of claims 1 to 6.