CN113938461B - Domain name cache analysis query method, device, equipment and storage medium - Google Patents

Domain name cache analysis query method, device, equipment and storage medium Download PDF

Info

Publication number
CN113938461B
CN113938461B CN202010663504.7A CN202010663504A CN113938461B CN 113938461 B CN113938461 B CN 113938461B CN 202010663504 A CN202010663504 A CN 202010663504A CN 113938461 B CN113938461 B CN 113938461B
Authority
CN
China
Prior art keywords
domain name
cache
query
address information
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010663504.7A
Other languages
Chinese (zh)
Other versions
CN113938461A (en
Inventor
许昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010663504.7A priority Critical patent/CN113938461B/en
Publication of CN113938461A publication Critical patent/CN113938461A/en
Application granted granted Critical
Publication of CN113938461B publication Critical patent/CN113938461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention relates to the technical field of domain name resolution and domain name server cache management, and discloses a domain name cache resolution query method, device, equipment and storage medium, wherein the method comprises the following steps: receiving a domain name resolution query request sent by a client; searching ns resource records of a plurality of cache types according to a preset priority to acquire a query result corresponding to the analysis query request; when the query result is abnormal, a first alarm prompt is sent; and when the query result is normal, sending ns resource records corresponding to the query result to the client. By means of the method, the device and the system for updating the ns resource record configuration, the efficiency of the ns resource record configuration update can be improved, the influence time of ns resource record configuration errors is shortened, and the problem that analysis of the whole area fails due to the fact that the ns resource record configuration of an authoritative server is wrong is effectively reduced.

Description

Domain name cache analysis query method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of domain name resolution and domain name server cache management, in particular to a domain name cache resolution query method, a device, equipment and a storage medium.
Background
The prior domain name caching and resolving mechanism mainly caches the query result into a local domain name server (Domain Name Server, DNS) after recursive query or iterative query, and when a client sends a domain name resolving request, if the local DNS server has a cache record of the domain name, the recursive query or iterative query is not performed any more, and the resource record information cached by the local DNS server is directly called. Among them, there are two cases where the local DNS server caches ns (address information of domain name server) resource record type information: one is ns stored in the ns resource record type in the authoritative zone; the other is ns stored in the ns resource record type as ns in the parent region. In the caching mechanism, the ns resource record of the default authoritative zone is higher in priority than the ns resource record in the parent zone, so that when the ns resource record of the authoritative zone exists, the ns resource record of the parent zone is automatically covered. At this time, the local DNS server can only send a domain name resolution query request according to the server pointed to by the authoritative zone ns resource record information.
The domain name cache resolution mechanism has the following defects: when ns resource records in an authoritative server of an authoritative zone are improperly configured, and ns resource records in a father zone are properly configured, because the priority of ns in the authoritative zone is higher than that of ns authorized for the authoritative zone in the father zone, the correct ns resource records in the father zone can be covered by the wrong ns resource records in the authoritative server. When the local DNS server receives the domain name resolution query request, the ns resource record type of the authoritative server is preferentially queried, so that domain name resolution failure of the whole area is caused. Further, when authoritative zone migration is performed, a new ns resource record may be improperly configured, thereby causing domain name resolution failure of the whole area. In addition, when the two conditions occur, the current caching mechanism cannot provide a prompt of improper ns configuration in time, so that ns resource record information cannot be updated in time. In the prior art, when ns resource record configuration is improper, the configuration is generally changed, and the waiting for the wrong cache to expire and other inefficient updating modes is easy to cause long influence time, so that service unavailability is caused.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a domain name cache analysis query method, device, apparatus, and storage medium, which are used to solve the problem in the prior art that when ns resource records are configured improperly, by changing the configuration, waiting for an inefficient update mode such as expiration of an erroneous cache, the influence time is long, which is easy to cause, so that service is not available.
According to an aspect of an embodiment of the present invention, there is provided a domain name cache resolution query method, including: receiving a domain name resolution query request sent by a client; searching ns resource records of a plurality of cache types according to a preset priority to acquire a query result corresponding to the analysis query request; when the query result is abnormal, a first alarm prompt is sent; and when the query result is normal, sending ns resource records corresponding to the query result to the client.
In an alternative manner, the preset priorities include a preset type priority and a preset sort priority.
In an optional manner, the step of searching ns resource records of a plurality of cache types according to a preset priority to obtain a query result corresponding to the parsing query request includes: searching ns resource records of the same cache type from ns resource records of the plurality of cache types according to a preset type priority; searching a query result corresponding to the analysis query request in the ns resource records of the same cache type according to a preset sequencing priority.
In an optional manner, the method for setting the sorting priority includes: sending a detection request to the NS resource records of the same cache type; if a feedback result of the detection request is received, generating the sorting priority according to the query round trip time of the ns resource record; and if the feedback result of the detection request is not received, a second alarm prompt is sent out.
In an optional manner, the method for setting the sorting priority includes: acquiring the historical change time of ns resource records of the same cache type; and generating the sorting priority according to the historical change time.
In an alternative approach, the query round trip time is inversely proportional to the ranking priority.
In an alternative manner, the NS resource records of the plurality of cache types include NS cache types, PNS cache types and HNS cache types with the type priorities ordered sequentially from high to low
According to another aspect of the embodiment of the present invention, there is provided a domain name cache resolution query apparatus, including: the receiving module is used for receiving a domain name resolution query request sent by the client; the searching module is used for searching ns resource records of a plurality of cache types according to a preset priority level so as to acquire a query result corresponding to the analysis query request; the alarm module is used for sending out a first alarm prompt when the query result is abnormal; and the sending module is used for sending ns resource records corresponding to the query result to the client when the query result is normal.
According to another aspect of the embodiment of the present invention, there is provided a domain name cache resolution query device, including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the domain name cache resolution query method according to any one of the preceding claims.
According to yet another aspect of an embodiment of the present invention, there is provided a computer readable storage medium having stored therein at least one executable instruction that, when executed on a domain name cache resolution query device/apparatus, causes the domain name cache resolution query device/apparatus to perform the operations of the domain name cache resolution query method as set forth in any one of the above.
According to the embodiment of the invention, the multistage ns caching mechanism and the alarm prompting mechanism are set, and the ns resource record selection mechanism is set according to the priority, so that the efficiency of ns resource record configuration updating is improved, the influence time of ns resource record configuration errors is shortened, and the occurrence of the condition that the analysis of the whole area fails due to the fact that the authoritative server ns resource record configuration is wrong can be effectively reduced.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 illustrates a schematic diagram of one embodiment of a domain name resolution query system of the present invention;
FIG. 2 is a flow chart of an embodiment of a domain name cache resolution method of the present invention;
FIG. 3 shows a schematic flow chart of an embodiment of step 200 of the present invention;
FIG. 4 is a flow chart of a first embodiment of the method for prioritizing placement in step 220 of the present invention;
FIG. 5 is a flow chart of a second embodiment of the method for prioritizing placement in step 220 of the present invention;
FIG. 6 is a schematic diagram of an embodiment of a domain name resolution query device according to the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a domain name cache resolution query device according to the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an embodiment of a domain name resolution query system according to the present invention, as shown in fig. 1, where the domain name resolution query system provided in the present invention includes a client 1, a first DNS server 2, and a second DNS server 3. Among them, the DNS server (Domain Name Server ) is a server that performs conversion of a domain name (domain name) and an IP address (IP address) corresponding thereto, and the first DNS server 2 is a local DNS server. Optionally, in the present invention, the client 1 initiates a domain name resolution query request to the first DNS server 2, the first DNS server 2 receives the domain name resolution query request, searches for the second DNS server 3 corresponding to the domain name resolution request of the client 1 in the NS resource record, and feeds back the domain name resolution query result to the client 1 after the domain name resolution query is completed through the second DNS server 3. It can be understood that the specific implementation manner of the embodiments of the present invention is based on the domain name resolution query system described above.
With further reference to fig. 2, fig. 2 shows a flow chart of an embodiment of the domain name cache resolution method of the present invention, which is performed by a local DNS server. The domain name cache analysis query method of the invention comprises the following steps:
step 100, receiving a domain name resolution query request sent by a client.
Step 200, searching ns resource records of a plurality of cache types according to a preset priority to obtain a query result corresponding to the analysis query request.
Optionally, the preset priority in the present invention includes a preset type priority and a preset sorting priority.
Referring to fig. 3, fig. 3 is a flowchart illustrating an embodiment of the step 200 of the present invention, where the step 200 of fig. 3 further includes the following sub-steps:
step 210, searching ns resource records of the same cache type from ns resource records of a plurality of cache types according to the preset type priority.
Optionally, the invention presets a three-level ns caching mechanism. Specifically, for the ns resource record cached in each zone, the ns resource record is divided into three levels of ns resource records. The first level is NS resource records of an authoritative zone, and if NS resource records on different servers in the same authoritative zone are inconsistent, NS resource records in different servers are combined first and then cached as an NS cache type. And the second level is ns resource records authorized to the authoritative zone in the father zone, and the ns resource records are cached as PNS cache types. And thirdly, the ns resource record of the history change is cached as an HNS cache type after the ns resource record type of the authoritative zone or the father zone is changed. The three types of cache types are NS cache type, PNS cache type and HNS cache type in sequence from high to low.
Further, when the first DNS server 2 receives the domain name resolution query request sent by the client 1, it needs to select according to the type priorities of the above three cache types. Specifically, firstly, selecting a cache type of ns resource records according to the type priority of the ns resource records, and selecting ns resource records in a next-highest priority class when no ns resource records are available in the cache type of the high priority. Specifically, in the embodiment of the present invention, when the first DNS server 2 receives the domain name resolution query request sent by the client 1, it first searches whether there is a cache type corresponding to the resolution query request in the NS cache type with the highest priority, if there is no cache type in the NS cache type, it searches in the PNS cache type with the next highest priority, and similarly, if there is no cache type in the PNS cache type, it searches in the HNS cache type with the lowest priority.
Step 220, searching the query result corresponding to the analysis query request in the ns resource records of the same cache type according to the preset sorting priority.
Specifically, when the NS cache type is searched preferentially according to the type priority in step S210, the query result corresponding to the resolved query request is searched in the resource record of the NS cache type, and when the NS cache type does not exist, the query result corresponding to the resolved query request is searched in the resource record of the PNS cache type according to the sorting priority, and so on.
Referring to fig. 4, fig. 4 is a flowchart illustrating a first embodiment of a method for setting a priority in step 220 of the present invention, where the method for setting a priority may specifically include:
step 221, sending a probe request to ns resource records of the same cache type.
Specifically, for the NS cache type and the PNS cache type, for each NS resource record in the NS cache type and the PNS cache type, the first DNS server 2 sends a probe request, automatically detects whether each NS resource record can respond (can be reached), and if the NS resource record can respond, it indicates that domain name resolution can be successfully performed through the NS resource record, then the result is fed back to the first DNS server 2.
Step 222, if a feedback result of the probe request is received, generating a sorting priority according to the query round trip time recorded by the ns resource.
In this way, the first DNS server 2 can determine whether the ns resource record can be successfully resolved according to whether the feedback result of the ns resource record is received. Optionally, for ns resource records that can be successfully resolved, i.e. the first DNS server 2 receives a feedback result of the probe request, the priority ranking is performed according to its Round Trip Time (RTT), so as to determine the ranking priority of ns resource records in the same cache type. Optionally, the query round trip time of the ns resource record is inversely proportional to the ordering priority, i.e., the smaller the query round trip time of a ns resource record, the higher the priority of that ns resource record.
Step 223, if the feedback result of the probe request is not received, a second alarm is sent out, or alternatively, if the feedback result of the probe request is not received by the first DNS server 2, it indicates that the ns resource record analysis cannot be successfully analyzed, and a second alarm is sent out.
Referring to fig. 5 in combination, fig. 5 is a flowchart illustrating a second embodiment of the method for setting the priority in step 220 of the present invention, where the method for setting the priority may specifically include:
step 221a, obtaining the historical change time of ns resource records of the same cache type.
Specifically, for the HNS cache type, there is a possibility of multiple history changes in the same ns resource record, that is, the same ns resource record has multiple history records, and all the history change times of each ns resource record are respectively acquired.
Step 222a, generating a sorting priority according to the historical change time.
The priority is set according to all the historical change time sequences of ns resource records, wherein the priority is higher when the change time is more recent.
Optionally, in another application scenario of the present invention, the sorting priority of ns resource records of HNS cache type may further be further prioritized in combination with the query round-trip time of the ns resource records, where the smaller the query round-trip time, the higher the priority thereof.
Optionally, the above priority setting rule needs to be followed when selecting ns resource records, that is, firstly, selecting a cache type according to the type priority of ns resource records, and selecting ns resource records in the next highest priority class when no ns resource record is available in the cache with high priority. And selecting ns resource records according to the sorting priority of the ns resource records in the same cache type, and selecting ns resource records in the next highest priority when no ns resource records are available in the cache with the high priority. Optionally, if the selected ns resource record is not of HNS cache type, selecting the ns resource record according to the history change time of the ns resource record and the priority set by the query round trip time of the ns resource record, and selecting the ns resource record with the next highest priority when the ns resource record with the high priority is not available.
And 300, sending out a first alarm prompt when the query result is abnormal.
Further, if the query result corresponding to the resolved query request obtained in step 200 is abnormal, a first alarm prompt is sent.
Specifically, when the query result is abnormal in step S300, a first alarm prompt is sent out, for example, when NS resource records returned by different servers are found to be inconsistent, for example, NS resource records of two authoritative servers in the same authoritative zone are inconsistent, at this time, an alarm prompt with inconsistent configuration is sent out, and the alarm prompts are combined and cached as NS cache types; when the NS cache type or the PNS cache type is found to have unreachable or abnormal NS resource records are analyzed, sending out an alarm prompt that the server is unreachable; when the NS cache type and the PNS cache type are found to be inconsistent, the alarm prompts that the authorized NS resource record and the authoritative NS resource record of the father zone are inconsistent.
S400, when the query result is normal, sending ns resource records corresponding to the query result to the client.
Specifically, if the query result is not abnormal, a server (the second DNS server 3 in fig. 1 in the present application) corresponding to the selected ns resource record is found, and after the analysis query is completed through the server, the server returns to the client 1.
In the embodiment, by setting the multi-level ns caching mechanism and the alarm prompting mechanism and setting the ns resource record selecting mechanism according to the priority, the efficiency of ns resource record configuration updating is improved, the influence time of ns resource record configuration errors is shortened, and the occurrence of the condition that the analysis of the whole area fails due to the fact that the ns resource record of the authoritative server is configured in error is effectively reduced.
Describing the specific implementation process of the domain name cache analysis query method in detail with reference to fig. 1, specifically, when the client 1 initiates an a-type analysis query request of www.swing.com, after the local DNS server (the first DNS server 2) receives the request, it searches for the NS resource record of the area where www.swing.com is located in the NS cache type with the highest priority, if there is a NS resource record of swing.com in the cache, it searches for the NS resource record of swing.com with the highest priority according to the sorting priority of RTT, it searches for the corresponding server (the second DNS server 3) according to the NS resource record, and completes the analysis query of www.swing.com through the server, and then returns the a-type record 11.22.33.44 of the domain name to the client 1.
Continuing to combine with fig. 1, the client 1 initiates a type a resolution query request of www.swing.com, after receiving the request, the local DNS server (the first DNS server 2) searches for the NS cache type with the highest priority, if no NS resource record of the area where www.swing.com is located exists in the NS cache type, then searches for whether the NS resource record of the area where www.swing.com is located exists in the next highest priority PNS cache type, if NS resource record of swing.com exists in the PNS cache type, searches for the NS resource record of swing.com with the highest priority according to the sorting priority of RTT, searches for the corresponding server (the second DNS server 3) according to the NS resource record, completes the resolution query of www.swing.com by the server, and returns the type a record 11.22.33.44 of the domain name to the client 1.
Continuing to combine with fig. 1, the client 1 initiates a type a resolution query request of www.swing.com, after receiving the request, the local DNS server (the first DNS server 2) first searches for the NS cache type with the highest priority, if no NS resource record of the area where www.swing.com is located in the NS cache type, then searches for the PNS cache type with the next highest priority, if no NS resource record of the area where www.swing.com is located is found in the PNS cache type, searches for the HNS cache type, if NS resource record of the area where www.swing.com is found in the HNS cache type, searches for the NS resource record with the highest priority according to the change time priority of the NS resource record, then selects the NS resource record with the highest priority according to the sorting priority of RTT, searches for the corresponding server (the second DNS server 3) according to the record, completes resolution query of www.swing.com by the server, and returns the type a record 11.22.33.44 of the domain name to the client 1.
Fig. 6 is a schematic structural diagram of an embodiment of a domain name resolution query device according to the present invention. As shown in fig. 6, the apparatus 300 includes a receiving module 310, a searching module 320, an alarm module 330, and a transmitting module 340.
The receiving module 310 is configured to receive a domain name resolution query request sent by a client.
The searching module 320 is configured to search ns resource records of a plurality of cache types according to a preset priority, so as to obtain a query result corresponding to the resolved query request.
In an alternative manner, the searching module 320 in the embodiment of the present invention further includes: the first search unit 321 and the second search unit 322.
The first searching unit 321 is configured to search ns resource records of the same cache type from ns resource records of a plurality of cache types according to a preset type priority. The NS resource records of the plurality of cache types comprise an NS cache type, a PNS cache type and an HNS cache type, wherein the types of which are sequenced from high to low in priority.
The second searching unit 322 is configured to search a query result corresponding to the resolved query request in ns resource records of the same cache type according to a preset sorting priority. The method for setting the sequencing priority comprises the steps of sending a detection request to ns resource records of the same cache type; if a feedback result of the detection request is received, generating a sequencing priority according to the query round trip time of the ns resource record; and if the feedback result of the detection request is not received, a second alarm prompt is sent out.
In an optional manner, the method for setting the sorting priority may further include obtaining a history change time of ns resource records of the same cache type; the ranking priority is generated based on the historical change times. Wherein the query round trip time is inversely proportional to the ranking priority.
In the embodiment, by setting the multi-level ns caching mechanism and the alarm prompting mechanism and setting the ns resource record selecting mechanism according to the priority, the efficiency of ns resource record configuration updating is improved, the influence time of ns resource record configuration errors is shortened, and the occurrence of the condition that the analysis of the whole area fails due to the fact that the ns resource record of the authoritative server is configured in error is effectively reduced.
Fig. 7 is a schematic structural diagram of an embodiment of a domain name cache resolution query device according to the present invention, which is not limited to the specific implementation of the domain name cache resolution query device according to the present invention.
As shown in fig. 7, the domain name cache resolution query device may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein: processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. Processor 402 is configured to execute program 410, and may specifically perform the relevant steps in the above-described embodiments of the domain name cache resolution query method.
In particular, program 410 may include program code including computer-executable instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the domain name cache resolution query device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically invoked by processor 402 to cause a domain name cache resolution query device to:
receiving a domain name resolution query request sent by a client; searching ns resource records of a plurality of cache types according to a preset priority to acquire a query result corresponding to the analysis query request; when the query result is abnormal, a first alarm prompt is sent; and when the query result is normal, sending ns resource records corresponding to the query result to the client.
The specific implementation method of each step is referred to steps 100 to 400 in the above embodiments, and will not be repeated here.
In the embodiment, by setting the multi-level ns caching mechanism and the alarm prompting mechanism and setting the ns resource record selecting mechanism according to the priority, the efficiency of ns resource record configuration updating is improved, the influence time of ns resource record configuration errors is shortened, and the occurrence of the condition that the analysis of the whole area fails due to the fact that the ns resource record of the authoritative server is configured in error is effectively reduced.
The embodiment of the invention provides a computer readable storage medium, which stores at least one executable instruction, and when the executable instruction runs on domain name cache analysis inquiring equipment/device, the domain name cache analysis inquiring equipment/device executes the domain name cache analysis inquiring method in any method embodiment.
The executable instructions may be specifically configured to cause a domain name cache resolution query device/apparatus to:
receiving a domain name resolution query request sent by a client; searching ns resource records of a plurality of cache types according to a preset priority to acquire a query result corresponding to the analysis query request; when the query result is abnormal, a first alarm prompt is sent; and when the query result is normal, sending ns resource records corresponding to the query result to the client.
The specific implementation method of each step is referred to steps 100 to 400 in the above embodiments, and will not be repeated here.
The embodiment of the invention provides a domain name cache analysis query device which is used for executing the domain name cache analysis query method.
The embodiment of the invention provides a computer program which can be called by a processor to enable computer equipment to execute the domain name cache analysis query method in any of the method embodiments.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when run on a computer, cause the computer to perform the domain name cache resolution query method in any of the method embodiments described above.
In the embodiment, by setting the multi-level ns caching mechanism and the alarm prompting mechanism and setting the ns resource record selecting mechanism according to the priority, the efficiency of ns resource record configuration updating is improved, the influence time of ns resource record configuration errors is shortened, and the occurrence of the condition that the analysis of the whole area fails due to the fact that the ns resource record of the authoritative server is configured in error is effectively reduced.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (10)

1. The domain name cache analysis query method is characterized by comprising the following steps:
receiving a domain name resolution query request sent by a client;
searching address information resource records of domain name servers of a plurality of cache types according to preset priorities to obtain query results corresponding to the analysis query requests; the plurality of cache types comprise an NS cache type, a PNS cache type and an HNS cache type; if the address information resource records of the domain name servers on different servers in the same authority area are inconsistent, combining the address information resource records of the domain name servers in the different servers, and then caching the combined address information resource records as an NS cache type; the address information resource record of the domain name server authorized to the authoritative zone in the father zone is cached as PNS cache type; after the address information resource record type of the domain name server of the authoritative zone or the father zone is changed, caching the address information resource record of the historical domain name server as an HNS cache type;
when the query result is abnormal, a first alarm prompt is sent;
and when the query result is normal, sending the address information resource record of the domain name server corresponding to the query result to the client.
2. The method of claim 1, wherein the predetermined priorities include a predetermined type priority and a predetermined ordering priority.
3. The method according to claim 2, wherein the step of searching address information resource records of domain name servers of a plurality of cache types according to a preset priority to obtain a query result corresponding to the resolved query request comprises:
searching address information resource records of domain name servers of the same cache type from address information resource records of domain name servers of the multiple cache types according to preset type priorities;
searching a query result corresponding to the analysis query request in the address information resource records of the domain name servers of the same cache type according to the preset sequencing priority.
4. A method according to claim 3, wherein the method of prioritizing comprises:
sending a detection request to the address information resource records of the domain name servers of the same cache type;
if a feedback result of the detection request is received, generating the sorting priority according to the inquiry round trip time of the address information resource record of the domain name server;
and if the feedback result of the detection request is not received, a second alarm prompt is sent out.
5. A method according to claim 3, wherein the method of prioritizing comprises:
acquiring the historical change time of the address information resource records of the domain name servers of the same cache type;
and generating the sorting priority according to the historical change time.
6. The method of claim 4, wherein the query round trip time is inversely proportional to the ordering priority.
7. The method of claim 2, wherein the type priorities of the NS cache type, PNS cache type, and HNS cache type are sequentially from high to low.
8. A domain name cache resolution query device, the device comprising:
the receiving module is used for receiving a domain name resolution query request sent by the client;
the searching module is used for searching address information resource records of the domain name servers with a plurality of cache types according to the preset priority so as to acquire a query result corresponding to the analysis query request; the plurality of cache types comprise an NS cache type, a PNS cache type and an HNS cache type; if the address information resource records of the domain name servers on different servers in the same authority area are inconsistent, combining the address information resource records of the domain name servers in the different servers, and then caching the combined address information resource records as an NS cache type; the address information resource record of the domain name server authorized to the authoritative zone in the father zone is cached as PNS cache type; after the address information resource record type of the domain name server of the authoritative zone or the father zone is changed, caching the address information resource record of the historical domain name server as an HNS cache type;
the alarm module is used for sending out a first alarm prompt when the query result is abnormal;
and the sending module is used for sending the address information resource record of the domain name server corresponding to the query result to the client when the query result is normal.
9. A domain name cache resolution query device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the domain name cache resolution query method according to any one of claims 1 to 7.
10. A computer readable storage medium, wherein at least one executable instruction is stored in the storage medium, the executable instruction when executed on a domain name cache resolution query device/apparatus causes the domain name cache resolution query device/apparatus to perform the operations of the domain name cache resolution query method of any of claims 1-7.
CN202010663504.7A 2020-07-10 2020-07-10 Domain name cache analysis query method, device, equipment and storage medium Active CN113938461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010663504.7A CN113938461B (en) 2020-07-10 2020-07-10 Domain name cache analysis query method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010663504.7A CN113938461B (en) 2020-07-10 2020-07-10 Domain name cache analysis query method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113938461A CN113938461A (en) 2022-01-14
CN113938461B true CN113938461B (en) 2023-08-01

Family

ID=79273289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010663504.7A Active CN113938461B (en) 2020-07-10 2020-07-10 Domain name cache analysis query method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113938461B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726625A (en) * 2022-04-08 2022-07-08 Oppo广东移动通信有限公司 Detection method and device, server and storage medium
CN117112368B (en) * 2023-10-18 2024-03-22 美云智数科技有限公司 Abnormality processing method, abnormality processing device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009095071A1 (en) * 2008-01-28 2009-08-06 Nokia Siemens Networks Oy Apparatus and method comprising at least one resource record
CN103491075A (en) * 2013-09-09 2014-01-01 中国科学院计算机网络信息中心 Method and system for dynamically adjusting cached resource records of DNS recursive server
CN103701957A (en) * 2014-01-14 2014-04-02 互联网域名系统北京市工程研究中心有限公司 Domain name server (DNS) recursive method and system thereof
JP2017022430A (en) * 2015-07-07 2017-01-26 日本電気株式会社 Control device, core network node and control method therefor
CN110474872A (en) * 2019-07-05 2019-11-19 中国科学院信息工程研究所 A kind of domain name service methods of risk assessment and system based on dns resolution dependence
CN111182059A (en) * 2019-12-30 2020-05-19 互联网域名系统北京市工程研究中心有限公司 Query analysis method for domain name cache updating

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009095071A1 (en) * 2008-01-28 2009-08-06 Nokia Siemens Networks Oy Apparatus and method comprising at least one resource record
CN103491075A (en) * 2013-09-09 2014-01-01 中国科学院计算机网络信息中心 Method and system for dynamically adjusting cached resource records of DNS recursive server
CN103701957A (en) * 2014-01-14 2014-04-02 互联网域名系统北京市工程研究中心有限公司 Domain name server (DNS) recursive method and system thereof
JP2017022430A (en) * 2015-07-07 2017-01-26 日本電気株式会社 Control device, core network node and control method therefor
CN110474872A (en) * 2019-07-05 2019-11-19 中国科学院信息工程研究所 A kind of domain name service methods of risk assessment and system based on dns resolution dependence
CN111182059A (en) * 2019-12-30 2020-05-19 互联网域名系统北京市工程研究中心有限公司 Query analysis method for domain name cache updating

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Yong Jin ; Masahiko Tomoishi ; Satoshi Matsuura.Detection of Hijacked Authoritative DNS Servers by Name Resolution Traffic Classification.2019 IEEE International Conference on Big Data (Big Data).2020,全文. *
一种基于域名错误的DNS重定向协议;王艳峰;王正;阎保平;;计算机系统应用(07);全文 *

Also Published As

Publication number Publication date
CN113938461A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
US10225145B2 (en) Method and device for updating client
US8554790B2 (en) Content based load balancer
CN109067930B (en) Domain name access method, domain name resolution method, server, terminal and storage medium
CN113938461B (en) Domain name cache analysis query method, device, equipment and storage medium
US8239337B2 (en) Network device proximity data import based on weighting factor
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
US10642585B1 (en) Enhancing API service schemes
CN110968478A (en) Log collection method, server and computer storage medium
WO2017166524A1 (en) Domain name parsing method and apparatus
CN115080272A (en) Business data processing method, electronic device and storage medium
CN112751931B (en) Network connection method and device, electronic device, and medium
CN111628878A (en) Fault positioning method, device and system based on multi-stage network nodes
CN113315852B (en) Domain name resolution method, device and system
CN106992999B (en) Cross-server data communication processing method
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN110213365B (en) User access request processing method based on user partition and electronic equipment
CN111866203B (en) Domain name resolution method and device, readable storage medium and equipment
CN114285903B (en) Request processing method, device and system and electronic equipment
CN111488157A (en) Server installation system and method
CN111367921A (en) Data object refreshing method and device
CN111901243B (en) Service request routing method, scheduler and service platform
CN112565414B (en) Data downloading method, device, equipment and medium
CN105978865B (en) application package name verification method and device
CN113169900B (en) Method and device for tracking service execution process in distributed system
CN111464580B (en) Method and device for selecting main server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant