A method, system, and medium for dynamic perception of DNS service availability

CN121711389BActive Publication Date: 2026-08-11E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]现有的DNS服务监测技术中,本地或递归DNS服务器的缓存可能导致监控结果延迟,无法立即反映DNS记录的变更或故障,通过终端侧进行DNS可用性探测时,存在受本地DNS缓存干扰以及无法真实反映目标DNS服务器实时状态的结果失真的问题

Benefits of technology

[0006]为了克服现有技术所存在的上述缺陷,本发明提供了一种DNS服务可用性的动态感知方法、一种DNS服务可用性的动态感知系统,以及一种计算机可读存储介质,能够提供一种DNS去缓存化的主动探测架构,通过独立探针、非缓存化请求、协议直通和多维验证的技术路线,彻底摆脱对系统DNS缓存和API的依赖,确保探测结果的真实性和准确性,为通过终端设备探测DNS服务可用性提供技术参考。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121711389B_ABST
    Figure CN121711389B_ABST
Patent Text Reader

Abstract

This invention provides a dynamic method for sensing DNS service availability, a dynamic system for sensing DNS service availability, and a computer-readable storage medium. The dynamic method for sensing DNS service availability includes the following steps: in response to receiving a probe command, generating a test domain name via a cache-immune independent probe module, wherein the cache-immune independent probe module is isolated from the terminal's local DNS cache, and the test domain name is generated based on a time entropy factor; generating an uncached probe request based on the test domain name and sending the uncached probe request to a specified IP address and a specified port of the target DNS server; listening to DNS response messages on the specified port to capture and verify the DNS response messages; and performing an availability assessment of the target DNS server based on the verification results of the DNS response messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communications, and more particularly to a dynamic sensing method for DNS service availability, a dynamic sensing system for DNS service availability, and a computer-readable storage medium. Background Technology

[0002] DNS (Domain Name System) caching is a technical mechanism that temporarily stores the correspondence between domain names and IP addresses. When a user visits a website for the first time, the operating system saves the resolution result on the local terminal or network device. When accessing the same domain name again, the IP address can be obtained directly from the DNS cache, thereby reducing repeated queries, improving access speed, and reducing server load.

[0003] In existing DNS service monitoring technologies, caching of local or recursive DNS servers may cause delays in monitoring results, failing to immediately reflect changes or failures in DNS records. When performing DNS availability probing on the terminal side, there are problems such as interference from local DNS caching and distortion of results that cannot accurately reflect the real-time status of the target DNS server.

[0004] To overcome the aforementioned shortcomings of existing technologies, there is an urgent need in this field for a dynamic sensing method for DNS service availability that can provide a proactive probing architecture for DNS decaching, completely eliminating dependence on system DNS caches and APIs, ensuring the authenticity and accuracy of the probing results, and providing a technical reference for probing DNS service availability through terminal devices. Summary of the Invention

[0005] The following provides a brief overview of one or more aspects to offer a basic understanding of them. This overview is not an exhaustive summary of all conceived aspects, nor is it intended to identify key or decisive elements of all aspects, nor to define the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed descriptions that follow.

[0006] To overcome the aforementioned deficiencies in existing technologies, this invention provides a dynamic sensing method for DNS service availability, a dynamic sensing system for DNS service availability, and a computer-readable storage medium. It offers a proactive DNS decaching architecture, employing independent probes, decached requests, protocol passthrough, and multi-dimensional verification to completely eliminate reliance on system DNS caching and APIs, ensuring the authenticity and accuracy of the detection results. This provides a technical reference for detecting DNS service availability through terminal devices.

[0007] Specifically, the dynamic perception method for DNS service availability provided by the first aspect of the present invention includes the following steps: in response to the acquisition of a probe command, generating a test domain name via a cache-immune independent probe module, wherein the cache-immune independent probe module is isolated from the terminal's local DNS cache, and the test domain name is generated based on a time entropy factor; generating an uncached probe request based on the test domain name, and sending the uncached probe request to a specified IP address and a specified port of the target DNS server; listening to DNS response messages on the specified port to capture and verify the DNS response messages; and performing an availability assessment of the target DNS server based on the verification results of the DNS response messages.

[0008] Furthermore, in some embodiments of the present invention, the step of generating the test domain name includes: dynamically generating the test domain name by introducing a timestamp and a random suffix.

[0009] Furthermore, in some embodiments of the present invention, the step of generating an uncached probe request based on the test domain name and sending the uncached probe request to a specified IP and a specified port of the target DNS server includes: directly constructing a standard-compliant DNS request message as the uncached probe request using an underlying network socket, the DNS request message including the test domain name; and encapsulating the uncached probe request in the IP layer and sending it directly to the specified IP and a specified port of the target DNS server.

[0010] Furthermore, in some embodiments of the present invention, the step of monitoring DNS response messages on the designated port includes: enabling a timer to monitor DNS response messages on the designated port to achieve millisecond-level response time measurement of the DNS response messages.

[0011] Furthermore, in some embodiments of the present invention, the step of verifying the DNS response message includes: performing multi-dimensional verification on the DNS response message, wherein the multi-dimensional verification includes transaction ID consistency verification, response code validity judgment, message structure integrity verification and / or response time measurement.

[0012] Furthermore, in some embodiments of the present invention, the step of performing availability assessment of the target DNS server based on the verification result of the DNS response message includes: generating a performance assessment report of the target DNS server based on the verification result of the DNS response message.

[0013] Furthermore, in some embodiments of the present invention, the step of assessing the availability of the target DNS server based on the verification result of the DNS response message includes: if a valid DNS response message is received within a preset timeout window, determining that the target DNS server is available; and if no DNS response message is received within the preset timeout window or an invalid DNS response message is received within the preset timeout window, determining that the target DNS server is unavailable.

[0014] Furthermore, the dynamic DNS service availability sensing system provided according to the second aspect of the present invention includes a memory and a processor. The memory stores computer instructions. The processor is connected to the memory and configured to execute the computer instructions stored in the memory to implement the dynamic DNS service availability sensing method provided in any of the above embodiments.

[0015] Furthermore, in some embodiments of the present invention, the dynamic perception system for DNS service availability provided in the second aspect of the present invention further includes: a cache-immune independent probe module, which is isolated from the terminal's local DNS cache and is configured to receive probe instructions and generate a test domain name based on a time entropy factor; an uncached probe request generation module, which is configured to generate an uncached probe request based on the test domain name and send the uncached probe request to a specified IP address and a specified port of the target DNS server; a DNS response message capture and verification module, which is configured to listen to DNS response messages on the specified port to capture and verify the DNS response messages; and an availability evaluation module, which is configured to perform an availability evaluation of the target DNS server based on the verification results of the DNS response messages.

[0016] Furthermore, the computer-readable storage medium provided according to the third aspect of the present invention stores computer instructions. When the computer instructions are executed by a processor, the dynamic awareness method for DNS service availability provided in the first aspect of the present invention is implemented. Attached Figure Description

[0017] The above-described features and advantages of the present invention will be better understood after reading the following detailed description of embodiments of the present disclosure in conjunction with the accompanying drawings. In the drawings, components are not necessarily drawn to scale, and components having similar related characteristics or features may have the same or similar reference numerals.

[0018] Figure 1 The diagram illustrates application scenarios provided by some embodiments of the present invention;

[0019] Figure 2 A schematic diagram of a dynamic sensing system for DNS service availability provided according to some embodiments of the present invention is shown;

[0020] Figure 3 A schematic diagram of the structure of a dynamic sensing system for DNS service availability provided according to some embodiments of the present invention is shown;

[0021] Figure 4 A flowchart is shown of a dynamic awareness method for DNS service availability provided according to some embodiments of the present invention; and

[0022] Figure 5 A flowchart illustrating the structure of a dynamic awareness system based on DNS service availability provided according to some embodiments of the present invention is shown.

[0023] Figure label:

[0024] 10: Server;

[0025] 20: User terminal;

[0026] 30: Internet;

[0027] 200: Dynamically detectable DNS service availability;

[0028] 210: Memory;

[0029] 211: Computer-readable storage medium;

[0030] 220: Processor;

[0031] 300: Dynamic Sensing System;

[0032] 310: Cache-controlled immune independent probe module;

[0033] 320: Uncached probe request generation module;

[0034] 330: DNS response message capture and verification module;

[0035] 340: Usability assessment module; and

[0036] S410~S440: Steps. Detailed Implementation

[0037] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Although the description of the present invention is presented in conjunction with preferred embodiments, this does not mean that the features of the invention are limited to these embodiments. On the contrary, the purpose of describing the invention in conjunction with embodiments is to cover other options or modifications that may be derived based on the claims of the present invention. To provide a thorough understanding of the invention, many specific details will be included in the following description. The invention may also be implemented without using these details. Furthermore, to avoid confusion or obscuring the focus of the invention, some specific details will be omitted in the description.

[0038] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0039] Furthermore, the terms "upper," "lower," "left," "right," "top," "bottom," "horizontal," and "vertical" used in the following description should be understood as the orientations shown in the relevant paragraphs and accompanying drawings. These relative terms are for illustrative purposes only and do not imply that the described apparatus must be manufactured or operated in a specific orientation, and therefore should not be construed as limiting the invention.

[0040] It is understood that although terms such as "first," "second," and "third" may be used herein to describe various components, regions, layers, and / or parts, these components, regions, layers, and / or parts should not be limited by these terms, and these terms are only used to distinguish different components, regions, layers, and / or parts. Therefore, the first components, regions, layers, and / or parts discussed below may be referred to as second components, regions, layers, and / or parts without departing from some embodiments of the present invention.

[0041] As mentioned above, in existing DNS service monitoring technologies, caching of local or recursive DNS servers may cause delays in monitoring results, failing to immediately reflect changes or failures in DNS records. When performing DNS availability probing on the terminal side, there are problems such as interference from local DNS caching and distortion of results that cannot truly reflect the real-time status of the target DNS server.

[0042] To overcome the aforementioned deficiencies in existing technologies, this invention provides a dynamic sensing method for DNS service availability, a dynamic sensing system for DNS service availability, and a computer-readable storage medium. It offers a proactive DNS decaching architecture, employing independent probes, decached requests, protocol passthrough, and multi-dimensional verification to completely eliminate reliance on system DNS caching and APIs, ensuring the authenticity and accuracy of the detection results. This provides a technical reference for detecting DNS service availability through terminal devices.

[0043] Please refer to the following first. Figure 1 , Figure 1 The diagram illustrates application scenarios provided by some embodiments of the present invention.

[0044] Figure 1 The server 10, network 30, and user terminal 20 shown are merely illustrative. Depending on implementation needs, any number of servers, networks, and user terminals can be included. Figure 1 In the illustrated embodiment, the dynamic awareness system for DNS service availability provided in the second aspect of the present invention can be configured to... Figure 1 In the user terminal 20 shown, the user terminal 20 is connected to the DNS server 10 via the network 30.

[0045] The dynamic sensing method for DNS service availability provided in the first aspect of the present invention can be implemented via the dynamic sensing system for DNS service availability provided in the second aspect of the present invention.

[0046] Please refer to Figure 2 , Figure 2 A schematic diagram of a dynamic sensing system for DNS service availability provided according to some embodiments of the present invention is shown.

[0047] like Figure 2 As shown, the dynamic DNS service availability sensing system 200 may be configured with a memory 210 and a processor 220. The memory 210 includes, but is not limited to, the computer-readable storage medium 211 described in the third aspect of the present invention, which stores computer instructions thereon. The processor 220 is connected to the memory 210 and configured to execute the computer instructions stored in the memory 210 to implement the dynamic DNS service availability sensing method provided in the first aspect of the present invention.

[0048] In some embodiments, the dynamic DNS service availability awareness system provided by the present invention may also include multiple program modules. Program modules may be stored in memory. Program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data; each or some combination of these examples may include an implementation of a network environment. Program modules are generally used to perform the functions and / or methods described in the embodiments of the present invention.

[0049] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a dynamic sensing system for DNS service availability provided according to some embodiments of the present invention is shown.

[0050] like Figure 3 As shown, the dynamic sensing system 300 for DNS service availability may include a cache-immune independent probe module 310, an uncached probe request generation module 320, a DNS response message capture and verification module 330, and an availability assessment module 340.

[0051] The working principle of the aforementioned dynamic DNS service availability sensing system 200 will be described below with reference to embodiments of some dynamic DNS service availability sensing methods. Those skilled in the art will understand that these embodiments of dynamic DNS service availability sensing methods are merely non-limiting implementations provided by the present invention, intended to clearly demonstrate the main concepts of the invention and provide specific solutions convenient for public implementation, rather than limiting all functions or all working methods of the dynamic DNS service availability sensing system 200. Similarly, the dynamic DNS service availability sensing system 200 is also only a non-limiting implementation provided by the present invention, and does not constitute a limitation on the executing entity and execution order of the steps in these dynamic DNS service availability sensing methods.

[0052] Please refer to Figure 4 and Figure 5 , Figure 4 A flowchart is shown below illustrating a method for dynamically sensing DNS service availability according to some embodiments of the present invention. Figure 5 A flowchart illustrating the structure of a dynamic awareness system based on DNS service availability provided according to some embodiments of the present invention is shown.

[0053] The following will combine Figures 3 to 5 The principles and implementation of this invention are described in detail.

[0054] like Figure 4As shown, the dynamic sensing system for DNS service availability can first execute step S410: in response to the acquisition of the probe command, a test domain name is generated via the cache-immune independent probe module. The cache-immune independent probe module is isolated from the terminal's local DNS cache, and the test domain name is generated based on the time entropy factor.

[0055] like Figure 3 and Figure 5 As shown, the cache-immune independent probe module 310 of the dynamic perception system 300 can receive probe task instructions. In response to the acquisition of the probe instructions, the cache-immune independent probe module 310 can generate a test domain name and pass the test domain name to the non-cached probe request generation module 320.

[0056] The dynamic sensing system 300 can Figure 1 The user terminal 200 shown integrates an independent probe module 310, which is completely decoupled from the operating system's DNS client. This cache-immune independent probe module 310 is an independent plugin capable of simulating internet service access and automatically collecting data. It has its own DNS protocol stack implementation capabilities and does not call standard resolution interfaces in the operating system such as gethostbyname and res_query, thereby achieving logical isolation and physical bypass of the terminal's local DNS cache.

[0057] After receiving the instructions for the probe task, the cache-immune independent probe module 310 dynamically generates a test domain name with "cache-immune characteristics", that is, a non-cached domain name.

[0058] The test domain name is generated based on the time entropy factor. The time entropy factor represents the relationship between entropy and time in the evolution from order to disorder. The test domain name is dynamically generated by combining the time entropy factor and random suffix content. In some embodiments, the cache-immune independent probe module 310 can introduce a timestamp (<unix_timestamp> ) and random suffix (<random_suffix> This can be used to dynamically generate test domain names (such as "probe_1727000000.abc123.dns-test.net").

[0059] The test domain name generated based on the time entropy factor can ensure that the test domain name is almost impossible to exist in the local DNS cache and the public DNS cache, so that the probability of the test domain name being hit in the local DNS cache and the public DNS cache is extremely low, eliminating the possibility of cache back to origin.

[0060] Thus, the cache-immune independent probe module 310 of the present invention, and the dynamic non-cached domain name generated by the cache-immune independent probe module 310 using the time entropy factor and random suffix, realize the decaching mechanism.

[0061] After the cache-immune independent probe module 310 generates the test domain name, it can pass the test domain name to the non-cached probe request generation module 320.

[0062] The uncached probe request generation module 320 continues to execute step S420: generate an uncached probe request based on the test domain name, and send the uncached probe request to the specified IP and specified port of the target DNS server.

[0063] Specifically, the uncached probe request generation module 320 can directly construct a standard-compliant DNS request message as an uncached probe request using the underlying network socket. Here, the DNS request message includes the test domain name. In some embodiments, the DNS request message conforms to the RFC 1035 standard and supports the UDP / TCP protocol.

[0064] Preferably, the uncached probe request generation module 320 can be configured with APM (Application Performance Monitoring Software), and the uncached probe request generation module 320 can use APM to construct DNS request messages.

[0065] Then, the uncached probe request generation module 320 can encapsulate the uncached probe request in the IP layer and send it directly to the specified IP and specified port (usually port 53) of the target DNS server, thereby realizing "direct writing" of the DNS protocol, completely bypassing the DNS processing logic of the operating system network stack, and realizing protocol layer pass-through.

[0066] Thus, through the independent probe and protocol direct writing technology provided by the dynamic perception system 300, this invention can completely eliminate the pollution of the detection results by the local DNS cache, ensure the authenticity and credibility of the evaluation results, and achieve cache-immune detection.

[0067] Subsequently, the DNS response message capture and verification module 330 of the dynamic sensing system 300 can perform step S430: listen to the DNS response messages on the specified port to capture and verify the DNS response messages.

[0068] Here, the DNS response message capture and verification module 330 can be a time-sensitive DNS response message capture and verification module.

[0069] The DNS response message capture and verification module 330 can enable a high-precision timer to listen to DNS response messages on a specified port to achieve millisecond-level response time (RTT, Round-Trip Time) measurement of DNS response messages.

[0070] Furthermore, the DNS response message capture and verification module 330 can perform multi-dimensional verification on the received DNS response messages. Multi-dimensional verification may include transaction ID consistency verification, response code (RCode) validity judgment, message structure integrity verification, and / or response time (RTT) measurement.

[0071] The DNS response message capture and verification module 330 can generate a verification result for the DNS response message and send the verification result to the availability assessment module 340.

[0072] Then, the availability assessment module 340 of the dynamic perception system 300 performs step S440: assessing the availability of the target DNS server based on the verification results of the DNS response message.

[0073] In some embodiments, the availability assessment module 340 can generate a performance assessment report for the target DNS server based on the verification results of the DNS response messages.

[0074] The availability assessment module 340 can also determine whether the target DNS server is available based on whether a timeout has occurred and whether the response is valid.

[0075] For example, when the verification result received by the availability assessment module 340 indicates that a valid DNS response message was received within a preset timeout window (such as 3 seconds), the availability assessment module 340 can determine that the target DNS server is available.

[0076] Accordingly, if the verification result received by the availability assessment module 340 indicates that no DNS response message was received within the preset timeout window or an invalid DNS response message was received within the preset timeout window, it means that the target DNS server is unreachable, and the availability assessment module 340 can determine that the target DNS server is unavailable.

[0077] The DNS response message capture and verification module 330 of the dynamic sensing system 300 supports millisecond-level RTT measurement and multi-dimensional response verification, thereby improving the diagnostic accuracy of the dynamic sensing system 300. Based on the multi-dimensional verification results, the availability assessment module 340 of the dynamic sensing system 300 can achieve a comprehensive and refined assessment from whether the DNS server is available to the performance of the DNS server.

[0078] In summary, the dynamic sensing method and system for DNS service availability provided by this invention can eliminate the impact of DNS caching, reflect the normal availability of DNS server services in real time and effectively, without relying on external services or privileged operations, and can complete highly reliable detection under normal permissions, making it suitable for terminal devices.

[0079] Furthermore, in large-scale DNS centralized monitoring scenarios, such as centralized monitoring of operator DNS services or commercial DNS service availability by terminal devices, existing technologies using the `flushdns` command directly clear the entire DNS cache, causing data acquisition platforms that rely on domain name connections to interrupt data acquisition. This invention employs a separate decaching module to accurately clear the target cache while ensuring the normal operation of other services. Moreover, this invention can promptly detect DNS service anomalies, improving user experience.

[0080] Although the methods described above are illustrated and depicted as a series of actions for the sake of simplicity, it should be understood and appreciated that these methods are not limited by the order of the actions, as some actions may occur in a different order and / or concurrently with other actions from the illustrations and descriptions herein or not illustrated and described herein but which may be understood by those skilled in the art, according to one or more embodiments.

[0081] Those skilled in the art will understand that information, signals, and data can be represented using any of a variety of different techniques and skills. For example, the data, instructions, commands, information, signals, bits, symbols, and chips described throughout the above description can be represented by voltage, current, electromagnetic waves, magnetic fields or magnetic particles, light fields or optical particles, or any combination thereof.

[0082] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps are described above in a generalized manner in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in different ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the invention.

[0083] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. The general-purpose processor may be a microprocessor, but in alternatives, it may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration.

[0084] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. The software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor such that the processor can read and write information to / from the storage medium. In an alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal.

[0085] In one or more exemplary embodiments, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functionality may be stored or transmitted as one or more instructions or code on or through a computer-readable medium. A computer-readable medium includes both computer storage media and communication media, encompassing any medium that facilitates the transfer of a computer program from one location to another. A storage medium may be any available medium accessible to a computer. By way of example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and is accessible to a computer. Any connection is also legitimately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of a medium. As used in this article, disk and disc include compact discs (CDs), laser discs, optical discs, digital multi-purpose discs (DVDs), floppy disks, and Blu-ray discs. Disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of these should also be included within the scope of computer-readable media.

[0086] The prior description of this disclosure is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not intended to be limited to the examples and designs described herein, but should be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A dynamic method for sensing DNS service availability, characterized in that, Including the following steps: In response to the acquisition of the probe command, a test domain name is generated via a cache-immune independent probe module. The cache-immune independent probe module is isolated from the terminal's local DNS cache. The test domain name is generated based on a time entropy factor, wherein the generation of the test domain name based on the time entropy factor includes introducing a timestamp and a random suffix to dynamically generate the test domain name. An uncached probe request is generated based on the test domain name, and the uncached probe request is sent to the specified IP and specified port of the target DNS server; Listening to DNS response messages on the specified port to capture and verify the DNS response messages, wherein the steps for verifying the DNS response messages include: performing multi-dimensional verification on the DNS response messages, the multi-dimensional verification including transaction ID consistency verification, response code validity judgment, message structure integrity verification, and response time measurement; and The availability of the target DNS server is evaluated based on the verification result of the DNS response message, including determining whether the target DNS server is available based on whether the DNS response message has timed out and whether the response is valid as indicated in the verification result.

2. The dynamic availability sensing method for DNS services as described in claim 1, characterized in that, The steps for generating the test domain name include: The test domain name is dynamically generated by introducing a timestamp and a random suffix.

3. The dynamic availability sensing method for DNS services as described in claim 1, characterized in that, The step of generating an uncached probe request based on the test domain name and sending the uncached probe request to the specified IP and specified port of the target DNS server includes: The uncached probe request is constructed directly using the underlying network socket and includes the test domain name; The uncached probe request is encapsulated in the IP layer and sent directly to the specified IP and port of the target DNS server.

4. The dynamic availability sensing method for DNS services as described in claim 1, characterized in that, The steps of listening to DNS response messages on the specified port include: Enable a timer to listen for DNS response messages on the specified port to achieve millisecond-level response time measurement for the DNS response messages.

5. The dynamic awareness method for DNS service availability as described in claim 1, characterized in that, The step of assessing the availability of the target DNS server based on the verification result of the DNS response message includes: A performance evaluation report for the target DNS server is generated based on the verification results of the DNS response message.

6. The dynamic awareness method for DNS service availability as described in claim 1, characterized in that, The step of assessing the availability of the target DNS server based on the verification result of the DNS response message includes: If a valid DNS response message is received within the preset timeout window, the target DNS server is determined to be available. If no DNS response message is received within the preset timeout window, or if an invalid DNS response message is received within the preset timeout window, the target DNS server is determined to be unavailable.

7. A dynamic availability sensing system for DNS services, characterized in that, include: Memory, on which computer instructions are stored; as well as A processor, connected to the memory, and configured to execute computer instructions stored on the memory to implement the dynamic awareness method for DNS service availability as described in any one of claims 1 to 6.

8. The dynamic awareness system for DNS service availability as described in claim 7, characterized in that, Also includes: A cache-immune independent probe module, which is isolated from the terminal's local DNS cache, is configured to receive probe commands and generate test domain names based on a time entropy factor. An uncached probe request generation module is configured to generate an uncached probe request based on the test domain name and send the uncached probe request to a specified IP and a specified port of the target DNS server. The DNS response message capture and verification module is configured to listen to DNS response messages on the specified port to capture and verify the DNS response messages. as well as Availability assessment module, configured to perform availability assessment on the target DNS server based on the verification results of the DNS response message.

9. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the computer instructions are executed by the processor, the dynamic awareness method for DNS service availability as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Monitoring method and device of DNS server

    CN106789422A

  • Selecting a network service for communicating with a server

    US8407471B1