CN116170410B - Domain name pre-resolution processing method, system, electronic equipment and storage medium - Google Patents

Domain name pre-resolution processing method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN116170410B
CN116170410B CN202310453880.7A CN202310453880A CN116170410B CN 116170410 B CN116170410 B CN 116170410B CN 202310453880 A CN202310453880 A CN 202310453880A CN 116170410 B CN116170410 B CN 116170410B
Authority
CN
China
Prior art keywords
domain name
resolution
task
server
target
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
CN202310453880.7A
Other languages
Chinese (zh)
Other versions
CN116170410A (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.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing 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 Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202310453880.7A priority Critical patent/CN116170410B/en
Publication of CN116170410A publication Critical patent/CN116170410A/en
Application granted granted Critical
Publication of CN116170410B publication Critical patent/CN116170410B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a domain name pre-resolution processing method, a domain name pre-resolution processing system, electronic equipment and a storage medium, and relates to the technical field of networks. The method applied to the task management node comprises the following steps: generating a domain name preresolved task aiming at a target local domain name server corresponding to a set domain name to be preresolved; the domain name pre-resolution task is sent to a target task execution node so as to control the target task execution node to send a domain name resolution request for the set domain name to the target local domain name server, the target task execution node has access right to the target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name. According to the scheme, the domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of a website is improved.

Description

Domain name pre-resolution processing method, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a domain name pre-resolution processing method, a system, an electronic device, and a storage medium.
Background
When a user accesses a website through a terminal device, a server, or the like, the terminal device, the server, or the like transmits a domain name resolution request for the domain name to a corresponding Local domain name server (Local Domain Name Service, local DNS) for the domain name of the website. After receiving the domain name resolution request, the local domain name server performs domain name resolution on the domain name. That is, whether a pre-configured storage medium (e.g., memory, database, etc.) stores a historical domain name resolution result for the domain name is first searched, if the storage medium stores the historical domain name resolution result, the historical domain name resolution result is determined to be a domain name resolution result corresponding to the domain name, and if the storage medium does not store the historical domain name resolution result, multiple recursion queries are performed to obtain and store the domain name resolution result corresponding to the domain name. After the local domain name server obtains the domain name resolution result corresponding to the domain name, the domain name resolution result is fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access the website according to the domain name resolution result.
When the historical domain name resolution result is not stored in the local domain name server, the domain name resolution result can be obtained after multiple recursion queries are performed, so that a relatively long time is spent in the domain name resolution stage, and thus the access speed of the website is reduced, and how to reduce the time spent in the domain name resolution stage, so that the access speed of the website is improved, becomes a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a processing method, a processing system, electronic equipment and a storage medium for domain name pre-resolution, so that the time spent in the domain name resolution stage is reduced, and the access speed of a website is improved.
In a first aspect, an embodiment of the present application provides a method for processing domain name preresolved, which is applied to a task management node, where the method includes:
generating a domain name preresolved task aiming at a target local domain name server corresponding to a set domain name to be preresolved;
and sending the domain name pre-resolution task to a target task execution node so as to control the target task execution node to send a domain name resolution request aiming at the set domain name to a target local domain name server, wherein the target task execution node has access right to the target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
In a second aspect, an embodiment of the present application provides another method for processing domain name pre-resolution, applied to a task execution node, where the method includes:
responding to a domain name pre-resolution task sent by a task management node, and determining a corresponding target local domain name server aiming at a set domain name corresponding to the domain name pre-resolution task; the domain name pre-resolution task is generated by a task management node aiming at a target local domain name server;
and sending a domain name resolution request aiming at the set domain name to the target local domain name server so as to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
In a third aspect, an embodiment of the present application provides a processing system for domain name pre-resolution, including: the system comprises a task management node, a target task execution node and a target local domain name server;
the task management node is used for executing the first domain name pre-resolution processing method provided by the embodiment of the application so as to send the domain name pre-resolution task to the target task execution node;
the target task execution node is used for executing the second domain name pre-resolution processing method provided by the embodiment of the application so as to send a domain name resolution request to a target local domain name server;
And the target local domain name server is used for responding to the domain name resolution request when receiving the domain name resolution request, and acquiring and storing the domain name resolution result.
In a fourth aspect, an embodiment of the present application provides a further method for processing domain name pre-resolution, applied to a task management node, where the method includes:
aiming at a set domain name to be pre-resolved, screening out a corresponding target local domain name server from a plurality of local domain name servers according to domain name server information; the domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names; the services of the plurality of local domain name servers cover one or more areas;
generating a domain name pre-resolution task aiming at a target local domain name server;
the method comprises the steps that a domain name pre-resolution task is sent to a target task execution node, so that the target task execution node is controlled to send a domain name resolution request for setting a domain name to a target local domain name server, the target task execution node has access right to the target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name; and sending the domain name resolution result to the target task execution node.
In a fifth aspect, embodiments of the present application provide an electronic device including a memory, a processor, and a computer program stored on the memory, the processor implementing the method provided by any of the embodiments of the present application when the computer program is executed.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, the computer program, when executed by a processor, implementing a method provided by any embodiment of the present application.
Compared with the prior art, the application has the following advantages:
according to the technical scheme, a domain name preresolved task is generated for a target local domain name server corresponding to a set domain name to be preresolved, then the domain name preresolved task is sent to a target task execution node, so that the target task execution node is controlled to send a domain name resolution request for the set domain name to the target local domain name server, wherein the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
After the domain name pre-resolution task is sent to the target task execution node, the target task execution node can send a domain name resolution request to the target local domain name server, so that the target local domain name server is triggered to acquire and store a domain name resolution result corresponding to the set domain name. That is, the technical solution of the present application can trigger the target local domain name server to obtain and store the corresponding domain name resolution result for the set domain name to be pre-resolved. Under the condition that the corresponding domain name resolution results are stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request of terminal equipment, a server and the like for a set domain name, the domain name resolution results can be obtained without repeated recursion query, and the domain name resolution results are fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access websites corresponding to the set domain name according to the domain name resolution results. The domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of the website can be improved.
In addition, according to the technical scheme, the domain name pre-resolution task is sent to the target task execution node with access authority to the target local domain name server, so that the target task execution node is controlled to send a domain name resolution request to the target local domain name server, and the target local domain name server is triggered to acquire and store a domain name resolution result corresponding to the set domain name. Therefore, for any party requiring pre-resolution of the set domain name, no matter whether the party requiring pre-resolution has access right to the target local domain name server or not, as long as the party requiring pre-resolution can trigger the task management node to generate the domain name pre-resolution task and send the domain name pre-resolution task to the target task execution node, the target local domain name server can be triggered to acquire and store the corresponding domain name resolution result, so that the time spent in the domain name resolution stage is reduced, and the access speed of the website is improved.
The foregoing summary is for the purpose of the specification only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will become apparent by reference to the drawings and the following detailed description.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the disclosure and are not therefore to be considered limiting of its scope.
Fig. 1 is a schematic diagram illustrating an application procedure of a domain name pre-resolution processing method provided in an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for domain name pre-resolution provided in an embodiment of the present application;
FIG. 3 is a flow chart illustrating another method of domain name pre-resolution processing provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a domain name pre-resolution processing system provided in an embodiment of the present application;
FIG. 5 is a flow chart illustrating yet another method of domain name pre-resolution processing provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a domain name pre-resolution processing apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another domain name pre-resolution processing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a processing device for domain name pre-resolution according to an embodiment of the present application; and
Fig. 9 shows a block diagram of an electronic device used to implement an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application may, however, be embodied in many other forms than described herein and will be apparent to those skilled in the art from the disclosure herein without departing from the spirit or essential characteristics thereof, and it is therefore not limited to the specific embodiments disclosed herein.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following describes related technologies of the embodiments of the present application. The following related technologies may be optionally combined with the technical solutions of the embodiments of the present application, which all belong to the protection scope of the embodiments of the present application.
The embodiment of the application relates to a domain name pre-resolution processing scheme applied to a task management node and a domain name pre-resolution processing scheme applied to a task execution node. The task management node may be configured for one task execution node, may be configured for a plurality of task execution nodes, and the task execution node may be configured for one local domain name server (the local domain name servers correspond to the task execution nodes one by one), or may be configured for a plurality of local domain name servers (one task execution node corresponds to a plurality of local domain name servers). That is, the task management node may be configured for one local domain name server or may be configured for a plurality of local domain name servers.
When the task execution node is configured for one local domain name server, if the local domain name server does not support public network access (i.e. only supports intranet or private network access), the task execution node is configured in an area covered by a service of the local domain name server, for example, the area covered by the service of the local domain name server includes an a-city telecommunication service area and a B-city mobile service area, and the task execution node may be configured in the a-city telecommunication service area or the B-city mobile service area. If the local domain name server supports public network access, the task execution node is configured in a preset area, and the preset area can be any area which can access the local domain name server. If the local domain name server supports public (or extranet) access, the task execution node is configured in any area accessible to the local domain name server.
When the task execution node is configured for a plurality of local domain name servers, the area covered by the services of the plurality of local domain name servers may be only one or may be a plurality of. In one example, the areas covered by the services of each of the plurality of local domain name servers are different from each other. An area is typically a specific region, such as a province, a city, a district, a direct city, a district of a city, or an area divided by a natural geographic area, etc.
When the task management node is configured for one task execution node and the task execution node is configured for one local server, the task management node can be considered to be configured for one local server. When a task management node is configured for one task execution node, but the task execution node is configured for a plurality of local domain name servers, or when the task management node is configured for a plurality of tasks execution nodes, and each task execution node is configured for one or a plurality of tasks execution nodes, the task management node can be considered to be configured for a plurality of local domain name servers.
In general, task management nodes are configured for a plurality of task execution nodes, each task execution node is configured for one local domain name server, and each task execution node is configured in an area covered by a service corresponding to the local domain name server. In an example, the task management node is configured for a plurality of task execution nodes, including a task execution node configured in a city (denoted as task execution node a), a task execution node configured in B city (denoted as task execution node B), and a task execution node configuration configured in C city (denoted as task execution node C). The task execution node A is configured for a local domain name server in the A city, the task execution node B is configured for a local domain name server in the B city, and the task execution node C is configured for a local domain name server in the C city. The area covered by the service of the local domain name server in the city A is the city A, the area covered by the service of the local domain name server in the city B is the city B, and the area covered by the service of the local domain name server in the city C is the city C.
In addition, the task management node has management rights to the one or more local domain name servers. The task management node can be deployed in any area, and specifically can be deployed on a certain computing device or terminal device alone, or can be deployed on a certain local domain name server or in a machine room to which the local domain name server belongs. The task management node may exist in a form of a hardware device (such as a server and a terminal device) or a hardware chip with a processing function of domain name pre-resolution, and the hardware chip may be a CPU (Central Processing Unit ), a GPU (Graphics Processing, a graphics processor), an FPGA (Field Programmable Gate Array ), an NPU (Neural-network Processing Unit, a network processor), an AI (Artificial Intelligence ) accelerator card or a DPU (Data Processing Unit, a data processor), and the like. The task management node may be an application program, a service, an instance, a functional module in a software form, a Virtual Machine (VM), a cloud server, or the like deployed on the above hardware device or the hardware chip.
The task execution node can interact with a corresponding local domain name server, and can be specifically deployed on a certain computing device or terminal device alone, or can be deployed on a certain corresponding local domain name server or in a machine room to which the local domain name server belongs. The task execution node may exist in a hardware device (such as a server and a terminal device) or a hardware chip with a processing function of domain name preresolution, and the hardware chip may be a CPU, GPU, FPGA, NPU, AI accelerator card or a DPU. The task execution node may be an application program, a service, an instance, a functional module in a software form, a VM, a cloud server, or the like deployed on the above hardware device or the hardware chip.
The domain name pre-resolution task is generated aiming at a target local domain name server corresponding to the set domain name to be pre-resolved and is used for controlling a target task execution node to send a domain name resolution request aiming at the set domain name to the target local domain name server. The target task execution node has access right to a target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name. The domain name resolution result generally refers to setting an IP (Internet Protocol ) address to which the domain name corresponds.
Before a domain name preresolved task is generated for a target local domain name server corresponding to a set domain name to be preresolved, the set domain name is determined, and then the target local domain name server is determined for the set domain name. The demander of the preresolved demand sets, in one example, a domain name "aaabbb.com" of the domain name D website, and sets, in another example, a domain name "cccddd.cn" of the domain name E website. Wherein the set domain name is determined based on a preresolved request submitted by a demander having preresolved requirements for the set domain name.
When the set domain name is determined, a pre-resolution request submitted by a demander can be acquired first, and then the pre-resolution request is resolved to acquire the set domain name. The demander can be an operator who sets the domain name, a visitor who sets the domain name, or an operator of the task management node. In an example, in order to reduce the time spent in the domain name resolution stage, the access speed of the website for setting the domain name is improved, so that the visitor of the website can quickly access the website, and the operator for setting the domain name can be used as a pre-resolution request submitted by the demander. In another example, in order to reduce the time spent in the domain name resolution phase, thereby increasing the access speed of the website, and thus the website is quickly accessed, the visitor to the website may act as a preresolved request submitted by the demander. In yet another example, after receiving a pre-resolution order of a visitor to a website or an operator setting a domain name for the set domain name, the operator of the task management node may use the operator of the task management node as a pre-resolution request submitted by a demander in order to reduce time spent in a domain name resolution stage, thereby improving access speed of the website setting the domain name, and further enabling the visitor to quickly access the website.
When the task management node is configured for a local domain name server, the local domain name server is the target local domain name server. When the task management node is configured for a plurality of local domain name servers, domain name server information corresponding to the set domain name can be acquired first, and then a target local domain name server is screened out from the plurality of local domain name servers according to the domain name server information. The target local domain name server may be one local domain name server or a plurality of local domain name servers. The domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names.
After the task management node sends the domain name pre-resolution task to the target task execution node, when the target task execution node receives the domain name pre-resolution task, the target task execution node responds to the domain name pre-resolution task, determines a corresponding target local domain name server aiming at a set domain name corresponding to the domain name pre-resolution task, and then sends a domain name resolution request aiming at the set domain name to the target local domain name server so as to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name, so that the target local domain name server can acquire and store the domain name resolution result corresponding to the set domain name. Under the condition that the corresponding domain name resolution results are stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request of terminal equipment, a server and the like for a set domain name, the domain name resolution results can be obtained without repeated recursion query, and the domain name resolution results are fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access websites corresponding to the set domain name according to the domain name resolution results. The domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of the website can be improved.
In addition, in the above solution in the embodiment of the present application, by sending the domain name preresolved task to the target task execution node having access rights to the target local domain name server, the target local domain name server is triggered to obtain and store the domain name resolution result corresponding to the set domain name in a manner of controlling the target task execution node to send the domain name resolution request to the target local domain name server. Therefore, for any party requiring pre-resolution of the set domain name, no matter whether the party requiring pre-resolution has access right to the target local domain name server or not, as long as the party requiring pre-resolution can trigger the task management node to generate the domain name pre-resolution task and send the domain name pre-resolution task to the target task execution node, the target local domain name server can be triggered to acquire and store the corresponding domain name resolution result, so that the time spent in the domain name resolution stage is reduced, and the access speed of the website is improved.
In order to more clearly show the domain name pre-resolution processing method provided in the embodiment of the present application, an application example of the domain name pre-resolution processing method provided in the embodiment of the present application is first introduced, and a specific implementation procedure of the example is as follows:
Fig. 1 is a schematic diagram illustrating an application process of a domain name pre-resolution processing method provided in an embodiment of the present application, and fig. 1 illustrates a task management node, two task execution nodes, and two local domain name servers. The two task execution nodes include a task execution node a (i.e., a task execution node configured in a city) and a task execution node B (i.e., a task execution node configured in B city), and the two local domain name servers include a local domain name server in a city (denoted as a local domain name server a) and a local domain name server in B city (denoted as a local domain name server B). The task execution node A is configured for the local domain name server A, has access rights to the local domain name server A, and the task execution node B is configured for the local domain name server B, has access rights to the local domain name server B.
When the domain name of a certain website X is a non-popular domain name and the operator of the website X (i.e., the operator of the domain name of the website X) wants to increase the access speed of the website X, so as to attract more visitors, the operator of the domain name of the website X has a pre-resolution requirement on the domain name of the website X, and at this time, the operator of the domain name of the website X can submit a pre-resolution request for the domain name of the website X to a task management node through a user terminal or the like. The pre-resolution request carries domain name server information corresponding to the domain name of the website X, and the domain name server information corresponding to the domain name of the website X indicates that the local domain name server A has pre-resolution requirements on the domain name of the website X.
After the task management node obtains the pre-resolution request submitted by the operator of the domain name of the website X, the task management node resolves the pre-resolution request to obtain the domain name of the website X and domain name server information corresponding to the domain name of the website X, and at this time, the domain name of the website X is the set domain name to be pre-resolved. After obtaining the domain name of the website X and domain name server information corresponding to the domain name of the website X, the task management node stores the domain name of the website X in a domain name list to be pre-resolved for reading by a task generating module in the task management node, and simultaneously provides the domain name server information corresponding to the domain name of the website X to the task generating module for the task generating module to determine a local domain name server with pre-resolution requirements on the set domain name. When the task generating module reads the domain name of the website X from the domain name list to be pre-resolved, domain name server information corresponding to the domain name of the website X is read for the domain name of the website X, and then the local domain name server A is screened out of the local domain name server A and the local domain name server B according to the domain name server information so as to determine a target local domain name server.
When the target local domain name server is determined to be the local domain name server A, the task generating module generates a domain name pre-resolution task for the local domain name server A, and then provides the domain name pre-resolution task for the task sending module. And when receiving the domain name pre-resolution task, the task sending module sends the domain name pre-resolution task to the task execution node A.
When receiving the domain name pre-resolution task, the task execution node A responds to the domain name pre-resolution task, determines a corresponding target local domain name server (local domain name server A) aiming at a set domain name corresponding to the domain name pre-resolution task, regenerates a domain name resolution request aiming at the set domain name, and sends the domain name resolution request to the local domain name server A.
When receiving the domain name resolution request, the local domain name server a may respond to the domain name resolution request to obtain and store a domain name resolution result corresponding to the domain name of the website X. When obtaining the domain name resolution result corresponding to the domain name of the website X, the local domain name server a first searches whether a storage medium (generally, a memory, a database, or the like) for storing the domain name resolution result stores a historical domain name resolution result for the domain name of the website X, if the storage medium stores the historical domain name resolution result, determines the historical domain name resolution result as the domain name resolution result corresponding to the domain name of the website X, and if the storage medium does not store the historical domain name resolution result, performs multiple recursion queries to obtain and store the domain name resolution result corresponding to the domain name.
After obtaining and storing the domain name resolution result corresponding to the domain name, the local domain name server a further generates and stores a domain name resolution record corresponding to the domain name of the website X according to the domain name resolution result, and then sends the domain name resolution record to the task execution node a, thereby completing domain name resolution of the domain name of the website X. The domain name resolution record records a domain name resolution result, a generation time point of the domain name resolution result and a survival time of the domain name resolution result in the target local domain name server.
When the history domain name resolution result is not stored in the storage medium of the local domain name server a, the local domain name server a may acquire the corresponding domain name resolution result through multiple recursive queries, and at this time, the lifetime of the domain name resolution result in the target local domain name server is a default lifetime (for example, 600 seconds) set in advance. In the case where the history domain name resolution result is stored in the storage medium of the local domain name server a, if 120 seconds have elapsed from the time point when the local domain name server a received the domain name resolution request to the time point when the history domain name resolution result was generated, the lifetime of the domain name resolution result in the target local domain name server is 480 seconds (600 seconds to 120 seconds). That is, the lifetime of the domain name resolution result in the target local domain name server may be different in different situations.
After the task execution node A acquires the domain name resolution record, the domain name resolution record is sent to the task management node. After receiving the domain name resolution record, the task management node stores the domain name resolution record in a set storage medium, and then determines the domain name resolution result as a historical domain name resolution result corresponding to the domain name of the website X so as to generate a next domain name pre-resolution task for the domain name of the website X according to the domain name resolution record. In this case, the generation time point of the domain name resolution result is converted into the generation time point of the history domain name resolution result, and the lifetime of the domain name resolution result in the local domain name server a is converted into the lifetime of the history domain name resolution result in the local domain name server a.
It should be noted that, the above application examples of the domain name pre-resolution processing method provided in the embodiments of the present application are for ease of understanding and are not intended to limit the domain name pre-resolution processing method provided in the embodiments of the present application. Specifically, the application scenario of the domain name pre-resolution processing method provided in the embodiment of the present application is not specifically limited.
The following describes the technical solution of the present application and how the technical solution of the present application solves the above technical problems in detail with specific embodiments. The following related technologies may be optionally combined with the technical solutions of the embodiments of the present application, which all belong to the protection scope of the embodiments of the present application, and the same or similar concepts or processes may not be described in some embodiments.
Fig. 2 shows a flowchart of a domain name pre-resolution processing method 200 provided in an embodiment of the present application, where the method 200 is applied to a task management node, and may include steps S201-S202.
In step S201, a domain name preresolved task is generated for a target local domain name server corresponding to a set domain name to be preresolved.
The domain name pre-resolution task is used for controlling the target task execution node to send a domain name resolution request aiming at the set domain name to the target local domain name server.
Generating a domain name pre-resolution task for a target local domain name server corresponding to a set domain name to be pre-resolved may refer to generating a domain name pre-resolution task carrying an identifier of the target local domain name server for the target local domain name server. The target local domain name server identifier is used for uniquely identifying the target local domain name server, so that the target task execution node determines the target local domain name server according to the target local domain name server identifier. When generating a domain name pre-resolution task carrying a target local domain name server identifier aiming at the target local domain name server, the local domain name server identifier can be acquired first, and then the domain name pre-resolution task is generated according to the target local domain name server identifier. In an example, the target local domain name server is identified as the IP address to which the target local domain name server corresponds.
The task management node can be configured for one local domain name server or a plurality of local domain name servers. When the task management node is configured for one task execution node and the task execution node is also configured for one local domain name server, the task management node is considered to be configured for one local domain name server. When the task management node is configured for one task execution node, but the task execution node is configured for a plurality of local domain name servers, or when the task management node is configured for a plurality of tasks, but each task execution node is configured for one or a plurality of local domain name servers, the task management node is considered to be configured for a plurality of local domain name servers. When the task management node is configured for a local domain name server, the local domain name server is the target local domain name server.
In one possible implementation manner, the task management node is configured for a plurality of local domain name servers, and in this case, in order to perform targeted pre-resolution on the set domain name to reduce resource consumption, the target local domain name server may be screened out of the plurality of local domain name servers for the set domain name before the domain name pre-resolution task is generated for the target local domain name server corresponding to the set domain name to be pre-resolved.
Because the target local domain name server is screened out from the plurality of local domain name servers, that is, the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the plurality of local domain name servers to pre-resolve the set domain name at the same time, and meanwhile, when the service of the plurality of local domain name servers covers a plurality of areas (for example, the service of each local domain name server covers one area, respectively), the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the plurality of local domain name servers with different service coverage areas to pre-resolve the set domain name at the same time.
For setting a domain name, screening the target local domain name server from the plurality of local domain name servers may mean that the domain name server information corresponding to the setting of the domain name is obtained first, and then the target local domain name server is screened from the plurality of local domain name servers according to the domain name server information. In an example, obtaining domain name server information corresponding to a set domain name refers to resolving a pre-resolution request for the set domain name, and obtaining domain name server information carried in the pre-resolution request, where the pre-resolution request is used to request a task management node to generate a domain name pre-resolution task. In another example, screening the target local domain name server from the plurality of local domain name servers according to the domain name server information refers to reading the domain name server information to obtain a local domain name server having a pre-resolution requirement on the set domain name, so as to screen the target local domain name server from the plurality of local domain name servers.
In one possible implementation manner, in order to enable the operator of the set domain name to pre-resolve the set domain name, before generating the domain name pre-resolving task for the target local domain name server corresponding to the set domain name to be pre-resolved, the pre-resolving request submitted by the operator of the set domain name may be acquired first, and then the pre-resolving request is resolved again to acquire the set domain name.
The pre-resolution request submitted by the operator who obtains the set domain name may refer to a pre-resolution request sent by the operator who receives the set domain name through the user terminal or the server.
In one possible implementation manner, in order to generate a domain name preresolved task at a more reasonable time, so as to avoid wasting computing resources, before generating the domain name preresolved task, whether a historical domain name resolution result corresponding to a set domain name is stored in a target local domain name server or not can be determined first, and then when the historical domain name resolution result is stored in the target local domain name server, the remaining survival time of the historical domain name resolution result in the target local domain name server can be determined. Under the condition that the residual life time is determined, generating a domain name pre-resolution task aiming at the target local domain name server only under the condition that the residual life time does not exceed a corresponding duration threshold value.
Specifically, when the duration threshold is 0, if the survival time does not exceed 0, the historical domain name resolution result is considered to be outdated, and at this time, a domain name pre-resolution task can be generated aiming at the target local domain name server. When the duration threshold is a value larger than 0, if the survival time does not exceed the duration threshold, the historical domain name resolution result is considered to be outdated, and at the moment, a domain name pre-resolution task can be generated for the target local domain name server. That is, in the case where the historical domain name resolution results have expired or are about to expire, the domain name pre-resolution task may be generated for the target local domain name server.
In the case where the historical domain name resolution result is stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request for a set domain name from a terminal device, a server, or the like, the target local domain name server may directly determine the historical domain name resolution result as a domain name resolution result without performing multiple recursive queries. If the historical domain name resolution result is stored in the target local domain name server, the domain name pre-resolution task is generated to control the target task execution node to send a domain name resolution request to the target local domain name server so as to trigger the target local domain name server to acquire and store the domain name resolution result corresponding to the set domain name, the calculation resource is wasted, and if the residual survival time does not exceed the corresponding duration threshold, the domain name pre-resolution task is generated for the target local domain name server, so that the condition of the calculation resource waste can be avoided as much as possible.
In addition, when the historical domain name resolution result is not stored in the target local domain name server, a domain name pre-resolution task can be generated for the target local domain name server at a set time point. The set time point can be set according to the pre-analysis requirement.
In an example, in order to quickly confirm whether the historical domain name resolution result corresponding to the set domain name is stored in the target local domain name server, when determining whether the historical domain name resolution result corresponding to the set domain name is stored in the target local domain name server, whether the domain name resolution record provided by the target task execution node for the set domain name is stored in the set storage medium may be searched first, and then, when the domain name resolution record is stored in the set storage medium, the historical domain name resolution result is stored in the target local domain name server. Wherein, the history domain name resolution result is recorded in the domain name resolution record.
In another example, in order to reduce resource consumption of the task management node, when determining whether the target local domain name server stores the historical domain name resolution result corresponding to the set domain name, the task management node may first send a result determination request to the target task execution node, then acquire a request confirmation result fed back by the target task execution node for the result determination request, when the request confirmation result is used for indicating that the target local domain name server stores the historical domain name resolution result corresponding to the set domain name, it is determined that the target local domain name server stores the historical domain name resolution result corresponding to the set domain name, and when the request confirmation result is used for indicating that the target local domain name server does not store the historical domain name resolution result corresponding to the set domain name, it is determined that the target local domain name server does not store the historical domain name resolution result corresponding to the set domain name.
In an example, the generation time point of the historical domain name resolution result and the survival time of the historical domain name resolution result in the target local domain name server are also recorded in the domain name resolution record, in which case, determining the remaining survival time of the historical domain name resolution result in the target local domain name server may mean that when the domain name resolution record is stored in the set storage medium, the generation time point and the survival time are obtained through the domain name resolution record, and then the remaining survival time is determined according to the current time point, the generation time point and the survival time.
For example: the target local domain name server is a local domain name server Y disposed in the Y region, and after a terminal device, a server, or the like sends a request for setting a domain name to the local domain name server Y, the local domain name server Y obtains a domain name resolution result, and sets the lifetime of the domain name resolution result to 40 seconds based on a set storage requirement. After obtaining the domain name resolution result and the lifetime of the domain name resolution result, the target local domain name server records the domain name resolution result, the lifetime and the generation time point in the domain name resolution record. The target local domain name server responds to a record acquisition request sent by the target task execution node and feeds back a domain name resolution record to the target task execution node, and the target task execution node sends the domain name resolution record to the task management node after receiving the domain name resolution record.
After receiving the domain name resolution record, the task management node stores the domain name resolution record in a set storage medium, and then determines the domain name resolution result as a historical domain name resolution result corresponding to the set domain name, in which case, the generation time point of the domain name resolution result is converted into the generation time point of the historical domain name resolution result, and the survival time of the domain name resolution result in the local domain name server Y is converted into the survival time of the historical domain name resolution result in the local domain name server Y. When determining the remaining survival time of the historical domain name resolution result in the target local domain name server, the generation time point (10 hours 20 minutes 00 seconds) and the survival time (40 seconds) can be acquired through the domain name resolution record, and then the remaining survival time (4 seconds) is determined according to the current time point (10 hours 20 minutes 36 seconds), the generation time point and the survival time. When the duration threshold is 5 seconds, determining that the remaining survival time (4 seconds) does not exceed the duration threshold (5 seconds), at this time, generating a domain name pre-resolution task, and sending the domain name pre-resolution task to a target task execution node, where the domain name pre-resolution task is used for controlling the target task execution node to execute the domain name pre-resolution task in a range of 10:20:40 (point in time when the historical domain name resolution results expire) a domain name resolution request for the set domain name is sent to the target local domain name server.
In addition, when determining the remaining survival time of the historical domain name resolution result in the target local domain name server, the generation time point (10 hours, 20 minutes and 00 seconds) and the survival time (40 seconds) can be obtained through the domain name resolution record, the time point (10:20:40) when the historical domain name resolution result expires is determined, then, a domain name pre-resolution task is generated aiming at the target local domain name server and is sent to the target task execution node, and the target task execution node can be controlled by the domain name pre-resolution task to be at 10:20:40 (point in time when the historical domain name resolution results expire) a domain name resolution request for the set domain name is sent to the target local domain name server.
In the embodiment of the present application, after the domain name pre-resolution task is generated, step S202 is further performed. In step S202, the domain name preresolved task is sent to the target task execution node, so as to control the target task execution node to send a domain name resolution request for the set domain name to the target local domain name server, where the target task execution node has access rights to the target local domain name server, and the domain name resolution request is used to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
According to the domain name pre-resolution processing method provided by the embodiment of the application, a domain name pre-resolution task is generated for a target local domain name server corresponding to a set domain name to be pre-resolved, then the domain name pre-resolution task is sent to a target task execution node, so that the target task execution node is controlled to send a domain name resolution request for the set domain name to the target local domain name server, wherein the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
After the domain name pre-resolution task is sent to the target task execution node, the target task execution node can send a domain name resolution request to the target local domain name server, so that the target local domain name server is triggered to acquire and store a domain name resolution result corresponding to the set domain name. That is, the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the target local domain name server to acquire and store the corresponding domain name resolution result for the set domain name to be pre-resolved. Under the condition that the corresponding domain name resolution results are stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request of terminal equipment, a server and the like for a set domain name, the domain name resolution results can be obtained without repeated recursion query, and the domain name resolution results are fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access websites corresponding to the set domain name according to the domain name resolution results. The domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of the website can be improved.
In addition, in the domain name pre-resolution processing method provided in the embodiment of the present application, a domain name pre-resolution task is sent to a target task execution node having access to a target local domain name server, so as to control the target task execution node to send a domain name resolution request to the target local domain name server, and trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name. Therefore, for any party requiring pre-resolution of the set domain name, no matter whether the party requiring pre-resolution has access right to the target local domain name server or not, as long as the party requiring pre-resolution can trigger the task management node to generate the domain name pre-resolution task and send the domain name pre-resolution task to the target task execution node, the target local domain name server can be triggered to acquire and store the corresponding domain name resolution result, so that the time spent in the domain name resolution stage is reduced, and the access speed of the website is improved.
The embodiment of the present application further provides another domain name pre-resolution processing method, as shown in fig. 3, which is a flowchart of a domain name pre-resolution processing method 300 according to another embodiment of the present application, where the method 300 is applied to a task execution node, and may include steps S301 to S302.
In step S301, in response to the domain name pre-resolution task sent by the task management node, determining a corresponding target local domain name server for a set domain name corresponding to the domain name pre-resolution task; the domain name pre-resolution task is generated by the task management node for the target local domain name server.
In response to a domain name pre-resolution task sent by a task management node, determining a corresponding target local domain name server may refer to determining a set domain name in response to the domain name pre-resolution task, and then determining a target local domain name server in response to the domain name pre-resolution task.
When the task execution node is configured for a local domain name server, the local domain name server is the target local domain name server.
In one possible implementation manner, the task execution node screens out the corresponding target local domain name server from the plurality of local domain name servers, and the services of the plurality of local domain name servers cover one or more areas, so that in order to save computing resources, when determining the corresponding target local domain name server for the set domain name corresponding to the domain name pre-resolution task, domain name server information corresponding to the set domain name can be acquired first, and then the target local domain name server is screened out from the plurality of local domain name servers with access rights of the task execution node according to the domain name server information.
The area covered by the services of the plurality of local domain name servers may be only one or a plurality of. In one example, the areas covered by the services of each of the plurality of local domain name servers are different from each other.
In one possible implementation manner, after sending a domain name resolution request for a set domain name to the target local domain name server, a domain name resolution record fed back by the target local domain name server for the domain name resolution request may be obtained first, and then the domain name resolution record is sent to the task management node, so that the task management node generates a next domain name pre-resolution task for the set domain name according to the domain name resolution record. The domain name resolution record records a domain name resolution result, a generation time point of the domain name resolution result and a survival time of the domain name resolution result in the target local domain name server.
In the embodiment of the present application, after determining the target local domain name server, S302 is further performed. In step S302, a domain name resolution request for the set domain name is sent to the target local domain name server, so as to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
In the domain name pre-resolution processing method provided by the embodiment of the application, a corresponding target local domain name server is determined for a set domain name corresponding to a domain name pre-resolution task in response to the domain name pre-resolution task, and then a domain name resolution request for the set domain name is sent to the target local domain name server so as to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
After the domain name resolution request is sent to the target local domain name server, the target local domain name server can be triggered to acquire and store the domain name resolution result corresponding to the set domain name. That is, the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the target local domain name server to acquire and store the corresponding domain name resolution result for the set domain name to be pre-resolved. Under the condition that the corresponding domain name resolution results are stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request of terminal equipment, a server and the like for a set domain name, the domain name resolution results can be obtained without repeated recursion query, and the domain name resolution results are fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access websites corresponding to the set domain name according to the domain name resolution results. The domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of the website can be improved.
In addition, in the domain name pre-resolution processing method provided in the embodiment of the present application, a domain name pre-resolution task is sent to a target task execution node having access to a target local domain name server, so as to control the target task execution node to send a domain name resolution request to the target local domain name server, and trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name. Therefore, for any party requiring pre-resolution of the set domain name, no matter whether the party requiring pre-resolution has access right to the target local domain name server or not, as long as the party requiring pre-resolution can trigger the task management node to generate the domain name pre-resolution task and send the domain name pre-resolution task to the target task execution node, the target local domain name server can be triggered to acquire and store the corresponding domain name resolution result, so that the time spent in the domain name resolution stage is reduced, and the access speed of the website is improved.
Corresponding to the application example of the method and the two domain name pre-resolution processing methods provided by the embodiment of the application, the embodiment of the application also provides a domain name pre-resolution processing system. As shown in fig. 4, which is a block diagram illustrating a domain name pre-resolution processing system 400 according to an embodiment of the present application, the system 400 may include: a task management node 401, a target task execution node 402, and a target local domain name server 403;
A task management node 401, configured to execute the first domain name pre-resolution processing method provided in the embodiments of the present application, so as to send a domain name pre-resolution task to a target task execution node 402;
a target task execution node 402, configured to execute the second domain name pre-resolution processing method provided in the embodiments of the present application, so as to send a domain name resolution request to a target local domain name server 403;
the target local domain name server 403 is configured to, when receiving a domain name resolution request, obtain and store a domain name resolution result in response to the domain name resolution request; the domain name resolution result is sent to the target task execution node 402.
The embodiment of the present application further provides a processing method for domain name pre-resolution, as shown in fig. 5, which is a flowchart of a processing method 500 for domain name pre-resolution according to another embodiment of the present application, where the method 500 is applied to a task management node, and may include steps S501-S503.
In step S501, for a set domain name to be pre-resolved, a corresponding target local domain name server is screened out from a plurality of local domain name servers according to domain name server information; the domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names; the services of multiple local domain name servers cover one or more areas.
When a task management node is configured for one task execution node, but the task execution node is configured for a plurality of local domain name servers, or when the task management node is configured for a plurality of tasks execution nodes, and each task execution node is configured for one or a plurality of tasks execution nodes, the task management node can be considered to be configured for a plurality of local domain name servers.
The domain name server information is used to represent a local domain name server having preresolved requirements for setting a domain name. In an example, obtaining domain name server information corresponding to a set domain name refers to resolving a pre-resolution request for the set domain name, and obtaining domain name server information carried in the pre-resolution request, where the pre-resolution request is used to request a task management node to generate a domain name pre-resolution task. In another example, screening the target local domain name server from the plurality of local domain name servers according to the domain name server information refers to reading the domain name server information to obtain a local domain name server having a pre-resolution requirement on the set domain name, so as to screen the target local domain name server from the plurality of local domain name servers.
In step S502, a domain name pre-resolution task is generated for the target local domain name server.
In step S503, the domain name preresolved task is sent to the target task execution node, so as to control the target task execution node to send a domain name resolution request for the set domain name to the target local domain name server, where the target task execution node has access rights to the target local domain name server, and the domain name resolution request is used to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
According to the domain name pre-resolution processing method provided by the embodiment of the application, firstly, aiming at a set domain name to be pre-resolved, a corresponding target local domain name server is screened out from a plurality of local domain name servers according to domain name server information, then, aiming at the target local domain name server corresponding to the set domain name to be pre-resolved, a domain name pre-resolution task is generated, then, the domain name pre-resolution task is sent to a target task execution node, so that the target task execution node is controlled to send a domain name resolution request aiming at the set domain name to the target local domain name server, wherein the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
After the domain name pre-resolution task is sent to the target task execution node, the target task execution node can send a domain name resolution request to the target local domain name server, so that the target local domain name server is triggered to acquire and store a domain name resolution result corresponding to the set domain name. That is, the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the target local domain name server to acquire and store the corresponding domain name resolution result for the set domain name to be pre-resolved. Under the condition that the corresponding domain name resolution results are stored in the target local domain name server, if the target local domain name server obtains a domain name resolution request of terminal equipment, a server and the like for a set domain name, the domain name resolution results can be obtained without repeated recursion query, and the domain name resolution results are fed back to the terminal equipment, the server and the like, so that the terminal equipment, the server and the like can access websites corresponding to the set domain name according to the domain name resolution results. The domain name resolution result can be obtained without repeated recursion inquiry, so that the time spent in the domain name resolution stage can be reduced, and the access speed of the website can be improved.
In addition, in the domain name pre-resolution processing method provided in the embodiment of the present application, a domain name pre-resolution task is sent to a target task execution node having access to a target local domain name server, so as to control the target task execution node to send a domain name resolution request to the target local domain name server, and trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name. Therefore, for any party requiring pre-resolution of the set domain name, no matter whether the party requiring pre-resolution has access right to the target local domain name server or not, as long as the party requiring pre-resolution can trigger the task management node to generate the domain name pre-resolution task and send the domain name pre-resolution task to the target task execution node, the target local domain name server can be triggered to acquire and store the corresponding domain name resolution result, so that the time spent in the domain name resolution stage is reduced, and the access speed of the website is improved.
In addition, since the target local domain name server is selected from the plurality of local domain name servers, that is, the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the plurality of local domain name servers to pre-resolve the set domain name at the same time, and meanwhile, when the service of the plurality of local domain name servers covers a plurality of areas (for example, the service of each local domain name server covers one area, respectively), the domain name pre-resolution processing method provided in the embodiment of the present application can trigger the plurality of local domain name servers with different service coverage areas to pre-resolve the set domain name at the same time. And the target local domain name server is screened out from the plurality of local domain name servers, so that the set domain name can be subjected to targeted pre-resolution, and the resource consumption is reduced.
Corresponding to the application example of the method and the first domain name pre-resolution processing method provided by the embodiment of the application, the embodiment of the application also provides a domain name pre-resolution processing device. Fig. 6 is a block diagram of a domain name pre-resolution processing apparatus 600 according to an embodiment of the present application, where the apparatus 600 is applied to a task management node, and may include:
the task generating module 601 is configured to generate a domain name preresolved task for a target local domain name server corresponding to a set domain name to be preresolved;
the task sending module 602 is configured to send a domain name preresolved task to a target task execution node, so as to control the target task execution node to send a domain name resolution request for a set domain name to a target local domain name server, where the target task execution node has access rights to the target local domain name server, and the domain name resolution request is used to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
In one possible implementation, the task management node is configured for a plurality of local domain name servers; the services of the plurality of local domain name servers cover one or more areas; the task generating module 601 is further configured to obtain domain name server information corresponding to the set domain name; the domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names; and screening target local domain name servers from the plurality of local domain name servers according to the domain name server information.
In one possible implementation, the apparatus further includes:
the pre-resolution request acquisition module is used for acquiring a pre-resolution request submitted by an operation main body of a set domain name before generating a domain name pre-resolution task aiming at a target local domain name server corresponding to the set domain name to be pre-resolved;
the set domain name acquisition module is used for analyzing the pre-analysis request and acquiring the set domain name.
In one possible implementation, the apparatus further includes:
the historical domain name resolution result determining module is used for determining whether a historical domain name resolution result corresponding to the set domain name is stored in the target local domain name server before generating a domain name pre-resolution task aiming at the target local domain name server corresponding to the set domain name to be pre-resolved;
the residual survival time determining module is used for determining the residual survival time of the historical domain name resolution result in the target local domain name server when the historical domain name resolution result is stored in the target local domain name server;
the task generating module 601 is specifically configured to generate, for the target local domain name server, a domain name pre-resolution task when the remaining lifetime does not exceed the corresponding duration threshold.
In one possible implementation, the historical domain name resolution result determination module includes:
The domain name resolution record searching sub-module is used for searching whether a domain name resolution record provided by a target task execution node for a set domain name is stored in the set storage medium; the domain name resolution record records historical domain name resolution results;
the historical domain name resolution result determining sub-module is used for determining that the historical domain name resolution result is stored in the target local domain name server under the condition that the domain name resolution record is stored in the set storage medium.
In one possible implementation manner, the generation time point of the historical domain name resolution result and the survival time of the historical domain name resolution result in the target local domain name server are also recorded in the domain name resolution record; the remaining survival time determining module comprises:
the data acquisition sub-module is used for acquiring a generation time point and a survival time through the domain name resolution record when the domain name resolution record is stored in the set storage medium;
and the survival time determining sub-module is used for determining the residual survival time according to the current time point, the generation time point and the survival time.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and have corresponding beneficial effects, which are not described herein.
Corresponding to the application example of the method and the second domain name pre-resolution processing method provided by the embodiment of the application, the embodiment of the application also provides another domain name pre-resolution processing device. Fig. 7 is a block diagram of a domain name pre-resolution processing apparatus 700 according to another embodiment of the present application, where the apparatus 700 is applied to a task management node, and may include:
the task generating module 701 is configured to determine, in response to a domain name preresolved task sent by the task management node, a corresponding target local domain name server for a set domain name corresponding to the domain name preresolved task; the domain name pre-resolution task is generated by a task management node aiming at a target local domain name server;
the task sending module 702 is configured to send a domain name resolution request for the set domain name to the target local domain name server, so as to trigger the target local domain name server to obtain and store a domain name resolution result corresponding to the set domain name.
In one possible implementation manner, the task generating module 701 is specifically configured to obtain domain name server information corresponding to a set domain name; the domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names; screening out a target local domain name server from a plurality of local domain name servers with access rights of a task execution node according to the domain name server information; the services of multiple local domain name servers cover one or more areas.
In one possible implementation, the apparatus further includes:
the record receiving module is used for acquiring a domain name resolution record fed back by the target local domain name server aiming at the domain name resolution request; the domain name resolution record is recorded with a domain name resolution result, a generation time point of the domain name resolution result and the survival time of the domain name resolution result in the target local domain name server;
the record sending module is used for sending the domain name resolution record to the task management node so that the task management node can generate a next domain name pre-resolution task aiming at the set domain name according to the domain name resolution record.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and have corresponding beneficial effects, which are not described herein.
Corresponding to the application example of the method provided by the embodiment of the application and the third domain name pre-resolution processing method, the embodiment of the application also provides a further domain name pre-resolution processing device. Fig. 8 is a block diagram of a domain name pre-resolution processing apparatus 800 according to another embodiment of the present application, where the apparatus 800 is applied to a task management node, and may include:
the server screening module 801 is configured to screen a corresponding target local domain name server from a plurality of local domain name servers according to domain name server information for a set domain name to be pre-resolved; the domain name server information is used for representing a local domain name server with pre-resolution requirements for setting domain names; the services of the plurality of local domain name servers cover one or more areas;
A task generating module 802, configured to generate a domain name preresolved task for a target local domain name server;
the task sending module 803 is configured to send a domain name preresolved task to a target task execution node, so as to control the target task execution node to send a domain name resolution request for a set domain name to a target local domain name server, where the target task execution node has access rights to the target local domain name server, and the domain name resolution request is used to trigger the target local domain name server to obtain and store a domain name resolution result corresponding to the set domain name; and sending the domain name resolution result to the target task execution node.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and have corresponding beneficial effects, which are not described herein.
Fig. 9 is a block diagram of an electronic device used to implement an embodiment of the present application. As shown in fig. 9, the electronic device includes: a memory 901 and a processor 902, the memory 901 storing a computer program executable on the processor 902. The processor 902, when executing the computer program, implements the methods in the above embodiments. The number of memories 901 and processors 902 may be one or more.
The electronic device further includes:
the communication interface 903 is used for communicating with external devices and performing data interaction transmission.
If the memory 901, the processor 902, and the communication interface 903 are implemented independently, the memory 901, the processor 902, and the communication interface 903 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 901, the processor 902, and the communication interface 903 are integrated on a chip, the memory 901, the processor 902, and the communication interface 903 may communicate with each other through internal interfaces.
The present embodiments provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods provided in the embodiments of the present application.
The embodiment of the application also provides a chip, which comprises a processor and is used for calling the instructions stored in the memory from the memory and running the instructions stored in the memory, so that the communication device provided with the chip executes the method provided by the embodiment of the application.
The embodiment of the application also provides a chip, which comprises: the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the application embodiment.
It should be appreciated that the processor described above may be a processor (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further alternatively, the memory may include a read-only memory and a random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double data Rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Any process or method described in flow charts or otherwise herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed in a substantially simultaneous manner or in an opposite order from that shown or discussed, including in accordance with the functions that are involved.
Logic and/or steps described in the flowcharts or otherwise described herein, e.g., may be considered a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the methods of the embodiments described above may be performed by a program that, when executed, comprises one or a combination of the steps of the method embodiments, instructs the associated hardware to perform the method.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above is merely an exemplary embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about various changes or substitutions within the technical scope of the present application, and these should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A processing method for domain name pre-resolution, applied to a task management node, the method comprising:
generating a domain name preresolved task aiming at a target local domain name server corresponding to a set domain name to be preresolved;
the domain name pre-resolution task is sent to a target task execution node so as to control the target task execution node to send a domain name resolution request for the set domain name to the target local domain name server, the target task execution node has access right to the target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
2. The method of claim 1, wherein the task management node is configured for a plurality of local domain name servers; the services of the plurality of local domain name servers cover one or more areas; before the target local domain name server corresponding to the set domain name to be pre-resolved generates the domain name pre-resolving task, the method further comprises:
Acquiring domain name server information corresponding to the set domain name; the domain name server information is used for indicating a local domain name server with pre-resolution requirements on the set domain name;
and screening the target local domain name server from the plurality of local domain name servers according to the domain name server information.
3. The method of claim 1, wherein, before generating the domain name pre-resolution task for the target local domain name server corresponding to the set domain name to be pre-resolved, the method further comprises:
acquiring a pre-resolution request submitted by an operation main body of the set domain name;
and analyzing the pre-analysis request to obtain the set domain name.
4. The method of claim 1, wherein, before generating the domain name pre-resolution task for the target local domain name server corresponding to the set domain name to be pre-resolved, the method further comprises:
determining whether a historical domain name resolution result corresponding to the set domain name is stored in the target local domain name server;
when the historical domain name resolution result is stored in the target local domain name server, determining the remaining survival time of the historical domain name resolution result in the target local domain name server;
The generating the domain name preresolved task for the target local domain name server corresponding to the set domain name to be preresolved includes:
and generating the domain name pre-resolution task aiming at the target local domain name server under the condition that the residual survival time does not exceed the corresponding duration threshold value.
5. The method of claim 4, wherein the determining whether the historical domain name resolution result corresponding to the set domain name is stored in the target local domain name server comprises:
searching whether a domain name resolution record provided by the target task execution node for the set domain name is stored in a set storage medium or not; the history domain name resolution result is recorded in the domain name resolution record;
and under the condition that the setting storage medium stores the domain name resolution record, determining that the historical domain name resolution result is stored in the target local domain name server.
6. The method of claim 5, wherein the domain name resolution record further records a time point of generation of the historical domain name resolution result and a lifetime of the historical domain name resolution result in the target local domain name server; the determining the remaining lifetime of the historical domain name resolution result in the target local domain name server comprises:
When the domain name resolution record is stored in the setting storage medium, acquiring the generation time point and the survival time through the domain name resolution record;
and determining the residual survival time according to the current time point, the generation time point and the survival time.
7. The method of claim 1, wherein the target task execution node is configured in an area covered by a service of the target local domain name server when the target local domain name server does not support public network access;
and when the target local domain name server supports public network access, the target task execution node is configured in any area which can be accessed to the target local domain name server.
8. A processing method for domain name pre-resolution, applied to a task execution node, the method comprising:
responding to a domain name pre-resolution task sent by a task management node, and determining a corresponding target local domain name server aiming at a set domain name corresponding to the domain name pre-resolution task; the domain name pre-resolution task is generated by the task management node aiming at the target local domain name server;
and sending a domain name resolution request aiming at the set domain name to the target local domain name server so as to trigger the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
9. The method of claim 8, wherein the determining the corresponding target local domain name server for the set domain name corresponding to the domain name pre-resolution task comprises:
acquiring domain name server information corresponding to the set domain name; the domain name server information is used for indicating a local domain name server with pre-resolution requirements on the set domain name;
screening the target local domain name server from a plurality of local domain name servers with access rights of the task execution node according to the domain name server information; the services of the plurality of local domain name servers cover one or more areas.
10. The method of claim 8, wherein after the sending of the domain name resolution request for the set domain name to the target local domain name server, the method further comprises:
acquiring a domain name resolution record fed back by the target local domain name server aiming at the domain name resolution request; the domain name resolution record is recorded with the domain name resolution result, a generation time point of the domain name resolution result and the survival time of the domain name resolution result in the target local domain name server;
And sending the domain name resolution record to the task management node so that the task management node can generate a next domain name pre-resolution task aiming at the set domain name according to the domain name resolution record.
11. A processing system for domain name pre-resolution, comprising: the system comprises a task management node, a target task execution node and a target local domain name server;
the task management node configured to perform the method of any one of claims 1-7, to send the domain name pre-resolution task to the target task execution node;
the target task execution node, configured to, upon receiving the domain name pre-resolution task, execute the method of any one of claims 8-10 to send the domain name resolution request to the target local domain name server;
the target local domain name server is used for responding to the domain name resolution request when receiving the domain name resolution request, and acquiring and storing the domain name resolution result; and sending the domain name resolution result to the target task execution node.
12. A processing method for domain name pre-resolution, applied to a task management node, the method comprising:
aiming at a set domain name to be pre-resolved, screening out a corresponding target local domain name server from a plurality of local domain name servers according to domain name server information; the domain name server information is used for indicating a local domain name server with pre-resolution requirements on the set domain name; the services of the plurality of local domain name servers cover one or more areas;
Generating a domain name pre-resolution task aiming at the target local domain name server;
the domain name pre-resolution task is sent to a target task execution node so as to control the target task execution node to send a domain name resolution request for the set domain name to the target local domain name server, the target task execution node has access right to the target local domain name server, and the domain name resolution request is used for triggering the target local domain name server to acquire and store a domain name resolution result corresponding to the set domain name.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of claims 1-10 and 12 when the computer program is executed.
14. A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method of any one of claims 1-10 and 12.
CN202310453880.7A 2023-04-23 2023-04-23 Domain name pre-resolution processing method, system, electronic equipment and storage medium Active CN116170410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310453880.7A CN116170410B (en) 2023-04-23 2023-04-23 Domain name pre-resolution processing method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310453880.7A CN116170410B (en) 2023-04-23 2023-04-23 Domain name pre-resolution processing method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116170410A CN116170410A (en) 2023-05-26
CN116170410B true CN116170410B (en) 2023-07-18

Family

ID=86414967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310453880.7A Active CN116170410B (en) 2023-04-23 2023-04-23 Domain name pre-resolution processing method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116170410B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324434A (en) * 2018-03-28 2019-10-11 阿里巴巴集团控股有限公司 Method, client, server and the electronic equipment of domain name mapping

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685604B (en) * 2013-12-20 2017-07-11 北京奇安信科技有限公司 A kind of domain name pre-parsed method and device
CN106161669A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 A kind of quick domain name analytic method and system and terminal thereof and server
CN106331215A (en) * 2016-08-30 2017-01-11 常州化龙网络科技股份有限公司 Data request processing system and processing method
CN110365810B (en) * 2019-07-23 2022-02-08 中南民族大学 Domain name caching method, device and equipment based on web crawler and storage medium
CN110636150B (en) * 2019-10-24 2023-04-18 北京小米移动软件有限公司 Domain name resolution method, domain name resolution device, and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324434A (en) * 2018-03-28 2019-10-11 阿里巴巴集团控股有限公司 Method, client, server and the electronic equipment of domain name mapping

Also Published As

Publication number Publication date
CN116170410A (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN111460460B (en) Task access method, device, proxy server and machine-readable storage medium
US11044262B2 (en) Method, apparatus and system for anti-attacking in domain name system (DNS)
KR102513998B1 (en) Communication methods and devices, entities and computer readable storage media
CN110730254B (en) Address allocation method, device, relay equipment and medium
CN107135242B (en) Mongodb cluster access method, device and system
CN114745356B (en) Domain name resolution method, device, equipment and readable storage medium
CN111586201A (en) Domain name resolution system, method, device and storage medium
CN109743357B (en) Method and device for realizing service access continuity
CN113055503B (en) IPv6 webpage link processing method, device, equipment and readable storage medium
CN116170410B (en) Domain name pre-resolution processing method, system, electronic equipment and storage medium
CN111741109A (en) Access method, device, equipment and storage medium based on proxy
CN113301173A (en) Domain name updating system and method, message forwarding method and server
CN114070820B (en) Domain name redirection method, device, medium and electronic equipment
JP2017118248A (en) Device, method and program for name resolution
CN115065664A (en) Internet protocol address recovery method, electronic equipment and storage medium
WO2017007982A1 (en) Passive delegations and records
CN110944037A (en) Method, computer device and storage medium for client cache change configuration
CN115484162B (en) Component adaptation method, device, server side and storage medium of software system
CN116436969B (en) Artificial intelligence engine proxy method and device
CN115250269B (en) File distribution method and device, storage medium and electronic equipment
CN114157635B (en) Domain name back-source method and device for content distribution network, equipment and storage medium
CN111147618B (en) Communication method, communication device, electronic equipment and storage medium
CN114466073A (en) Method and device for rapidly updating DNS cache records applicable to local area network range
CN116723171A (en) Domain name resolution method, system, device, equipment and medium
CN115914163A (en) Address information maintenance method, device, computer equipment and storage medium

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