CN110753136B - Domain name resolution method, device, equipment and storage medium - Google Patents

Domain name resolution method, device, equipment and storage medium Download PDF

Info

Publication number
CN110753136B
CN110753136B CN201911018413.1A CN201911018413A CN110753136B CN 110753136 B CN110753136 B CN 110753136B CN 201911018413 A CN201911018413 A CN 201911018413A CN 110753136 B CN110753136 B CN 110753136B
Authority
CN
China
Prior art keywords
log
analysis
domain name
thread
unit time
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
CN201911018413.1A
Other languages
Chinese (zh)
Other versions
CN110753136A (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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201911018413.1A priority Critical patent/CN110753136B/en
Publication of CN110753136A publication Critical patent/CN110753136A/en
Application granted granted Critical
Publication of CN110753136B publication Critical patent/CN110753136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The embodiment of the invention discloses a domain name resolution method, a domain name resolution device, domain name resolution equipment and a storage medium. The method comprises the following steps: receiving a domain name request sent by a client; distributing the domain name request to at least two analysis threads for analysis, and obtaining an analysis log; sending the analysis log to a created log recording thread, so that the log recording thread writes the analysis log into a log file; and returning the analysis result output by the analysis thread to the client. According to the domain name resolution method provided by the embodiment of the invention, the records of the domain name resolution and the resolution log are respectively processed in two threads, so that the waiting of the domain name resolution process can be avoided, and the domain name resolution efficiency is improved.

Description

Domain name resolution method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of domain name resolution, in particular to a domain name resolution method, a domain name resolution device, domain name resolution equipment and a storage medium.
Background
When the server resolves the domain name request, it usually needs to record the generated resolution log. The analysis log contains information such as IP, request time, request domain name and the like of the request client, and the information is helpful for analyzing the domain name space and the network space, so that the network activity characteristics are obtained, and simultaneously, the requested data of the domain name can be obtained, and the accuracy of service area node deployment is improved. Therefore, recording of the resolution log becomes indispensable.
In the prior art, records of domain name resolution and resolution logs are allocated to the same thread for processing, so that in a resolution process, a resolution request can be queried only after the resolution log records are completed, and the read-write speed of a disk in the recording process of the resolution logs is far less than the running speed of a CPU in the domain name resolution process, so that the waiting of the resolution process is caused, and the domain name resolution efficiency is influenced.
Disclosure of Invention
Embodiments of the present invention provide a domain name resolution method, apparatus, device, and storage medium, so as to implement recording of resolution logs in a domain name resolution process, and improve efficiency of domain name resolution.
In a first aspect, an embodiment of the present invention provides a domain name resolution method, including:
receiving a domain name request sent by a client;
distributing the domain name request to at least two analysis threads for analysis, and obtaining an analysis log;
sending the analysis log to a created log recording thread, so that the log recording thread writes the analysis log into a log file;
and returning the analysis result output by the analysis thread to the client.
Further, before sending the analysis log to the created logging thread, so that the logging thread writes the analysis log into a log file, the method further includes:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
and creating a log file according to the number of the log files.
Further, still include:
acquiring the processable data volume of a single log recording thread in unit time;
determining the number of the log recording threads according to the data volume which can be processed by the single log recording thread in unit time and the data volume which can be processed by the log recording module in unit time;
and creating the logging threads according to the number of the logging threads.
Further, sending the analysis log to a created logging thread, so that the logging thread writes the analysis log into a log file, including:
sending the analysis log to a created log recording thread, and acquiring a log file of the current space;
and controlling a log recording thread to write the analysis log into a current idle log file.
Further, the parsing the log comprises: the IP of the client, the request time and the request domain name.
In a second aspect, an embodiment of the present invention further provides a domain name resolution apparatus, including:
the domain name request receiving module is used for receiving a domain name request sent by a client;
the analysis log acquisition module is used for distributing the domain name request to at least two analysis threads for analysis and acquiring an analysis log;
the analysis log sending module is used for sending the analysis log to the created log recording thread so that the log recording thread writes the analysis log into a log file;
and the analysis result returning module is used for returning the analysis result output by the analysis thread to the client.
Further, still include: a log file quantity obtaining module, configured to:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
and creating a log file according to the number of the log files.
In a third aspect, an embodiment of the present invention further provides a domain name resolution system, including: the domain name resolution module and the log recording module;
the domain name resolution module comprises at least two resolution threads; the at least two analysis threads are used for analyzing the received domain name request, generating an analysis log and sending the analysis log to the log recording module; returning the analysis result to the client;
the logging module comprises at least one logging thread; the at least one logging thread is used for recording the received analysis log into a log file.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the domain name resolution method according to the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the domain name resolution method according to the embodiment of the present invention.
According to the embodiment of the invention, firstly, a domain name request sent by a client is received, then the domain name request is distributed to at least two analysis threads for analysis, an analysis log is obtained, then the analysis log is sent to a created log recording thread, the log recording thread writes the analysis log into a log file, and finally, an analysis result output by the analysis thread is returned to the client. According to the domain name resolution method provided by the embodiment of the invention, the records of the domain name resolution and the resolution log are respectively processed in two threads, so that the waiting of the domain name resolution process can be avoided, and the domain name resolution efficiency is improved.
Drawings
FIG. 1 is a flowchart of a domain name resolution method according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating a relationship between a logging thread and a log file according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a domain name resolution apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a domain name resolution system in the third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
The Domain Name resolution method in this embodiment is based on Domain Name System (DNS) service in a Berkeley Internet Name Domain (Bind).
Fig. 1 is a flowchart of a domain name resolution method according to an embodiment of the present invention, where the method is applicable to domain name resolution, and the method may be executed by a domain name resolution device, where the domain name resolution device may be composed of hardware and/or software, and may be generally integrated in a device with a domain name resolution function, where the device may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in fig. 1, the method specifically includes the following steps:
step 110, receiving a domain name request sent by a client.
The domain name request may be a request sent by the client to access a website. In this embodiment, when a user wants to access a certain website, the link corresponding to the website is input into the search box of the client, and the client initiates a domain name request to the network card through the input link.
And step 120, distributing the domain name request to at least two analysis threads for analysis, and obtaining an analysis log.
The resolution log may include information such as an IP of the client, a request time, and a request domain name. The resolution thread may be pre-created to resolve received domain name requests. The resolution log may be generated when a domain name request is received, or the resolution thread may begin resolving the domain name request.
Specifically, when a domain name request sent by a client is received, a task corresponding to the domain name request is distributed to at least two analysis threads which are already established for analysis, and an analysis log corresponding to the analysis request is obtained.
Step 130, sending the analysis log to the created log recording thread, so that the log recording thread writes the analysis log into a log file.
The logging thread may be a thread created in advance for writing the parsing log into the log file.
Optionally, before sending the analysis log to the created log recording thread, so that the log recording thread writes the analysis log into the log file, the method further includes the following steps: acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file; determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files; and creating a log file according to the number of the log files.
The data volume that can be processed by the logging module in unit time may be an attribute that the logging module itself has, and is determined by a configuration parameter of the logging module. The amount of data that can be written in a log file per unit time can be determined by the attributes of the log file itself. Specifically, the number of log files is obtained by dividing the data amount that can be processed in the unit time of the log recording module by the data amount that can be written in the unit time of the log files. For example, assuming that the data amount that can be processed by the logging module in unit time is Q, and the data amount that can be written in the log file in unit time is C, the number of log files can be obtained according to the following formula: and Q is n C, wherein n is the number of log files needing to be created.
Optionally, the method further comprises the following steps: acquiring the processable data volume of a single log recording thread in unit time; determining the number of the log recording threads according to the data volume which can be processed by a single log recording thread in unit time and the data volume which can be processed by a log recording module in unit time; creating the logging thread according to the number of the logging threads.
The data amount that can be processed by a single logging thread per unit time may be an attribute that the logging thread itself has. Specifically, the number of the logging threads is obtained by dividing the data amount which can be processed by the logging module in unit time by the data amount which can be processed by a single logging thread in unit time, and finally the logging threads are determined according to the determined number. For example, assuming that the data amount that can be processed by the logging module per unit time is Q, and the data amount that can be processed by a single logging thread per unit time is W, the number of logging threads may be obtained according to the following formula: q is m W, where m is the number of logging threads.
In this embodiment, the number of log files may also be preset, and then the number of log recording threads that need to be created is determined according to the number of log files. The relation between the number of the log files and the number of the log recording threads is as follows: n C W, i.e. n/m W/C.
Optionally, the sending the analysis log to the created log recording thread, so that the process of writing the analysis log into the log file by the log recording thread may be: and sending the analysis log to the created log recording thread, acquiring a log file of the current space, and controlling the log recording thread to write the analysis log into the current idle log file.
Fig. 2 is a relationship diagram of a logging thread and a log file in the present embodiment. As shown in fig. 2, the logging thread may write the parse log into any free log file. Specifically, if there are a plurality of currently idle log files, the log recording thread randomly selects one log file to write the analysis log.
Step 140, returning the analysis result output by the analysis thread to the client.
The analysis result may be data of a webpage corresponding to the domain name sent by the client. Specifically, after the domain name is analyzed by the analysis thread, an analysis result is obtained, and the analysis result is returned to the value client, so that the data in the analysis result is displayed by the client.
According to the technical scheme, firstly, a domain name request sent by a client is received, then the domain name request is distributed to at least two analysis threads for analysis, an analysis log is obtained, then the analysis log is sent to a created log recording thread, the log recording thread writes the analysis log into a log file, and finally an analysis result output by the analysis thread is returned to the client. According to the domain name resolution method provided by the embodiment of the invention, the records of the domain name resolution and the resolution log are respectively processed in two threads, so that the waiting of the domain name resolution process can be avoided, and the domain name resolution efficiency is improved.
Example two
Fig. 3 is a schematic structural diagram of a domain name resolution apparatus according to a second embodiment of the present invention. As shown in fig. 3, the apparatus includes: the domain name request receiving module 210, the resolution log obtaining module 220, the resolution log sending module 230 and the resolution result returning module 240.
A domain name request receiving module 210, configured to receive a domain name request sent by a client;
the analysis log obtaining module 220 is configured to allocate the domain name request to at least two analysis threads for analysis, and obtain an analysis log;
an analysis log sending module 230, configured to send the analysis log to the created log recording thread, so that the log recording thread writes the analysis log into a log file;
and an analysis result returning module 240, configured to return an analysis result output by the analysis thread to the client.
Optionally, the method further includes: a log file quantity obtaining module, configured to:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
and creating a log file according to the number of the log files.
Optionally, the method further includes: a log thread number determination module to:
acquiring the processable data volume of a single log recording thread in unit time;
determining the number of the log recording threads according to the data volume which can be processed by a single log recording thread in unit time and the data volume which can be processed by a log recording module in unit time;
creating the logging thread according to the number of the logging threads.
Optionally, the parsing log obtaining module 220 is further configured to:
sending the analysis log to the created log recording thread, and acquiring a log file of the current space;
and controlling the log recording thread to write the analysis log into the currently idle log file.
Optionally, parsing the log includes: the IP of the client, the request time and the request domain name.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a domain name resolution system according to a third embodiment of the present invention. As shown in fig. 4, the system includes: the device comprises a domain name resolution module and a log recording module.
The domain name resolution module comprises at least two resolution threads; the at least two analysis threads are used for analyzing the received domain name request, generating an analysis log and sending the analysis log to the log recording module; returning the analysis result to the client;
the logging module comprises at least one logging thread; at least one logging thread is used for recording the received analysis log into a log file.
Example four
Fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention. The computer device 312 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. Device 312 is a typical domain name resolution enabled computing device.
As shown in FIG. 5, computer device 312 is in the form of a general purpose computing device. The components of computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with the computer device 312, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, computer device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), etc.) and/or a public Network, such as the internet, via Network adapter 320. As shown, network adapter 320 communicates with the other modules of computer device 312 via bus 318. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
Processor 316 executes various functional applications and data processing, such as implementing the domain name resolution methods provided by the above-described embodiments of the present invention, by executing programs stored in storage 328.
EXAMPLE five
The fourth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the domain name resolution method provided in the embodiments of the present invention.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the domain name resolution method provided by any embodiments of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A domain name resolution method is characterized by comprising the following steps:
receiving a domain name request sent by a client;
distributing the domain name request to at least two analysis threads for analysis, and obtaining an analysis log;
sending the analysis log to a created log recording thread, so that the log recording thread writes the analysis log into a log file;
before sending the analysis log to the created logging thread so that the logging thread writes the analysis log into a log file, the method further includes:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
creating log files according to the number of the log files;
acquiring the processable data volume of a single log recording thread in unit time;
determining the number of the log recording threads according to the data volume which can be processed by the single log recording thread in unit time and the data volume which can be processed by the log recording module in unit time;
creating log recording threads according to the number of the log recording threads;
and returning the analysis result output by the analysis thread to the client.
2. The method of claim 1, wherein sending the parse log to a created logging thread, such that the logging thread writes the parse log to a log file, comprises:
sending the analysis log to a created log recording thread, and acquiring a log file of the current space;
and controlling a log recording thread to write the analysis log into a current idle log file.
3. The method of any of claims 1-2, wherein parsing the log comprises: the IP of the client, the request time and the request domain name.
4. A domain name resolution apparatus, comprising:
the domain name request receiving module is used for receiving a domain name request sent by a client;
the analysis log acquisition module is used for distributing the domain name request to at least two analysis threads for analysis and acquiring an analysis log;
the analysis log sending module is used for sending the analysis log to the created log recording thread so that the log recording thread writes the analysis log into a log file;
the analysis result returning module is used for returning the analysis result output by the analysis thread to the client;
a log file quantity obtaining module, configured to:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
creating log files according to the number of the log files;
a log thread number determination module to:
acquiring the processable data volume of a single log recording thread in unit time;
determining the number of the log recording threads according to the data volume which can be processed by the single log recording thread in unit time and the data volume which can be processed by the log recording module in unit time;
and creating the logging threads according to the number of the logging threads.
5. A domain name resolution system, comprising: the domain name resolution module and the log recording module;
the domain name resolution module comprises at least two resolution threads; the at least two analysis threads are used for analyzing the received domain name request, generating an analysis log and sending the analysis log to the log recording module; returning the analysis result to the client;
before sending the analysis log to the created logging thread so that the logging thread writes the analysis log into a log file, the method further includes:
acquiring the data volume which can be processed in unit time of a log recording module and the data volume which can be written in unit time of a log file;
determining the number of log files according to the data volume which can be processed in the unit time of the log recording module and the data volume which can be written in the unit time of the log files;
creating log files according to the number of the log files;
acquiring the processable data volume of a single log recording thread in unit time;
determining the number of the log recording threads according to the data volume which can be processed by the single log recording thread in unit time and the data volume which can be processed by the log recording module in unit time;
creating log recording threads according to the number of the log recording threads;
the logging module comprises at least one logging thread; the at least one logging thread is used for recording the received analysis log into a log file.
6. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a domain name resolution method as claimed in any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a domain name resolution method according to any one of claims 1 to 3.
CN201911018413.1A 2019-10-24 2019-10-24 Domain name resolution method, device, equipment and storage medium Active CN110753136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018413.1A CN110753136B (en) 2019-10-24 2019-10-24 Domain name resolution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018413.1A CN110753136B (en) 2019-10-24 2019-10-24 Domain name resolution method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110753136A CN110753136A (en) 2020-02-04
CN110753136B true CN110753136B (en) 2022-03-04

Family

ID=69279783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018413.1A Active CN110753136B (en) 2019-10-24 2019-10-24 Domain name resolution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110753136B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935329B (en) * 2020-07-16 2023-03-31 郑州悉知信息科技股份有限公司 Domain name resolution method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461845A (en) * 2014-11-17 2015-03-25 中国航天科工集团第二研究院七〇六所 Self-adaption method of thread pool of log collection system
CN105224250A (en) * 2015-09-28 2016-01-06 互联网域名系统北京市工程研究中心有限公司 High-performance domain name mapping disposal route and device
CN106452867A (en) * 2016-08-10 2017-02-22 贵阳朗玛信息技术股份有限公司 Log message processing method and system
CN108600405A (en) * 2018-03-14 2018-09-28 中国互联网络信息中心 A kind of method and system accelerating dns resolution software log record

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9270693B2 (en) * 2013-09-19 2016-02-23 The Boeing Company Detection of infected network devices and fast-flux networks by tracking URL and DNS resolution changes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461845A (en) * 2014-11-17 2015-03-25 中国航天科工集团第二研究院七〇六所 Self-adaption method of thread pool of log collection system
CN105224250A (en) * 2015-09-28 2016-01-06 互联网域名系统北京市工程研究中心有限公司 High-performance domain name mapping disposal route and device
CN106452867A (en) * 2016-08-10 2017-02-22 贵阳朗玛信息技术股份有限公司 Log message processing method and system
CN108600405A (en) * 2018-03-14 2018-09-28 中国互联网络信息中心 A kind of method and system accelerating dns resolution software log record

Also Published As

Publication number Publication date
CN110753136A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110008045B (en) Method, device and equipment for aggregating microservices and storage medium
CN111221521A (en) Method and device for generating log code, computer system and readable storage medium
CN109471851B (en) Data processing method, device, server and storage medium
US20150081914A1 (en) Allocation of Resources Between Web Services in a Composite Service
CN111125555B (en) Enterprise information acquisition method and device
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN110704476A (en) Data processing method, device, equipment and storage medium
CN110781159B (en) Ceph directory file information reading method and device, server and storage medium
JP2022159405A (en) Method and device for appending data, electronic device, storage medium, and computer program
CN110929128A (en) Data crawling method, device, equipment and medium
CN113204345A (en) Page generation method and device, electronic equipment and storage medium
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CN110958127A (en) Exception handling method, device and equipment and computer storage medium
CN112433920A (en) Buried point data reporting method, device, equipment and medium
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
US20160283522A1 (en) Matching untagged data sources to untagged data analysis applications
US20140289722A1 (en) Parallel program installation and configuration
CN112100092A (en) Information caching method, device, equipment and medium
CN112584255B (en) Method and device for playing streaming media data, computer equipment and storage medium
CN110515803B (en) Processing method and device for log message and electronic equipment
US11301498B2 (en) Multi-cloud object store access
CN114090514A (en) Log retrieval method and device for distributed system
CN113885998A (en) Page rendering method and device, electronic equipment and storage medium
CN113722007A (en) Configuration method, device and system of VPN branch equipment

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