CN109391707B - 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
CN109391707B
CN109391707B CN201811363026.7A CN201811363026A CN109391707B CN 109391707 B CN109391707 B CN 109391707B CN 201811363026 A CN201811363026 A CN 201811363026A CN 109391707 B CN109391707 B CN 109391707B
Authority
CN
China
Prior art keywords
server
domain name
target
analysis
resolution
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
CN201811363026.7A
Other languages
Chinese (zh)
Other versions
CN109391707A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811363026.7A priority Critical patent/CN109391707B/en
Publication of CN109391707A publication Critical patent/CN109391707A/en
Application granted granted Critical
Publication of CN109391707B publication Critical patent/CN109391707B/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
    • 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/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for domain name resolution, which comprises the following steps: receiving a domain name resolution request sent by terminal equipment; searching a target analysis strategy corresponding to a target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers; and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution. The method and the device select a target server from a plurality of resolution servers to perform domain name resolution processing, namely, a domain name resolution request comprising the target IP address is distributed to the plurality of resolution servers to perform domain name resolution respectively, instead of performing domain name resolution processing on all the domain name resolution requests comprising the target IP address by a DNS server to which the target IP address belongs, and the load of the DNS server is reduced.

Description

Domain name resolution method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for domain name resolution.
Background
The internet technology is rapidly developed, when a user accesses a website, a Domain Name System (DNS) server sends a Domain Name resolution request to a DNS server through a terminal device, the DNS server performs Domain Name resolution on a Domain Name in the Domain Name resolution request to obtain an IP address of the website, the IP address obtained by the resolution is returned to the user terminal, and the user terminal accesses the website according to the IP address.
However, when the DNS server receives a large number of domain name resolution requests in a short time, the DNS server is overloaded, that is, the number of received domain name resolution requests per second exceeds the number of domain name resolution requests that the DNS server can process per second, and at this time, the DNS server processes the domain name resolution requests overtime or rejects the processing, which results in that the user cannot normally access the website.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for domain name resolution, which select one resolution server from a plurality of resolution servers to perform domain name resolution on a domain name resolution request, and reduce the load of a DNS server.
Specifically, the method is realized through the following technical scheme:
a first aspect of the present application provides a method for domain name resolution, where the method includes:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
In one example, the selecting one resolution server from the set of servers of the target resolution policy as a target server includes:
and selecting one analysis server as a target server from the server set of the target analysis strategy in a polling mode.
In one example, the selecting one resolution server from the set of servers of the target resolution policy as a target server includes:
and selecting the analysis server with the minimum bandwidth utilization rate as the target server from the server set of the target analysis strategy.
In one example of the use of a magnetic resonance imaging system,
and each server set of the resolution policy comprises the DNS server to which the IP address corresponding to the resolution policy belongs.
In one example, the selecting one resolution server from the set of servers of the target resolution policy as a target server includes:
detecting whether the bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold value;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value, selecting one analysis server except the DNS server from the server set of the target analysis strategy as a target server.
In one example, the method further comprises:
receiving a domain name resolution result of the domain name resolution request returned by the target server;
and sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
A second aspect of the present application provides an apparatus for domain name resolution, the apparatus comprising:
the first receiving module is used for receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
the searching module is used for searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and the selection module is used for selecting one resolution server from the server set of the target resolution strategy as a target server and sending the domain name resolution request to the target server for domain name resolution.
In one example, the selection module includes:
and the first selection unit is used for selecting one analysis server from the server set of the target analysis strategy as the target server in a polling mode.
In one example, the selection module includes:
and a second selecting unit, configured to select, as the target server, an analysis server with a smallest bandwidth utilization rate from the server set of the target analysis policy.
In one example of the use of a magnetic resonance imaging system,
and each server set of the resolution policy comprises the DNS server to which the IP address corresponding to the resolution policy belongs.
In one example, the selection module includes:
the detection unit is used for detecting whether the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value;
and a third selecting unit, configured to select, when a bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold, one resolution server other than the DNS server from the server set of the target resolution policy as a target server.
In one example, the apparatus further comprises:
the second receiving module is used for receiving a domain name resolution result of the domain name resolution request returned by the target server;
and the response module is used for sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
A third aspect of the present application provides a device for domain name resolution, where the device includes: the system comprises an internal bus, a memory, a processor and an external interface which are connected through the internal bus; wherein,
the memory is used for storing machine readable instructions corresponding to the control logic of file storage;
the processor is configured to read the machine-readable instructions on the memory and execute the instructions to implement the following operations:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
A fourth aspect of the present application provides a machine-readable storage medium having stored thereon computer instructions that, when executed, perform the following:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
From the above, the technical solution provided by the present application has the following advantages:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address; searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers; and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution. In the target resolution strategy corresponding to the target IP address in the domain name resolution request, a plurality of resolution servers exist, one target server is selected from the plurality of resolution servers to perform domain name resolution processing, namely, the domain name resolution request comprising the target IP address is distributed to the plurality of resolution servers to perform domain name resolution respectively, instead of performing domain name resolution processing on all the domain name resolution requests comprising the target IP address by a DNS server to which the target IP address belongs, and the load of the DNS server is reduced.
Drawings
Fig. 1 is a flowchart illustrating a method for domain name resolution provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram illustrating a domain name resolution apparatus provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an embodiment of a device for domain name resolution provided in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
When a user accesses a website, a domain name resolution request is sent to a DNS (domain name system) server providing domain name resolution service for the website through terminal equipment (such as a mobile phone, a tablet computer, a notebook computer, intelligent wearable equipment and the like), wherein the domain name resolution request comprises an IP (Internet protocol) address of the DNS server. The DNS server receives the domain name resolution request, performs domain name resolution processing on the domain name resolution request, obtains an IP address of a website, and returns the IP address to the terminal equipment. And the terminal equipment accesses the website according to the IP address of the website.
However, when a large number of domain name resolution requests are simultaneously transmitted to the same DNS server in a short time, the number of domain name resolution requests received by the DNS server exceeds the number that can be processed by the DNS server, and at this time, the DNS server is overloaded, resulting in a timeout of domain name resolution request processing or a rejection of a response. The DNS server cannot normally respond to the IP address of the website obtained by the domain name resolution, and the user cannot normally access the website.
In order to solve the above problems, the present application provides a scheme for domain name resolution, which can effectively reduce the load of a DNS server, and the following describes the scheme in detail with reference to the accompanying drawings.
Exemplary method
Fig. 1 shows a flowchart of a method for domain name resolution provided in an embodiment of the present application, where the method includes:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address.
When a user needs to access a website, a domain name resolution request is sent to a DNS through terminal equipment, and a destination IP address in the domain name resolution request is the IP address of the DNS which needs to process the domain name resolution request.
102: and searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers.
In order to avoid overload of the DNS, a domain name resolution device provided by the application is arranged between the terminal equipment and the DNS, and can intercept a domain name resolution request sent to the DNS by the terminal equipment.
In the domain name resolution device, a preset resolution strategy set exists, each resolution strategy in the preset resolution strategy set comprises the corresponding relation between an IP address and a server set, a resolution server in the server set is represented, and a domain name resolution request with a target IP address being the IP address can be processed, namely the domain name resolution request sent to a DNS server to which the IP address belongs can be processed. Wherein each server set of resolution policies comprises a plurality of resolution servers. The following examples are given.
TABLE 1 Preset set of resolution strategies
Figure BDA0001865988690000061
Table 1 shows a preset resolution policy set, where the resolution policy-1 includes 101.56.2.88 and the corresponding relationships between resolution servers server-1, server-2, and server-3, and indicates that a domain name resolution request including the destination IP address 101.56.2.88 may be processed by resolution servers server-1, server-2, and server-3, and also indicates that a domain name resolution request sent to a DNS server with an IP address of 101.56.2.88 may be processed by resolution servers server-1, server-2, and server-3.
The resolution policy-2 includes 170.5.215.6 and the correspondence between resolution servers server-2, server-3, and server-4, which indicates that the domain name resolution request including the destination IP address 170.5.215.6 may be processed by resolution servers server-2, server-3, and server-4, and indicates that the domain name resolution request sent to the DNS server with IP address 170.5.215.6 may be processed by resolution servers server-2, server-3, and server-4.
The resolution policy-2 further includes 221.18.0.6 corresponding to resolution servers server-2, server-3, and server-4, which indicates that the domain name resolution request including the destination IP address 221.18.0.6 may be processed by resolution servers server-2, server-3, and server-4, and indicates that the domain name resolution request sent to the DNS server with IP address 221.18.0.6 may be processed by resolution servers server-2, server-3, and server-4.
It should be understood that table 1 is only used for illustrating a preset analysis policy set, and is not limited to the preset analysis policy set shown in table 1, and may be specifically configured according to actual needs.
When a domain name resolution request is received, a target IP address in the domain name resolution request is obtained, and a resolution strategy corresponding to the target IP address is searched from a preset resolution strategy set to serve as a target resolution strategy.
If the preset resolution strategy set comprises the corresponding relation between the destination IP address and the resolution strategy, the corresponding resolution strategy can be directly searched from the preset resolution strategy set as the target resolution strategy according to the destination IP address in the domain name resolution request.
If the preset analysis strategy set comprises the corresponding relation between the hash value of the destination IP address and the analysis strategy, calculating the hash value of the destination IP address in the domain name analysis request, and searching the analysis strategy corresponding to the hash value from the preset analysis strategy set to be used as the target analysis strategy.
Of course, other implementation manners may also be adopted to search for the target resolution policy corresponding to the destination IP address, which is not described herein any more.
103: and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
After the target resolution policy corresponding to the destination IP address is found, the domain name resolution request may be subjected to domain name resolution by using a resolution server in the server set of the target resolution policy. The server set of the target resolution policy includes a plurality of resolution servers, and one resolution server needs to be selected from the plurality of resolution servers to perform domain name resolution on the domain name resolution request.
According to the technical scheme, a plurality of domain name resolution requests sent to the same DNS can be distributed to a plurality of different resolution servers for domain name resolution, so that the load of the DNS is effectively reduced, the phenomenon that the DNS cannot respond normally when receiving a large number of domain name resolution requests in a short time is avoided, and a user can be ensured to normally access a website.
In one example, the selecting one resolution server from the set of servers of the target resolution policy as a target server includes:
and selecting one analysis server as a target server from the server set of the target analysis strategy in a polling mode.
After a target resolution policy corresponding to a target IP address in the domain name resolution request is determined, one resolution server needs to be selected from a server set of the target resolution policy as a target server. The domain name resolution request is sent to a resolution server, wherein one resolution server can be arbitrarily selected from a server set of a target resolution strategy as a target server, and the domain name resolution request is subjected to domain name resolution.
In one example, the sequence of processing the domain name resolution requests in the server set may be preset, and the domain name resolution is performed on the received domain name resolution requests one by one in a polling manner according to the preset sequence.
For example, the following steps are carried out: in the preset resolution policy set shown in table 1, if the resolution policy-2 is the target resolution policy, domain name resolution is preset according to the sequence of server-2, server-3, and server-4. When a domain name resolution request of which the first target IP address corresponds to the resolution strategy policy-2 is received, dispatching the domain name resolution request to the server-2 for domain name resolution; when a domain name resolution request of a second target IP address corresponding to the resolution strategy policy-2 is received, the domain name resolution request is dispatched to the server-3 for domain name resolution; when a domain name resolution request of a third target IP address corresponding to the resolution strategy policy-2 is received, dispatching the domain name resolution request to server-4 for domain name resolution; and when receiving a domain name resolution request of which the fourth target IP address corresponds to the resolution policy-2, returning and allocating the domain name resolution request to the server-2 for domain name resolution, and so on, so as to ensure that each resolution server in the server set performs domain name resolution as balanced as possible.
In another example, the selecting one resolution server from the set of servers of the target resolution policy as the target server comprises:
and selecting the analysis server with the minimum bandwidth utilization rate as the target server from the server set of the target analysis strategy.
The bandwidth utilization of a resolution server refers to the ratio of the bandwidth currently used by the resolution server to the maximum bandwidth that the resolution server can provide. The higher the bandwidth utilization of the resolution server, the greater the load of the resolution server.
Therefore, the analysis server with the smallest bandwidth utilization rate in the server set for searching the target analysis policy, that is, the analysis server with the smallest load in the server set for the target analysis policy is used as the target server, so that the load of the analysis server with the larger load can be more effectively reduced, and the load of each analysis server in the server set can be balanced.
In another example, each server set of the resolution policy includes a DNS server to which an IP address corresponding to the resolution policy belongs.
It can be understood that, in the preset resolution policy set, the server set in each resolution policy may include the DNS server to which the destination IP address in the resolution policy belongs, or may not include the DNS server to which the destination IP address in the resolution policy belongs. Any of the above manners of selecting the destination server may be adopted regardless of whether the DNS server to which the destination IP address belongs in the resolution policy is included.
Wherein, when the server set in each resolution policy includes the DNS server to which the destination IP address in the resolution policy belongs, the selecting one resolution server from the server set of the target resolution policy as the target server includes:
detecting whether the bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold value;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value, selecting one analysis server except the DNS server from the server set of the target analysis strategy as a target server, namely selecting the target server in a polling mode or selecting the analysis server with the minimum bandwidth utilization rate as the target server.
Whether the bandwidth utilization rate of a DNS server to which a target IP address of a domain name resolution request belongs exceeds a preset threshold value or not can be detected, if not, the load of the DNS server to which the target IP address belongs is not large, and the DNS server to which the target IP address belongs can be used for carrying out domain name resolution on the domain name resolution request; if so, the DNS server to which the target IP address belongs is indicated to have a large load, and in this case, one of the resolution servers except the DNS server is selected as the target server from the server set of the target resolution policy.
It is to be understood that, when one of the resolution servers other than the DNS server is selected as the target server, the target server may be selected in a polling manner according to any one of the above manners of selecting the target server, or the resolution server with the smallest bandwidth utilization rate may be selected as the target server.
In another example, the method further comprises:
receiving a domain name resolution result of the domain name resolution request returned by the target server;
and sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
After the target server is selected, the domain name resolution device sends the received domain name resolution request to the target server, and the target server performs domain name resolution on the domain name resolution request to obtain a domain name resolution result, namely the IP address of the website to be accessed.
And the target server returns the domain name resolution result to the domain name resolution device, the domain name resolution device sends a domain name resolution response to the terminal equipment, and the source IP address in the domain name resolution response is the destination IP address in the domain name resolution request, namely the IP address of the DNS server. After receiving the domain name resolution response, the terminal device can obtain a domain name resolution result in the domain name resolution response. Since the source IP address in the domain name resolution response is the IP address of the DNS server, the terminal device cannot sense that the domain name resolution request is subjected to domain name resolution by a non-DNS server.
And after the terminal equipment obtains the domain name resolution result, accessing the website according to the IP address of the website in the domain name resolution result.
According to the domain name resolution scheme, the domain name resolution request is distributed to a plurality of different resolution servers for domain name resolution, so that the load of the DNS server is reduced, and a user can normally access a website.
Exemplary devices
Fig. 2 shows a schematic structural diagram of a domain name resolution device provided in an embodiment of the present application, including:
a first receiving module 201, configured to receive a domain name resolution request sent by a terminal device, where the domain name resolution request includes a destination IP address.
The searching module 202 is configured to search a target resolution policy corresponding to the target IP address from a preset resolution policy set, where the preset resolution policy set includes multiple resolution policies, each resolution policy includes a server set, and the server set includes multiple resolution servers.
A selecting module 203, configured to select an analysis server from the server set of the target analysis policy as a target server, and send the domain name analysis request to the target server for domain name analysis.
Optionally, the selecting module includes:
and the first selection unit is used for selecting one analysis server from the server set of the target analysis strategy as the target server in a polling mode.
Optionally, the selecting module includes:
and a second selecting unit, configured to select, as the target server, an analysis server with a smallest bandwidth utilization rate from the server set of the target analysis policy.
Optionally, each server set of the resolution policy includes a DNS server to which an IP address corresponding to the resolution policy belongs.
Optionally, the selecting module includes:
the detection unit is used for detecting whether the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value;
and a third selecting unit, configured to select, when a bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold, one resolution server other than the DNS server from the server set of the target resolution policy as a target server.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a domain name resolution result of the domain name resolution request returned by the target server;
and the response module is used for sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
The apparatus shown in fig. 2 is an apparatus corresponding to the method shown in fig. 1, and the specific implementation manner is similar to the method shown in fig. 1, and reference is made to the description in the method shown in fig. 1, which is not repeated here.
Referring to fig. 3, it is intended that an embodiment of the apparatus for domain name resolution of the present application includes: an internal bus 310, and a memory 320, a processor 330, and an external interface 340 connected through the internal bus 310.
The memory 320 is used for storing machine readable instructions corresponding to control logic of file storage;
the processor 330 is configured to read the machine-readable instructions on the memory and execute the instructions to implement the following operations:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
In addition, the flow of domain name resolution shown in this embodiment may also be included in a computer-readable storage medium, where the storage medium may be connected to a processing device that executes instructions, and the storage medium stores thereon machine-readable instructions corresponding to control logic of a file storage, where the instructions are executable by the processing device, where the machine-readable instructions are used to implement the following operations:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the target IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
and selecting one resolution server from the server set of the target resolution strategy as a target server, and sending the domain name resolution request to the target server for domain name resolution.
In the embodiments of the present application, the computer readable storage medium may be in various forms, such as, in different examples: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof. In particular, the computer readable medium may be paper or another suitable medium upon which the program is printed. Using these media, the programs can be electronically captured (e.g., optically scanned), compiled, interpreted, and processed in a suitable manner, and then stored in a computer medium.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method of domain name resolution, the method comprising:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
setting a domain name resolution device between the terminal equipment and the DNS server, wherein the domain name resolution device comprises a preset resolution strategy set;
searching a target analysis strategy corresponding to the destination IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
selecting an analysis server from the server set of the target analysis strategy as a target server, and sending the domain name analysis request to the target server for domain name analysis;
each server set of the resolution strategy comprises a DNS server to which an IP address corresponding to the resolution strategy belongs;
detecting whether the bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold value;
when the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value, selecting an analysis server except the DNS server from the server set of the target analysis strategy as a target server;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs does not exceed a preset threshold value, taking the DNS server as a target server.
2. The method of claim 1, wherein selecting one resolution server from the set of servers of the target resolution policy as a target server comprises:
and selecting one analysis server as a target server from the server set of the target analysis strategy in a polling mode.
3. The method of claim 1, wherein selecting one resolution server from the set of servers of the target resolution policy as a target server comprises:
and selecting the analysis server with the minimum bandwidth utilization rate as the target server from the server set of the target analysis strategy.
4. The method according to any one of claims 1-3, further comprising:
receiving a domain name resolution result of the domain name resolution request returned by the target server;
and sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
5. An apparatus for domain name resolution, the apparatus comprising:
the first receiving module is used for receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
the searching module is used for searching a target analysis strategy corresponding to the destination IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
the selection module is used for selecting one resolution server from the server set of the target resolution strategy as a target server and sending the domain name resolution request to the target server for domain name resolution;
each server set of the resolution strategy comprises a DNS server to which an IP address corresponding to the resolution strategy belongs;
the detection unit is used for detecting whether the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value;
a third selecting unit, configured to select, when a bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold, one resolution server other than the DNS server from the server set of the target resolution policy as a target server;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs does not exceed a preset threshold value, taking the DNS server as a target server.
6. The apparatus of claim 5, wherein the selection module comprises:
and the first selection unit is used for selecting one analysis server from the server set of the target analysis strategy as the target server in a polling mode.
7. The apparatus of claim 5, wherein the selection module comprises:
and a second selecting unit, configured to select, as the target server, an analysis server with a smallest bandwidth utilization rate from the server set of the target analysis policy.
8. The apparatus of any one of claims 5-7, further comprising:
the second receiving module is used for receiving a domain name resolution result of the domain name resolution request returned by the target server;
and the response module is used for sending a domain name resolution response to the terminal equipment, wherein the domain name resolution response comprises the destination IP address and the domain name resolution result.
9. An apparatus for domain name resolution, the apparatus comprising: the system comprises an internal bus, a memory, a processor and an external interface which are connected through the internal bus; wherein,
the memory is used for storing machine readable instructions corresponding to the control logic of file storage;
the processor is configured to read the machine-readable instructions on the memory and execute the instructions to implement the following operations:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the destination IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
selecting an analysis server from the server set of the target analysis strategy as a target server, and sending the domain name analysis request to the target server for domain name analysis;
each server set of the resolution strategy comprises a DNS server to which an IP address corresponding to the resolution strategy belongs;
detecting whether the bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold value;
when the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value, selecting an analysis server except the DNS server from the server set of the target analysis strategy as a target server;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs does not exceed a preset threshold value, taking the DNS server as a target server.
10. A machine-readable storage medium having stored thereon computer instructions that, when executed, perform the following:
receiving a domain name resolution request sent by terminal equipment, wherein the domain name resolution request comprises a destination IP address;
searching a target analysis strategy corresponding to the destination IP address from a preset analysis strategy set, wherein the preset analysis strategy set comprises a plurality of analysis strategies, each analysis strategy comprises a server set, and the server set comprises a plurality of analysis servers;
selecting an analysis server from the server set of the target analysis strategy as a target server, and sending the domain name analysis request to the target server for domain name analysis;
each server set of the resolution strategy comprises a DNS server to which an IP address corresponding to the resolution strategy belongs;
detecting whether the bandwidth utilization rate of a DNS server to which the destination IP address belongs exceeds a preset threshold value;
when the bandwidth utilization rate of the DNS server to which the destination IP address belongs exceeds a preset threshold value, selecting an analysis server except the DNS server from the server set of the target analysis strategy as a target server;
and when the bandwidth utilization rate of the DNS server to which the destination IP address belongs does not exceed a preset threshold value, taking the DNS server as a target server.
CN201811363026.7A 2018-11-14 2018-11-14 Domain name resolution method, device, equipment and storage medium Active CN109391707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811363026.7A CN109391707B (en) 2018-11-14 2018-11-14 Domain name resolution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811363026.7A CN109391707B (en) 2018-11-14 2018-11-14 Domain name resolution method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109391707A CN109391707A (en) 2019-02-26
CN109391707B true CN109391707B (en) 2022-01-25

Family

ID=65429499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811363026.7A Active CN109391707B (en) 2018-11-14 2018-11-14 Domain name resolution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109391707B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049943A (en) * 2019-12-05 2020-04-21 北京小米移动软件有限公司 Method, device, equipment and medium for analyzing domain name

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN107147751A (en) * 2017-05-11 2017-09-08 上海红阵信息科技有限公司 Domain name analytic method and device
CN108183975A (en) * 2012-09-05 2018-06-19 阿里巴巴集团控股有限公司 A kind of method and system of domain name mapping

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8028090B2 (en) * 2008-11-17 2011-09-27 Amazon Technologies, Inc. Request routing utilizing client location information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN108183975A (en) * 2012-09-05 2018-06-19 阿里巴巴集团控股有限公司 A kind of method and system of domain name mapping
CN107147751A (en) * 2017-05-11 2017-09-08 上海红阵信息科技有限公司 Domain name analytic method and device

Also Published As

Publication number Publication date
CN109391707A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
EP3170091B1 (en) Method and server of remote information query
CN107026871B (en) Web vulnerability scanning method based on cloud computing
CN107666473B (en) Attack detection method and controller
US20190182270A1 (en) System and method for inquiring ioc information by p2p protocol
US20170289243A1 (en) Domain name resolution method and electronic device
US20170171147A1 (en) Method and electronic device for implementing domain name system
CN111064804B (en) Network access method and device
CN109525684B (en) Message forwarding method and device
CN112261094A (en) Message processing method and proxy server
US10067719B1 (en) Methods and systems for storing and accessing data in a distributed data storage system
CN105608159A (en) Data caching method and device
WO2019147636A1 (en) Application execution based on object recognition
CN106453349B (en) Account login method and device
CN106412079B (en) Request processing method and system
US11070614B2 (en) Load balancing method and related apparatus
CN109391707B (en) Domain name resolution method, device, equipment and storage medium
CN110708309A (en) Anti-crawler system and method
CN104144170A (en) URL filtering method, device and system
US10936968B2 (en) Ticket routing
US20210243248A1 (en) Cloud service load balancing
CN104468862A (en) IP address binding method, device and system
US10686817B2 (en) Identification of a DNS packet as malicious based on a value
CN109905486B (en) Application program identification display method and device
CN112187924A (en) Service request method, device, equipment and computer storage medium
CN103685318A (en) Data processing method and device for protecting network security

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