CN109391707A - Method, apparatus, equipment and the storage medium of domain name mapping - Google Patents

Method, apparatus, equipment and the storage medium of domain name mapping Download PDF

Info

Publication number
CN109391707A
CN109391707A CN201811363026.7A CN201811363026A CN109391707A CN 109391707 A CN109391707 A CN 109391707A CN 201811363026 A CN201811363026 A CN 201811363026A CN 109391707 A CN109391707 A CN 109391707A
Authority
CN
China
Prior art keywords
server
domain name
target
parsing
address
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.)
Granted
Application number
CN201811363026.7A
Other languages
Chinese (zh)
Other versions
CN109391707B (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

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

Abstract

This application discloses the method, apparatus of domain name mapping, equipment and storage mediums, comprising: the domain name mapping request that receiving terminal apparatus is sent;From preset parsing strategy set, target parsing strategy corresponding with target ip address is searched, includes multiple parsing strategies in preset parsing strategy set, includes a server set in each parsing strategy, server set includes multiple resolution servers;It selects a resolution server as destination server from the server set of target parsing strategy, translates domain names into request and be sent to destination server progress domain name mapping.A destination server is selected to carry out domain name mapping processing from multiple resolution servers, multiple resolution servers will be assigned to including the domain name mapping request of the target ip address carry out domain name mapping respectively, rather than all domain name mappings including the target ip address are requested, all the dns server as belonging to a target ip address carries out domain name mapping processing, reduces the load of the dns server.

Description

Method, apparatus, equipment and the storage medium of domain name mapping
Technical field
This application involves fields of communication technology, the in particular to method, apparatus, equipment and storage medium of domain name mapping.
Background technique
Internet technology rapid development, user first pass through terminal device to DNS (Domain Name when accessing website System, domain name system) server transmission domain name analysis request, dns server is to the domain name progress in domain name mapping request Domain name mapping obtains the IP address of the website, will parse obtained IP address and be back to the user terminal, user terminal is according to this IP address accesses the website.
But when dns server receives a large amount of domain name mapping request in a short period of time, it will cause the DNS Server load is overweight, i.e., the number of received domain name mapping request per second, which has been more than that the dns server is per second, to be capable of handling Number, at this point, processing time-out or refusal processing that dns server requests domain name mapping, cause user not access normally Website.
Summary of the invention
The application provides method, apparatus, equipment and the storage medium of domain name mapping, selects one from multiple resolution servers A resolution server requests domain name mapping to carry out domain name mapping, reduces the load of dns server.
Specifically, the application is achieved by the following technical solution:
The application first aspect provides a kind of method of domain name mapping, which comprises
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described pre- If parsing strategy set in include multiple parsings strategy, it is described including a server set during each parsing is tactful Server set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by institute It states domain name mapping request and is sent to the destination server progress domain name mapping.
In one example, described one resolution server of selection from the server set of target parsing strategy is made Include: for destination server
From the target parsing strategy server set in, selected by the way of poll a resolution server as Destination server.
In one example, described one resolution server of selection from the server set of target parsing strategy is made Include: for destination server
From the server set of target parsing strategy, select the smallest resolution server of bandwidth availability ratio as mesh Mark server.
In one example,
In the server set of each parsing strategy, taken including DNS belonging to the corresponding IP address of parsing strategy Business device.
In one example, described one resolution server of selection from the server set of target parsing strategy is made Include: for destination server
Whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than preset threshold;
When the bandwidth availability ratio of the dns server belonging to the destination IP address is more than preset threshold, from the target In the server set for parsing strategy, select a resolution server in addition to the dns server as destination server.
In one example, the method also includes:
Receive the domain name mapping result to domain name analysis request that the destination server returns;
Domain name resolution response is sent to the terminal device, domain name resolution response includes the destination IP address and institute State domain name mapping result.
The application second aspect provides a kind of device of domain name mapping, and described device includes:
First receiving module, for the domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes Purpose IP address;
Searching module, for searching target solution corresponding with the target ip address from preset parsing strategy set Analysis is tactful, includes multiple parsings strategies in the preset parsing strategy set, includes one in each parsing strategy and takes Business device set, the server set includes multiple resolution servers;
Selecting module, for selecting a resolution server as mesh from the server set of target parsing strategy Server is marked, domain name analysis request is sent to the destination server and carries out domain name mapping.
In one example, the selecting module includes:
First selecting unit, for being selected by the way of poll from the server set of target parsing strategy One resolution server is as destination server.
In one example, the selecting module includes:
Second selecting unit, for selecting bandwidth availability ratio minimum from the server set of target parsing strategy Resolution server as destination server.
In one example,
In the server set of each parsing strategy, taken including DNS belonging to the corresponding IP address of parsing strategy Business device.
In one example, the selecting module includes:
Detection unit, whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than pre- If threshold value;
Third selecting unit, the bandwidth availability ratio for working as dns server belonging to the destination IP address are more than default When threshold value, analysis service of the selection one in addition to the dns server from the server set of target parsing strategy Device is as destination server.
In one example, described device further include:
Second receiving module, the domain name mapping to domain name analysis request returned for receiving the destination server As a result;
Respond module, for sending domain name resolution response to the terminal device, domain name resolution response includes described Purpose IP address and domain name parsing result.
The application third aspect provides a kind of equipment of domain name mapping, and the equipment includes: internal bus, and by interior Memory, processor and the external interface of portion's bus connection;Wherein,
The memory, the corresponding machine readable instructions of control logic for storage file storage;
The processor for reading the machine readable instructions on the memory, and executes described instruction with reality Now following operation:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described pre- If parsing strategy set in include multiple parsings strategy, it is described including a server set during each parsing is tactful Server set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by institute It states domain name mapping request and is sent to the destination server progress domain name mapping.
The application fourth aspect provides a kind of machine readable storage medium, if being stored on the machine readable storage medium Dry computer instruction, the computer instruction, which is performed, to be handled as follows:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described pre- If parsing strategy set in include multiple parsings strategy, it is described including a server set during each parsing is tactful Server set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by institute It states domain name mapping request and is sent to the destination server progress domain name mapping.
As shown in the above, there are following advantages for technical solution provided by the present application:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;From default Parsing strategy set in, it is tactful to search the parsing of corresponding with target ip address target, the preset parsing set of strategies Include multiple parsing strategies in conjunction, includes a server set in each parsing strategy, the server set includes Multiple resolution servers;Select a resolution server as destination service from the server set of target parsing strategy Domain name analysis request is sent to the destination server and carries out domain name mapping by device.Destination IP in domain name mapping request In the corresponding target parsing strategy in address, there are multiple resolution servers, and a target clothes are selected from multiple resolution servers Business device carries out domain name mapping processing, i.e., the domain name mapping request including the target ip address is assigned to multiple resolution servers point Not carry out domain name mapping, rather than all domain name mappings including the target ip address are requested, all by a target ip address Affiliated dns server carries out domain name mapping processing, reduces the load of the dns server.
Detailed description of the invention
Fig. 1 shows the method flow diagram of domain name mapping provided by the embodiments of the present application;
Fig. 2 shows the apparatus structure schematic diagrams of domain name mapping provided by the embodiments of the present application;
Fig. 3 shows one embodiment schematic diagram of the equipment of domain name mapping provided by the present application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
User access website when, by terminal device (such as: mobile phone, tablet computer, laptop, intelligence wearing set It is standby etc.) to the dns server transmission domain name analysis request to website offer domain name resolution service, domain name mapping request includes The IP address of dns server.Dns server receives domain name mapping request, requests the domain name mapping to carry out domain name mapping Processing, obtains the IP address of website, returns to terminal device.Terminal device accesses website further according to the IP address of website.
But when sending a large amount of domain name mapping request simultaneously to same dns server in a short time, DNS service The quantity for the domain name mapping request that device receives has been more than the quantity that it is capable of handling, at this point, dns server overload, leads Domain name mapping request processing time-out is caused, or is refused to respond.Dns server can not normally respond the website that domain name mapping obtains IP address, user then can not normally access website.
To solve the above-mentioned problems, this application provides the schemes of domain name mapping, can effectively extenuate small dns server Load, scheme provided by the present application is described in detail with reference to the accompanying drawing.
Illustrative methods
Fig. 1 shows the method flow diagram of domain name mapping provided by the embodiments of the present application, comprising:
101: the domain name mapping request that receiving terminal apparatus is sent, domain name mapping request include purpose IP address.
When user needs to access website, domain name analysis request, the domain name mapping are sent to dns server by terminal device Purpose IP address in request as needs to handle the IP address of the dns server of domain name mapping request.
102: from preset parsing strategy set, target parsing strategy corresponding with target ip address is searched, it is preset Parsing in strategy set includes multiple parsing strategies, includes a server set, server set packet in each parsing strategy Include multiple resolution servers.
In order to avoid dns server overload, between terminal device and dns server, it is provided with the application and provides Domain name mapping device, the device of the domain name mapping can intercept the domain name mapping that dns server is sent to by terminal device Request.
In the device of domain name mapping, there are preset parsing strategy sets, each in the preset parsing strategy set Item parsing strategy all includes the corresponding relationship of IP address and server set, characterizes the resolution server in server set, It is capable of handling the domain name mapping that purpose IP address is the IP address to request, can handle and be sent to DNS belonging to the IP address The domain name mapping of server is requested.Wherein, the server set of each parsing strategy includes multiple resolution servers.It names Example explanation.
The preset parsing strategy set of table 1.
Table 1 shows preset parsing strategy set, and parsing strategy policy-1 includes 101.56.2.88 and analysis service The corresponding relationship of device server-1, server-2 and server-3 indicate, including purpose IP address 101.56.2.88's Domain name mapping request can carry out domain name mapping processing by resolution server server-1, server-2 and server-3, It is also shown that it is sent to the domain name mapping request for the dns server that IP address is 101.56.2.88, it can be by resolution server Server-1, server-2 and server-3 carry out domain name mapping processing.
Parsing strategy policy-2 includes 170.5.215.6 and resolution server server-2, server-3, and The corresponding relationship of server-4 indicates that the domain name mapping request including purpose IP address 170.5.215.6 can be by parsing Server -2, server-3 and server-4 carry out domain name mapping processing, it is also shown that being sent to IP address and being 170.5.215.6 the domain name mapping of dns server is requested, can by resolution server server-2, server-3, and Server-4 carries out domain name mapping processing.
Parsing strategy policy-2 further includes 221.18.0.6 and resolution server server-2, server-3, and The corresponding relationship of server-4 indicates that the domain name mapping request including purpose IP address 221.18.0.6 can be taken by parsing Be engaged in device server-2, server-3 and server-4 carries out domain name mapping processing, it is also shown that being sent to IP address and being 221.18.0.6 the domain name mapping of dns server is requested, can by resolution server server-2, server-3, and Server-4 carries out domain name mapping processing.
It is understood that above-mentioned table 1 is only used in order to which preset parsing strategy set is illustrated, and not only It is limited to preset parsing strategy set shown in table 1, can be specifically arranged according to actual needs.
When receiving domain name mapping request, the purpose IP address in domain name mapping request is obtained, from preset parsing plan Slightly in set, the corresponding parsing strategy of purpose IP address is searched, parses strategy as target.
Wherein, if in preset parsing strategy set, the corresponding relationship including purpose IP address and parsing strategy then can According to domain name mapping request in purpose IP address, its corresponding parsing strategy is directly searched from preset parsing strategy set Strategy is parsed as target.
Wherein, if in preset parsing strategy set, the cryptographic Hash including purpose IP address is closed with the corresponding of parsing strategy System, then calculate the cryptographic Hash of the purpose IP address in domain name analysis request, search the Hash from preset parsing strategy set It is worth corresponding parsing strategy as target parsing strategy.
It is, of course, also possible to search target parsing strategy corresponding with purpose IP address, here using other implementations No longer repeat one by one.
103: selecting a resolution server as destination server from the server set of target parsing strategy, by domain Name analysis request is sent to the destination server and carries out domain name mapping.
After finding the corresponding target parsing strategy of purpose IP address, then it can use the server of target parsing strategy Resolution server in set requests the domain name mapping to carry out domain name mapping.The server set packet of target parsing strategy Include multiple resolution servers, need from multiple resolution server select a resolution server to the domain name mapping request into Row domain name mapping.
As shown in the above, technical solution provided by the present application can will be sent to the multiple of the same dns server Domain name mapping request is assigned to multiple and different resolution servers and carries out domain name mapping, effectively reduces the negative of the dns server Lotus, avoid dns server receive in a short time a large amount of domain name mapping request when, can not normal response, guarantee user just Website is asked in frequentation.
In one example, described one resolution server of selection from the server set of target parsing strategy is made Include: for destination server
From the target parsing strategy server set in, selected by the way of poll a resolution server as Destination server.
After being determined that the corresponding target parsing of target ip address is tactful in domain name mapping request, need to parse plan from the target Select a resolution server as destination server in server set slightly.Wherein it is possible to from the clothes of target parsing strategy It arbitrarily selects a resolution server as destination server in business device set, which is requested to carry out domain name mapping.
In one example, the sequencing that domain name mapping request is handled in server set can be preset, according to The preset sequencing carries out domain name mapping to the domain name mapping request received one by one by the way of poll.
For example: in preset parsing strategy set shown in table 1, if parsing strategy policy-2 is that target parses plan Slightly, it presets according to server-2, server-3, the sequence of server-4 carries out domain name mapping.Then receive first mesh When marking domain name mapping request of the IP address corresponding to parsing strategy policy-2, it is assigned to server-2 and carries out domain name mapping;Then Receive second target IP address correspond to parsing strategy policy-2 domain name mapping request when, be assigned to server-3 into Row domain name mapping;When then receiving domain name mapping request of the third target ip address corresponding to parsing strategy policy-2, point It sends to server-4 and carries out domain name mapping;Then receive the domain name that the 4th target ip address corresponds to parsing strategy policy-2 When analysis request, return is assigned to server-2 and carries out domain name mapping, and so on, it is ensured that each parsing in server set It is balanced as far as possible that server carries out domain name mapping.
In another example, described to select a resolution server from the server set of target parsing strategy Include: as destination server
From the server set of target parsing strategy, select the smallest resolution server of bandwidth availability ratio as mesh Mark server.
The bandwidth availability ratio of one resolution server refers to bandwidth used in the current resolution server, with the solution The ratio for the maximum bandwidth that analysis server is capable of providing.The bandwidth availability ratio of resolution server is higher, the load of the resolution server It is bigger.
Therefore, in the server set for searching target parsing strategy, the smallest resolution server of bandwidth availability ratio, i.e., by mesh In the server set of mark parsing strategy, the smallest resolution server of load can be reduced more effectively as destination server The load of the big resolution server of load, the load of each resolution server in equalization server set.
In another example, in the server set of each parsing strategy, including the corresponding IP of the parsing strategy Dns server belonging to address.
It is understood that in presetting parsing strategy set, server set in every parsing strategy can be with It can not also include purpose IP address in the parsing strategy including dns server belonging to purpose IP address in the parsing strategy Affiliated dns server.Regardless of whether including dns server belonging to purpose IP address in parsing strategy, can use upper State the mode of any one selection target server.
Wherein, in the server set in every parsing strategy, including belonging to purpose IP address in the parsing strategy It is described to select a resolution server to take as target from the server set of the target parsing strategy when dns server Business device include:
Whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than preset threshold;
When the bandwidth availability ratio of the dns server belonging to the destination IP address is more than preset threshold, from the target In the server set for parsing strategy, select a resolution server in addition to the dns server as destination server, Polling mode selection target server is used, or selects the smallest resolution server of bandwidth availability ratio as destination service Device.
Can first detect dns server belonging to the target ip address of domain name analysis request bandwidth availability ratio whether be more than The Target IP can be used if not, indicating the load of dns server belonging to the target ip address and little in preset threshold Dns server belonging to address requests the domain name mapping to carry out domain name mapping;If so, indicating belonging to the target ip address Dns server load is very big, at this point, from target parsing strategy server set in, select one in addition to the dns server with Outer resolution server is as destination server.
It is understood that when selecting a resolution server other than the dns server as destination server, Can also in the way of any one above-mentioned selection target server, using polling mode selection target server, or Select the smallest resolution server of bandwidth availability ratio as destination server.
In another example, the method also includes:
Receive the domain name mapping result to domain name analysis request that the destination server returns;
Domain name resolution response is sent to the terminal device, domain name resolution response includes the destination IP address and institute State domain name mapping result.
After having selected destination server, the received domain name mapping request of institute is sent to destination service by the device of domain name mapping Device requests the domain name mapping by destination server to carry out domain name mapping, obtains domain name mapping as a result, being the website to be accessed IP address.
Destination server translates domain names into the device that result is back to the domain name mapping, and the device of the domain name mapping is to terminal Equipment sends domain name resolution response, and source IP address is the purpose IP address in domain name mapping request in domain name mapping response, i.e., The IP address of dns server.After terminal device receives domain name mapping response, the domain name in domain name mapping response can be obtained Parsing result.Wherein, due to the domain name mapping response in source IP address be dns server IP address, which sets It is that domain name mapping is carried out by non-dns server for domain name mapping request can not be perceived.
After terminal device obtains domain name mapping result, net is accessed according to the IP address of the website in the domain name mapping result It stands.
In domain name mapping scheme provided by the present application, translate domain names into request be assigned to multiple and different resolution servers into Row domain name mapping reduces the load of dns server, guarantees that user normally accesses website.
Exemplary means
Fig. 2 shows the apparatus structure schematic diagrams of domain name mapping provided by the embodiments of the present application, comprising:
First receiving module 201, for the domain name mapping request that receiving terminal apparatus is sent, domain name analysis request packet Include purpose IP address.
Searching module 202, for searching target corresponding with the target ip address from preset parsing strategy set Parsing is tactful, includes multiple parsings strategies in the preset parsing strategy set, includes one in each parsing strategy Server set, the server set include multiple resolution servers.
Selecting module 203, for one resolution server work of selection from the server set of target parsing strategy For destination server, domain name analysis request is sent to the destination server and carries out domain name mapping.
Optionally, the selecting module includes:
First selecting unit, for being selected by the way of poll from the server set of target parsing strategy One resolution server is as destination server.
Optionally, the selecting module includes:
Second selecting unit, for selecting bandwidth availability ratio minimum from the server set of target parsing strategy Resolution server as destination server.
Optionally, in the server set of each parsing strategy, including belonging to the corresponding IP address of parsing strategy Dns server.
Optionally, the selecting module includes:
Detection unit, whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than pre- If threshold value;
Third selecting unit, the bandwidth availability ratio for working as dns server belonging to the destination IP address are more than default When threshold value, analysis service of the selection one in addition to the dns server from the server set of target parsing strategy Device is as destination server.
Optionally, described device further include:
Second receiving module, the domain name mapping to domain name analysis request returned for receiving the destination server As a result;
Respond module, for sending domain name resolution response to the terminal device, domain name resolution response includes described Purpose IP address and domain name parsing result.
Device shown in Fig. 2 is and device corresponding to method shown in FIG. 1 specific implementation and side shown in FIG. 1 Method is similar, and with reference to the description in method shown in FIG. 1, which is not described herein again.
It is one embodiment schematic diagram of the equipment of the application domain name mapping referring to Fig. 3, the equipment of the domain name mapping can be with It include: internal bus 310, and the memory 320, processor 330 and the external interface 340 that are connected by internal bus 310.
Wherein, the memory 320, the corresponding machine readable instructions of control logic for storage file storage;
The processor 330, for reading the machine readable instructions on the memory, and execute described instruction with Realize following operation:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described pre- If parsing strategy set in include multiple parsings strategy, it is described including a server set during each parsing is tactful Server set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by institute It states domain name mapping request and is sent to the destination server progress domain name mapping.
In addition, the process of the domain name mapping shown in the embodiment of the present application can also be included in computer readable storage medium In, which can connect with the processing equipment executed instruction, and the control that file storage is stored on the storage medium is patrolled Volume corresponding machine readable instructions, these instructions can equipment processed execute, above-mentioned machine readable instructions are for realizing as follows Operation:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described pre- If parsing strategy set in include multiple parsings strategy, it is described including a server set during each parsing is tactful Server set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by institute It states domain name mapping request and is sent to the destination server progress domain name mapping.
In the embodiment of the present application, computer readable storage medium can be diversified forms, for example, in different examples In, the machine readable storage medium may is that RAM (Radom Access Memory, random access memory), volatile deposit Reservoir, nonvolatile memory, flash memory, memory driver (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) perhaps similar storage medium or their combination.Special, described computer-readable medium Can also be paper or other be suitably capable of the medium of print routine.Using these media, these programs can be passed through The mode of electricity gets (for example, optical scanner), can be compiled, be explained and processing in an appropriate manner, then can be by It stores in computer media.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (14)

1. a kind of method of domain name mapping, which is characterized in that the described method includes:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described preset Parsing in strategy set includes multiple parsing strategies, includes a server set, the service in each parsing strategy Device set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by the domain Name analysis request is sent to the destination server and carries out domain name mapping.
2. the method according to claim 1, wherein described from the server set of target parsing strategy A resolution server, which is selected, as destination server includes:
From the server set of target parsing strategy, select a resolution server as target by the way of poll Server.
3. the method according to claim 1, wherein described from the server set of target parsing strategy A resolution server, which is selected, as destination server includes:
From the server set of target parsing strategy, the smallest resolution server of bandwidth availability ratio is selected to take as target Business device.
4. the method according to claim 1, wherein
In the server set of each parsing strategy, including dns server belonging to the corresponding IP address of parsing strategy.
5. according to the method described in claim 4, it is characterized in that, described from the server set of target parsing strategy A resolution server, which is selected, as destination server includes:
Whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than preset threshold;
When the bandwidth availability ratio of the dns server belonging to the destination IP address is more than preset threshold, parsed from the target In the server set of strategy, select a resolution server in addition to the dns server as destination server.
6. method described in -5 any one according to claim 1, which is characterized in that the method also includes:
Receive the domain name mapping result to domain name analysis request that the destination server returns;
Domain name resolution response is sent to the terminal device, domain name resolution response includes the destination IP address and the domain Name parsing result.
7. a kind of device of domain name mapping, which is characterized in that described device includes:
First receiving module, for the domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
Searching module parses plan for from preset parsing strategy set, searching target corresponding with the target ip address Slightly, include multiple parsing strategies in the preset parsing strategy set, include a server in each parsing strategy Set, the server set includes multiple resolution servers;
Selecting module, for selecting a resolution server to take as target from the server set of target parsing strategy Domain name analysis request is sent to the destination server and carries out domain name mapping by business device.
8. device according to claim 7, which is characterized in that the selecting module includes:
First selecting unit, for selecting one by the way of poll from the server set of target parsing strategy Resolution server is as destination server.
9. device according to claim 7, which is characterized in that the selecting module includes:
Second selecting unit, for selecting the smallest solution of bandwidth availability ratio from the server set of target parsing strategy Server is analysed as destination server.
10. device according to claim 7, which is characterized in that
In the server set of each parsing strategy, including dns server belonging to the corresponding IP address of parsing strategy.
11. device according to claim 10, which is characterized in that the selecting module includes:
Detection unit, whether the bandwidth availability ratio for detecting dns server belonging to the destination IP address is more than default threshold Value;
Third selecting unit, the bandwidth availability ratio for working as dns server belonging to the destination IP address are more than preset threshold When, resolution server of the selection one in addition to the dns server is made from the server set of target parsing strategy For destination server.
12. according to device described in claim 7-11 any one, which is characterized in that described device further include:
Second receiving module, the domain name mapping knot to domain name analysis request returned for receiving the destination server Fruit;
Respond module, for sending domain name resolution response to the terminal device, domain name resolution response includes the purpose IP address and domain name parsing result.
13. a kind of equipment of domain name mapping, which is characterized in that the equipment includes: internal bus, and is connected by internal bus Memory, processor and the external interface connect;Wherein,
The memory, the corresponding machine readable instructions of control logic for storage file storage;
The processor for reading the machine readable instructions on the memory, and executes described instruction to realize such as Lower operation:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described preset Parsing in strategy set includes multiple parsing strategies, includes a server set, the service in each parsing strategy Device set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by the domain Name analysis request is sent to the destination server and carries out domain name mapping.
14. a kind of machine readable storage medium, which is characterized in that be stored with several computers on the machine readable storage medium Instruction, the computer instruction, which is performed, to be handled as follows:
The domain name mapping request that receiving terminal apparatus is sent, domain name analysis request includes purpose IP address;
From preset parsing strategy set, target parsing strategy corresponding with the target ip address is searched, it is described preset Parsing in strategy set includes multiple parsing strategies, includes a server set, the service in each parsing strategy Device set includes multiple resolution servers;
Select a resolution server as destination server from the server set of target parsing strategy, by the domain Name analysis request is sent to the destination server and carries out domain name mapping.
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 true CN109391707A (en) 2019-02-26
CN109391707B 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)

Cited By (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 (4)

* 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
US20150172415A1 (en) * 2007-06-29 2015-06-18 Amazon Technologies, Inc. Request routing utilizing client location information
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150172415A1 (en) * 2007-06-29 2015-06-18 Amazon Technologies, Inc. Request routing utilizing client location information
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

Cited By (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

Also Published As

Publication number Publication date
CN109391707B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
US9026676B1 (en) Systems and methods for prepending nonce labels to DNS queries to enhance security
US8407721B2 (en) Communication interface selection on multi-homed devices
CN106933871B (en) Short link processing method and device and short link server
CN103618718B (en) Processing method and processing device for Denial of Service attack
RU2610827C2 (en) Method and device for router-based control of operation in network
CN103067439B (en) Load-balancing method and system
CN107534930A (en) A kind of recommendation method, terminal and the graphic user interface of Wi Fi focuses
CN111064804B (en) Network access method and device
CN111106983B (en) Method and device for detecting network connectivity
CN112291384A (en) Information processing method for domain name resolution and electronic equipment
CN113206785A (en) Network request method and device, terminal equipment and storage medium
CN109391707A (en) Method, apparatus, equipment and the storage medium of domain name mapping
US20170293454A1 (en) Discovery of a printing device via a remote platform access client
CN109246024B (en) Method, device, terminal equipment and storage medium for load sharing in networking
CN110061888B (en) Network protocol type judgment method and device, computer equipment and storage medium
CN101599857A (en) Detect method, device and the network measuring system that inserts number of host of sharing
CN106899444A (en) A kind of end-probing method and device for many LANs
CN106412079A (en) Request processing method and system
CN103020241A (en) Dynamic page cache method and system based on session
CN104969521A (en) Data sending and processing method and router
CN109905486B (en) Application program identification display method and device
CN105959248B (en) The method and device of message access control
CN104969533B (en) A kind of data package processing method and device
CN103685318A (en) Data processing method and device for protecting network security
CN108810181A (en) A kind of address conversion method based on Intel DPDK

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