Domain name resolution record acquisition method, device and computer readable storage medium

By introducing a data collector into LDNS, the domain name list is obtained in advance and the recursive query is replaced, which solves the problem of long iterative query time and security in the domain name resolution process, and improves the response speed and security.

CN118018515BActive Publication Date: 2024-10-29CHINA MOBILE COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311737378.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2024-10-29
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

In the existing domain name resolution process, there are risks of iterative query time consuming, query data being transmitted in clear text on the Internet, leading to security issues and data leakage.

Method used

By introducing a data collector into the local domain name server (LDNS), the domain name list is sorted in advance and the authoritative domain name server address is obtained, replacing the recursive query process and using external data acquisition methods to avoid security and stability issues in iterative queries, and through additional The component iteratively queries to obtain data, shortening the response time of the first domain name request.

Benefits of technology

It effectively avoids security and stability issues in the iterative query process, improves the response time of the first domain name request, and enhances the security of the query process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118018515B_ABST
    Figure CN118018515B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method for obtaining a domain name resolution record, a device for obtaining a domain name resolution record, an electronic device, a chip, and a computer-readable storage medium. The method is applied to a local domain name server LDNS, and includes: receiving an authoritative domain name server AUTHDNS address corresponding to each domain name in a domain name list sent by a data collector; the domain name list includes at least one domain name; receiving a first request sent by a client; the first request is a resolution request for a first domain name; based on the AUTHDNS address corresponding to each domain name in the domain name list, obtaining a resolution record of the first domain name, and sending the resolution record of the first domain name to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of information technology, and specifically to a method for obtaining a domain name resolution record, a device for obtaining a domain name resolution record, an electronic device, a chip, and a computer-readable storage medium. Background Art

[0002] When a client queries a domain name, the local domain name server (LDNS) first checks whether there is an entry record of the domain name in its own cache. If there is a cache hit, the result is returned directly. If there is no cache hit, the LDNS will use a recursive query to query the superior domain name server (DNS). Since the query process uses the plain text of the DNS to traverse the entire Internet, there are security issues such as query data tampering or query data leakage in a complex network environment. Summary of the invention

[0003] Embodiments of the present application provide a method for obtaining a domain name resolution record, a device for obtaining a domain name resolution record, an electronic device, a chip, and a computer-readable storage medium.

[0004] The method for obtaining a domain name resolution record provided in an embodiment of the present application is applied to a local domain name server LDNS, and includes:

[0005] Receive the authoritative domain name server (AUTHDNS) address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name;

[0006] Receive a first request sent by a client; the first request is a resolution request for a first domain name;

[0007] Based on the AUTHDNS address corresponding to each domain name in the domain name list, the resolution record of the first domain name is obtained, and the resolution record of the first domain name is sent to the client.

[0008] The method for obtaining domain name resolution records provided in the embodiment of the present application is applied to a data collector, and includes:

[0009] Querying the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name;

[0010] The AUTHDNS address corresponding to each domain name in the domain name list is sent to the LDNS.

[0011] The domain name resolution record acquisition device provided in the embodiment of the present application is applied to LDNS, including:

[0012] Receiving unit: used to receive the AUTHDNS address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name; receive the second request sent by the client; the second request is a resolution request for the first domain name;

[0013] An acquisition unit is used to acquire the resolution record of the first domain name based on the AUTHDNS address corresponding to each domain name in the domain name list, and send the resolution record of the first domain name to the client.

[0014] The domain name resolution record acquisition device provided in the embodiment of the present application is applied to a data collector, and includes:

[0015] Query unit: used to query the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name;

[0016] Sending unit: used for sending the AUTHDNS address corresponding to each domain name in the domain name list to the LDNS.

[0017] The electronic device provided in the embodiment of the present application includes: a processor and a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute any domain name resolution record acquisition method provided in the embodiment of the present application.

[0018] The chip provided in the embodiment of the present application includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes any domain name resolution record acquisition method provided in the embodiment of the present application.

[0019] The computer-readable storage medium provided in the embodiments of the present application is characterized in that it is used to store a computer program, and the computer program enables a computer to execute any domain name resolution record acquisition method provided in the embodiments of the present application.

[0020] The domain name resolution record acquisition method provided in the embodiment of the present application adopts an external data acquisition method to replace the LDNS recursive query action, thereby avoiding the security and stability issues in the iterative query process. In addition, since an additional component is used to iteratively query and acquire data, the iterative action of the user query link is eliminated, and the response time of the first domain name request is shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 The following is a schematic diagram of the implementation process of the method for obtaining domain name resolution records in the related technology. Figure 1 ;

[0023] Figure 2 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 2 ;

[0024] Figure 3 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 3 ;

[0025] Figure 4 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 4 ;

[0026] Figure 5 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 5 ;

[0027] Figure 6 A schematic diagram of the structure of a device 600 for obtaining domain name resolution records provided in an embodiment of the present application;

[0028] Figure 7 A schematic diagram of the structure of a domain name resolution record acquisition device 700 provided in an embodiment of the present application;

[0029] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0030] Fig. 9 This is a schematic structural diagram of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] It should be noted that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the embodiments of the present application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0033] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0034] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0035] In the related art, the process of a local DNS server (LDNS) obtaining an authoritative record of a domain name is as follows:

[0036] When a client queries a domain name, LDNS first checks whether there is an entry record for the domain name in its own cache. If there is a cache hit, the result is returned directly. If there is no cache hit, LDNS will use recursive query to query the superior DNS server. The specific query process is as follows:

[0037] 1. First query the root server, and the root server returns the address of the corresponding top-level domain name server.

[0038] 2. The LDNS then recursively queries the top-level domain name server until it receives a response from the corresponding first-level domain name server. The first-level domain name server returns the authoritative server address for resolving the host.

[0039] 3. LDNS continues to recursively query the authoritative server. After obtaining the specific record of the domain name, the authoritative server returns the record content to LDNS. At this time, LDNS has obtained the authoritative resolution result of the domain name.

[0040] In this process, LDNS uses an iterative query mechanism, starting from the root domain name server, and querying in sequence. Each time, it needs to query the domain name record of a certain level of domain name server, and finally ask the authoritative server, which responds. Before finding the authoritative server, it usually takes 2 to 5 queries to the root server or top-level domain server.

[0041] There are several problems in the domain name query scheme in the related art:

[0042] 1. It takes a lot of time to query domain name servers at all levels in the entire DNS system through an iterative process. Generally, a DNS query interaction process will consume 100 to 300ms. If multiple DNS queries are performed during the iterative process, in actual application fields, although the query results of the domain name are cached through the TTL method to reduce the time loss during multiple iterations, the problem of large time consumption in the first query still cannot be solved.

[0043] 2. The query process involves initiating query instructions to multiple network service devices throughout the Internet, including: root servers, top-level domain servers, etc. If the domain name resolution chain is broken due to network interruption to the top-level domain server, no response from the authoritative server, etc., the domain name resolution will fail.

[0044] 3. Since the query process uses DNS plain text to traverse the entire Internet, there are security issues such as query data tampering or query data leakage in a complex network environment.

[0045] The authoritative information of a domain name refers to the latest and most accurate resource record information held and provided on the server designated by the domain name registration agency. It is the most important and reliable source for domain name resolution. This authoritative information directly determines the resolution result after the user accesses the domain name. Generally, the authoritative information of a domain name can only be obtained after the LDNS receives the client request and queries the root server and the top-level domain server.

[0046] refer to Figure 1 , Figure 1 The following is a schematic diagram of the implementation process of the method for obtaining domain name resolution records in the related technology. Figure 1 ,like Figure 1 As shown, the method for obtaining the domain name resolution record includes:

[0047] Step 101, the client initiates a resolution request for the domain name p1.img.a.com to the LDNS;

[0048] Step 102, LDNS queries the root server for the resolution result of p1.img.a.com;

[0049] Step 103, the root server returns the address of the top-level domain service of com;

[0050] Step 104, LDNS queries the top-level domain server of com for the resolution result of p1.img.a.com;

[0051] Step 105, the top-level domain server of com returns the address of the secondary server of a.com;

[0052] Step 106, LDNS queries the secondary server of a.com for the resolution result of p1.img.a.com;

[0053] Step 107, the secondary server of a.com returns the address of the authoritative server of img.a.com to the LDNS;

[0054] Step 108, LDNS queries the authoritative server of img.a.com for the resolution result of p1.img.a.com;

[0055] Step 109, the authoritative server of img.a.com returns the resolution A record of the domain name p1.img.a.com to the LDNS;

[0056] Step 110: LDNS returns the resolution A record of p1.img.a.com to the client.

[0057] Figure 2 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 2 ,like Figure 2 As shown, the embodiment of the present application provides a method for obtaining a domain name resolution record, which is applied to LDNS. The method includes the following steps:

[0058] Step 201: Receive the authoritative domain name server (AUTHDNS) address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name.

[0059] The data collector is used to query the authoritative domain name server address corresponding to each domain name in the domain name list. For each domain name in the domain name list, a resolution result query request of the domain name is sent to the root domain name server. The root domain name server returns the address of the top-level domain name server to the data collector. The data collector sends a resolution result query request of the domain name to the top-level domain name server. The top-level domain name server returns the address of the second-level domain name server to the data collector. The data collector sends a resolution result query request of the domain name to the second-level domain name server. The second-level domain name server returns the address of the authoritative domain name server to the data collector.

[0060] The domain name list can be manually written into the data collector or sent to the data collector via LDNS.

[0061] Exemplarily, the LDNS records the usage frequency of the domain name, and increases the usage frequency of the domain name by 1 each time a resolution request for the domain name is obtained; and domain names whose usage frequency exceeds a preset first threshold are added to the domain name list.

[0062] Step 202: Receive a first request sent by a client; the first request is a resolution request for a first domain name.

[0063] Step 203: Based on the AUTHDNS address corresponding to each domain name in the domain name list, obtain the resolution record of the first domain name, and send the resolution record of the first domain name to the client.

[0064] In an optional implementation manner of the present application, obtaining the resolution record of the first domain name based on the AUTHDNS address corresponding to each domain name in the domain name list includes:

[0065] If the first domain name is in the domain name list, obtaining a first AUTHDNS address corresponding to the first domain name;

[0066] Sending a second request to the first AUTHDNS; the second request is used to obtain the resolution record of the first domain name;

[0067] Receive a first response sent by the first AUTHDNS; the first response carries a resolution record of the first domain name.

[0068] Exemplarily, the resolution record of the first domain name is the IP address corresponding to the first domain name.

[0069] In an optional implementation manner of the present application, the method further includes:

[0070] If the first domain name is not in the domain name list, the resolution record of the first domain name is obtained from AUTHDNS by iterative query or recursive query.

[0071] The LDNS sends a query request for the resolution result of the first domain name to the root domain name server, the root domain name server returns the address of the top-level domain name server to the LDNS, the LDNS sends a query request for the resolution result of the first domain name to the top-level domain name server, the top-level domain name server returns the address of the second-level domain name server to the LDNS, the LDNS sends a query request for the resolution result of the first domain name to the second-level domain name server, the second-level domain name server returns the address of the authoritative domain name server to the LDNS, the LDNS sends a query request for the resolution result of the first domain name to the authoritative domain name server, and the authoritative domain name server returns the resolution record of the first domain name to the LDNS.

[0072] Figure 3 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 3 ,like Figure 3 As shown, the embodiment of the present application provides a method for obtaining domain name resolution records, which is applied to a data collector, and the method includes the following steps:

[0073] Step 301: query the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name.

[0074] The data collector is used to query the authoritative domain name server address corresponding to each domain name in the domain name list. For each domain name in the domain name list, a resolution result query request of the domain name is sent to the root domain name server. The root domain name server returns the address of the top-level domain name server to the data collector. The data collector sends a resolution result query request of the domain name to the top-level domain name server. The top-level domain name server returns the address of the second-level domain name server to the data collector. The data collector sends a resolution result query request of the domain name to the second-level domain name server. The second-level domain name server returns the address of the authoritative domain name server to the data collector.

[0075] The domain name list can be manually written into the data collector or sent to the data collector via LDNS.

[0076] Step 302: Send the AUTHDNS address corresponding to each domain name in the domain name list to the LDNS.

[0077] In an optional implementation manner of the present application, the AUTHDNS address corresponding to each domain name in the query domain name list includes:

[0078] The authoritative information data of each domain name in the domain name list is queried one by one, and after pre-processing the authoritative information data, the AUTHDNS address corresponding to each domain name in the domain name list is obtained.

[0079] Exemplarily, preprocessing includes cleaning and data processing.

[0080] The entire system has added a data collector, which is responsible for querying the authoritative information of the pre-sorted domain name list one by one using a secure detection system, and actively sending the query results to the LDNS system after data cleaning and data processing.

[0081] Figure 4 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 4 ,like Figure 4 As shown, the method for obtaining the domain name resolution record includes:

[0082] In the background step B1, the sorted domain name list, which is usually the hot domain names on the LDNS, is sent to the data collector;

[0083] In the background step B2, the data collector queries the root domain name server for the resolution result of img.a.com, and obtains the address of the top-level domain (LTD) domain name server of com from the returned data;

[0084] In the backend step B3, the data collector queries the top-level domain (LTD) domain name server of com for the resolution result of img.a.com, and obtains the return data to learn the address of the secondary domain name server of a.com;

[0085] In the background step B4, the data collector queries the secondary domain name server of a.com for the resolution result of img.a.com and obtains the address of the authoritative domain name server of img.a.com.

[0086] In background step B5, the data collector writes the img.a.com authoritative domain information into the LDNS.

[0087] In query step A1, the client queries the LDNS for the resolution result of img.a.com;

[0088] In query step A2, LDNS reads local records to obtain the authoritative domain name server of img.a.com, and queries the authoritative domain name server of img.a.com for the resolution result of p1.img.a.com;

[0089] In query step A3, the authoritative domain name server of img.a.com returns the resolution A record of the domain name p1.img.a.com to the LDNS;

[0090] In query step A4, LDNS returns the resolution A record of p1.img.a.com to the client.

[0091] Figure 5 Schematic diagram of the implementation process of the method for obtaining domain name resolution records provided in the embodiment of the present application Figure 5 ,like Figure 5 As shown, LDNS includes: authoritative cache DNS, cache DNS and iterative DNS, and the method for obtaining domain name resolution records includes:

[0092] Step 501: The client initiates a domain name resolution request to the LDNS;

[0093] Step 502, the cache LDNS queries the authoritative cache DNS for the domain name;

[0094] Step 503, the authoritative cache DNS directly returns the domain name authority information after the local hit;

[0095] Step 504, iterate to the external DNS when the authoritative cache DNS misses;

[0096] Step 505, the external DNS returns the domain name authority information to the authoritative cache DNS;

[0097] Step 506, after the cache LDNS obtains the authoritative information, it queries the resolution record of the domain name through the iterative DNS;

[0098] Step 507, after querying the DNS authoritative domain name server, the resolution result of the domain name is returned to the cache server;

[0099] Step 508, LDNS returns the user resolution record to the client;

[0100] Step 509: The resolution record of the domain name has been cached by the DNS, and the resolution record is directly returned to the user.

[0101] The domain name resolution record acquisition method provided in the embodiment of the present application adopts an external data acquisition method to replace the LDNS recursive query action, avoiding the security and stability issues in the iterative query process, and because it adopts an additional component iterative query to obtain data, it eliminates the iterative action of the user query link and improves the response time of the first domain name request.

[0102] The embodiment of the present application also provides a device 600 for obtaining a domain name resolution record, referring to Figure 6 The domain name resolution record acquisition device 600 in this embodiment is applied to LDNS and includes:

[0103] Receiving unit 610: used to receive the AUTHDNS address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name; receive a first request sent by the client; the first request is a resolution request for the first domain name;

[0104] The acquisition unit 620 is configured to acquire the resolution record of the first domain name based on the AUTHDNS address corresponding to each domain name in the domain name list, and send the resolution record of the first domain name to the client.

[0105] In an embodiment of the present application, the acquisition unit 620 is used to obtain a first AUTHDNS address corresponding to the first domain name if the first domain name is in the domain name list; send a second request to the first AUTHDNS; the second request is used to obtain the resolution record of the first domain name; the receiving unit 610 is used to receive a first response sent by the first AUTHDNS; the first response carries the resolution record of the first domain name.

[0106] In the embodiment of the present application, the acquisition unit 620 is configured to obtain the resolution record of the first domain name from AUTHDNS through iterative query or recursive query if the first domain name is not in the domain name list.

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

[0108] The embodiment of the present application also provides a device 700 for obtaining a domain name resolution record, referring to Figure 7 The domain name resolution record acquisition device 700 in this embodiment is applied to a data collector and includes:

[0109] Query unit 710: used to query the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name;

[0110] The sending unit 720 is used to send the authoritative domain name server AUTHDNS address corresponding to each domain name in the domain name list to the LDNS.

[0111] In an embodiment of the present application, the query unit 710 is used to query the authoritative information data of each domain name in the domain name list one by one, and after preprocessing the authoritative information data, obtain the authoritative domain name server AUTHDNS address corresponding to each domain name in the domain name list.

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

[0113] Figure 8 It is a schematic structural diagram of an electronic device 800 provided in an embodiment of the present application. Figure 8 The electronic device 800 shown includes a processor 810, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.

[0114] Alternatively, if Figure 8 As shown, the electronic device 800 may further include a memory 820. The processor 810 may call and run a computer program from the memory 820 to implement the method in the embodiment of the present application.

[0115] The memory 820 may be a separate device independent of the processor 810 , or may be integrated into the processor 810 .

[0116] Alternatively, if Figure 8As shown, the electronic device 800 may further include a transceiver 830, and the processor 810 may control the transceiver 830 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.

[0117] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of the antennas may be one or more.

[0118] The electronic device 800 can specifically be the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 of the embodiment of the present application, and the electronic device 800 can implement the corresponding processes implemented by the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 in each method of the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0119] Fig. 9 It is a schematic structural diagram of the chip of an embodiment of the present application. Fig. 9 The chip 900 shown includes a processor 910, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.

[0120] Alternatively, if Fig. 9 As shown, the chip 900 may further include a memory 920. The processor 910 may call and run a computer program from the memory 920 to implement the method in the embodiment of the present application.

[0121] The memory 920 may be a separate device independent of the processor 910 , or may be integrated into the processor 910 .

[0122] Optionally, the chip 900 may further include an input interface 930. The processor 910 may control the input interface 930 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0123] Optionally, the chip 900 may further include an output interface 940. The processor 910 may control the output interface 940 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0124] The chip can be applied to the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0125] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0126] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0127] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0128] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.

[0129] The embodiment of the present application also provides a computer-readable storage medium for storing a computer program. The computer-readable storage medium can be applied to the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 in the embodiment of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700 in each method of the embodiment of the present application, which will not be described in detail for the sake of brevity.

[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

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

[0135] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a domain name resolution record acquisition device 600 / domain name resolution record acquisition device 700, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

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

Claims

1. A method for obtaining a domain name resolution record, characterized in that: Applied to the local domain name server LDNS, including: Receive the authoritative domain name server AUTHDNS address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name, and the domain names in the domain name list include domain names whose usage frequency exceeds a first threshold; Receive a first request sent by a client; the first request is a resolution request for a first domain name; Based on the AUTHDNS address corresponding to each domain name in the domain name list, the resolution record of the first domain name is obtained, and the resolution record of the first domain name is sent to the client.

2. The method for obtaining domain name resolution records according to claim 1, characterized in that: The obtaining the resolution record of the first domain name based on the AUTHDNS address corresponding to each domain name in the domain name list includes: If the first domain name is in the domain name list, obtaining a first AUTHDNS address corresponding to the first domain name; Sending a second request to the first AUTHDNS; the second request is used to obtain the resolution record of the first domain name; Receive a first response sent by the first AUTHDNS; the first response carries a resolution record of the first domain name.

3. The method for obtaining domain name resolution records according to claim 2, characterized in that: Also includes: If the first domain name is not in the domain name list, the resolution record of the first domain name is obtained from AUTHDNS by iterative query or recursive query.

4. A method for obtaining a domain name resolution record, characterized in that: Applicable to data loggers, including: Querying the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name, and the domain names in the domain name list include domain names whose usage frequency exceeds a first threshold; The AUTHDNS address corresponding to each domain name in the domain name list is sent to the LDNS.

5. The method for obtaining domain name resolution records according to claim 4, characterized in that: The AUTHDNS address corresponding to each domain name in the query domain name list includes: The authoritative information data of each domain name in the domain name list is queried one by one, and after pre-processing the authoritative information data, the AUTHDNS address corresponding to each domain name in the domain name list is obtained.

6. A device for obtaining domain name resolution records, characterized in that: Applied to LDNS, including: Receiving unit: used to receive the AUTHDNS address corresponding to each domain name in the domain name list sent by the data collector; the domain name list includes at least one domain name, and the domain names in the domain name list include domain names whose usage frequency exceeds a first threshold; receive a first request sent by the client; the first request is a resolution request for the first domain name; An acquisition unit is used to acquire the resolution record of the first domain name based on the AUTHDNS address corresponding to each domain name in the domain name list, and send the resolution record of the first domain name to the client.

7. A device for obtaining domain name resolution records, characterized in that: Applicable to data loggers, including: A query unit: used to query the AUTHDNS address corresponding to each domain name in the domain name list; the domain name list includes at least one domain name, and the domain names in the domain name list include domain names whose usage frequency exceeds a first threshold; Sending unit: used for sending the AUTHDNS address corresponding to each domain name in the domain name list to the LDNS.

8. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method for obtaining a domain name resolution record according to any one of claims 1 to 5.

9. A chip, characterized in that: include: The processor is used to call and run a computer program from a memory, so that a device equipped with the chip executes the method for obtaining a domain name resolution record according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the method for obtaining a domain name resolution record according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Domain name resolution method and apparatus, electronic device, and readable storage medium

    CN108574744A