CN107911498A - A kind of method and device that dns resolution is realized based on DNS proxy - Google Patents

A kind of method and device that dns resolution is realized based on DNS proxy Download PDF

Info

Publication number
CN107911498A
CN107911498A CN201711190873.3A CN201711190873A CN107911498A CN 107911498 A CN107911498 A CN 107911498A CN 201711190873 A CN201711190873 A CN 201711190873A CN 107911498 A CN107911498 A CN 107911498A
Authority
CN
China
Prior art keywords
dns
dns server
request message
server
cryptographic hash
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.)
Pending
Application number
CN201711190873.3A
Other languages
Chinese (zh)
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 CN201711190873.3A priority Critical patent/CN107911498A/en
Publication of CN107911498A publication Critical patent/CN107911498A/en
Pending legal-status Critical Current

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1036Load balancing of requests to servers for services different from user content provisioning, e.g. load balancing across domain name servers

Landscapes

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

Abstract

The application provides a kind of method and device that dns resolution is realized based on DNS proxy.A kind of method that dns resolution is realized based on DNS proxy, the method are applied to DNS proxy equipment, including:Receive DNS request message;According to the address information of the DNS request message, the corresponding cryptographic Hash of described address information is calculated using hash algorithm;The DNS request message is sent to by the corresponding dns server of the cryptographic Hash based on predetermined strategy, so that the dns server parses the domain name in the DNS request message.Compared with prior art, when the application can avoid same user equipment access service server, because the IP address of the service server acquired in access process is different so that caused by the change of subsequent packet transmission path network delay or it is unstable phenomena such as.

Description

A kind of method and device that dns resolution is realized based on DNS proxy
Technical field
This application involves field of communication technology, more particularly to a kind of method and dress that dns resolution is realized based on DNS proxy Put.
Background technology
In the prior art, to realize the load balancing of DNS (Domain Name System, domain name system) server, lead to DNS proxy equipment can be often set between user equipment and dns server.Taken in user equipment according to the corresponding business of domain name access During business device, the DNS request message for the carrying domain name that DNS proxy equipment can send user equipment according to preset algorithm turns Hair, corresponding DNS service is sent to for example with poll or minimum bandwidth scheduling algorithm by the DNS request message that user equipment is sent Device is parsed, to obtain the IP address for the service server that the dns server goes out according to above-mentioned domain name mapping.
At present, usually built together due to most of dns servers by multiple operators.The corresponding business clothes of same domain name Business device usually has multiple IP address, and the associated operator of different IP address is different.In the prior art, when same user equipment When same service server is repeatedly accessed according to same domain name, DNS proxy equipment may send each DNS request message Parsed to different dns servers so that the IP address for the same service server that same user equipment obtains every time can Can be different, cause the path that user equipment subsequently sends message to the service server possible different, in fact it could happen that cross operator The transmission of message is carried out, phenomena such as so as to cause network delay, influences user experience.
The content of the invention
In view of this, the application provides a kind of method and device that dns resolution is realized based on DNS proxy, so that same use The DNS request message of family equipment is sent to same dns server by DNS proxy equipment and carries out domain name mapping, so that same use Family equipment carries out message transmissions when accessing same service server by identical path, avoids accessing same service server During because of path change and caused by network delay or phenomena such as unstable networks.
Specifically, the application is achieved by the following technical solution:
A kind of method that dns resolution is realized based on DNS proxy, the method are applied to DNS proxy equipment, including:
Receive DNS request message;
According to the address information of the DNS request message, the corresponding Hash of described address information is calculated using hash algorithm Value;
The DNS request message is sent to by the corresponding dns server of the cryptographic Hash based on predetermined strategy, so that institute Dns server is stated to parse the domain name in the DNS request message.
Optionally, it is described that the DNS request message is sent to by the corresponding DNS clothes of the cryptographic Hash based on predetermined strategy Business device, so that the dns server parses the domain name in the DNS request message, including:
Judge whether the cryptographic Hash exceeds total weighted value of dns server;
If exceeding, the cryptographic Hash and total weighted value of the dns server are remmed, determine the remainder hit Dns server weight sector, and the DNS request message is sent to the corresponding dns server of the weight sector;
If without departing from, it is determined that the weight sector of the dns server of cryptographic Hash hit, and by the DNS request report Text is sent to the corresponding dns server of the weight sector.
Optionally, the method further includes:
Weight parameter or weighted value are configured for the dns server according to the performance information of dns server;
The weight sector of the dns server is determined according to the weighted value of the dns server.
Optionally, the performance information includes the internal memory performance and cpu performance of dns server.
Optionally, described address information includes source IP address and/or purpose IP address.
A kind of device that dns resolution is realized based on DNS proxy, described device are applied to DNS proxy equipment, including:
Receiving module, for receiving DNS request message;
Computing module, for the address information according to the DNS request message, described address letter is calculated using hash algorithm Cease corresponding cryptographic Hash;
Sending module, for the DNS request message to be sent to the corresponding DNS of the cryptographic Hash based on predetermined strategy Server, so that the dns server parses the domain name in the DNS request message.
Optionally, the sending module, is additionally operable to:
Judge whether the cryptographic Hash exceeds total weighted value of dns server;
If exceeding, the cryptographic Hash and total weighted value of the dns server are remmed, determine the remainder hit Dns server weight sector, and the DNS request message is sent to the corresponding dns server of the weight sector;
If without departing from, it is determined that the weight sector of the dns server of cryptographic Hash hit, and by the DNS request report Text is sent to the corresponding dns server of the weight sector.
Optionally, described device further includes:
Weighted value is configured for the dns server according to the performance information of dns server;
The weight sector of the dns server is determined according to the weighted value of the dns server.
Optionally, the performance information includes the internal memory performance and cpu performance of dns server.
Optionally, described address information includes source IP address and/or purpose IP address.
The technical solution of the application, the address for the DNS request message that DNS proxy equipment can be sent according to user equipment are believed Breath, calculates the corresponding cryptographic Hash of the address information, and the DNS request message can be sent to the clothes of the DNS corresponding to the cryptographic Hash Business device.
The address information of the DNS request message repeatedly sent due to same user equipment is usually identical, and according to default The corresponding cryptographic Hash of the address information that hash algorithm calculates is fixed, therefore in this application, DNS proxy equipment can incite somebody to action The DNS request message of same user equipment is sent to same dns server, and then ensures to be directed to identical domain name, Yong Hushe The standby identical IP address that can be received same dns server and return, can make same user equipment subsequently to service server The message of transmission is transmitted through same path, so as to avoid the same service server process of same user equipment access In, because message transmissions path constantly change caused by network delay or it is unstable phenomena such as.
Brief description of the drawings
Fig. 1 is a kind of networking diagram of dns server load balancing shown in the embodiment of the present application;
Fig. 2 is a kind of method flow diagram that dns resolution is realized based on DNS proxy shown in the embodiment of the present application;
Fig. 3 is a kind of hardware structure diagram of DNS proxy equipment shown in the embodiment of the present application;
Fig. 4 is a kind of structure diagram of device that dns resolution is realized based on DNS proxy shown in the embodiment of the present application.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.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 apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application. It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
In the prior art, to realize the load balancing of dns server, it will usually set between user equipment and dns server DNS proxy equipment is put, as shown in Figure 1.In user equipment service server corresponding according to domain name access, DNS proxy equipment The DNS request message for the carrying domain name that can be sent according to preset algorithm to user equipment is forwarded to, such as user equipment is sent out The DNS request message sent is sent to the dns server selected using poll or minimum bandwidth scheduling algorithm and is parsed, and is somebody's turn to do with obtaining The IP address for the service server that dns server goes out according to above-mentioned domain name mapping.
Since most of dns servers are typically what is built together by multiple operators.The corresponding server of same domain name leads to Often there are multiple IP address, and the associated operator of different IP address is different.The scheme of the prior art, for same domain name DNS request may be sent to different dns servers by DNS proxy equipment, and different dns servers is according to same domain name institute The IP address of return may be different, therefore will likely cause same user equipment during same service server is accessed, The IP address of the same service server obtained may be different, path when causing subsequently to send message to same service server It is different, in fact it could happen that cross operator carries out the transmission of message, phenomena such as so as to cause network delay, influences user experience.
To solve the above-mentioned problems, this application provides a kind of method that dns resolution is realized based on DNS proxy, DNS proxy Equipment can receive the DNS request message of user equipment transmission, and the address information in above-mentioned DNS request message uses Hash Algorithm calculates corresponding cryptographic Hash, which can be sent to the dns server corresponding to the cryptographic Hash afterwards and carried out Domain name mapping.
During same user equipment access service server, user equipment may be repeatedly to business service in access process Device sends DNS request message, and the address information of the DNS request message sent every time is usually constant.Due to DNS proxy equipment root According to the address information of above-mentioned DNS request message, the cryptographic Hash calculated based on default hash algorithm is fixed, therefore same user sets Standby multiple DNS request message can be sent to same dns server by DNS proxy equipment.It is same again due under normal conditions Platform dns server is typically constant according to the IP address that identical domain name mapping goes out, therefore is directed to identical domain name, DNS clothes Being engaged in device can be to the identical IP address of the user's equipment return, the message that same user equipment will be made subsequently to be sent to service server It can be transmitted through same path, during the same service server of same user equipment access, because of message Transmission path constantly change caused by network delay or it is unstable phenomena such as.
Process, which is described, to be realized to the application below in conjunction with specific embodiment.
Please continue to refer to Fig. 1, it is assumed that DNS proxy equipment is corresponding with 3 dns servers, in the embodiment of the present application, can root Performance information according to dns server is respectively 3 dns servers configuration weighted values, the energy so that the high dns server of performance is tried one's best Domain name mapping is carried out to more DNS request message;Conversely, the relatively low dns server of performance can be to less DNS request message Carry out domain name mapping.
Wherein, above-mentioned performance information can be the internal memory performance and cpu performance of dns server.And above-mentioned dns server Weighted value can be configured by user, and it is automatically dns server point that default algorithm can also be based on by DNS proxy equipment Match somebody with somebody, be not construed as limiting herein.
In addition, being determined for the weight sector of dns server, can be come according to the corresponding weighted value of each dns server true It is fixed.For example, it is assumed that according to the performance information of dns server, the best performance of dns server 1, secondly dns server 2, it is finally dns server 3, the weighted value that can configure 3 dns servers at this time meets:Dns server 1>Dns server 2> Dns server 3., then can be by this 3 DNS clothes for example the weighted value of configurable dns server 1,2 and 3 is respectively 40,20 and 10 Total weighted value of business device is arranged to 70, and the weight sector of dns server 1 can be arranged to [Isosorbide-5-Nitrae 0], the power of dns server 2 Weight section for (40,60], the weight sector of dns server 3 for (60,70].
In addition, in practical application, it is when total also 3 dns server weights can be configured according to the performance height of dns server Weighted value.For example, the weight ratio of dns server 1,2 and 3 can be configured to 4 according to the performance of dns server:2:1, and by 3 Total weighted value of dns server is set to 70, then the weight sector of dns server 1 may be configured as [Isosorbide-5-Nitrae 0], the power of dns server 2 Weight section may be configured as (40,60], the weight sector of dns server 3 may be configured as (60,70].
It should be noted that the weight sector of above-mentioned dns server 1 may be alternatively provided as (30,70], the power of dns server 2 Weight section be arranged to (10,30], the weight sector of dns server 3 is arranged to [1,10], it is only necessary to ensures the power of each dns server Weight siding-to-siding block length is equal to respective weighted value.
Wherein, when setting the weight sector of dns server, the weight sector that should ensure that 3 dns servers is continuous 's.
Please refer to Fig.2, Fig. 2 show a kind of method that dns resolution is realized based on DNS proxy shown in the embodiment of the present application Flow chart, this method can be applied to DNS proxy equipment, and this method may include following basic step:
S201, receives DNS request message.
S202, according to the address information of the DNS request message, it is corresponding to calculate described address information using hash algorithm Cryptographic Hash.
In general, during same according to the domain name access service server of user equipment, it can be sent to dns server and carry the industry Business server corresponds to the DNS request message of domain name, can be to the DNS request report after dns server receives the DNS request message The domain name carried in text is parsed, and the IP address of the corresponding service server of the domain name parsed is returned to user and is set It is standby, so that user equipment subsequently accesses corresponding service server according to the IP address.
In the embodiment of the present application, the DNS request for carrying the service server domain name to be accessed that user equipment is sent Message, can first be handled via DNS proxy equipment, be afterwards again sent to the DNS request message by DNS proxy equipment selected Dns server carry out domain name mapping.
For DNS proxy equipment, when receiving the DNS request message of user equipment transmission, the DNS request report can extract out The address information of text, according to the address information extracted, further can calculate the address information using preset algorithm.
Those skilled in the art should understand that preset algorithm can have much herein, hash algorithm can be usually used, herein It is not construed as limiting, as long as a unique numerical value can be determined according to the address information of DNS request message.
In addition, address above mentioned information can be the source of the source IP address of DNS request message or DNS request message IP address and purpose IP address, are not construed as limiting herein.
S203, judges whether the cryptographic Hash exceeds total weighted value of dns server.
S204, the cryptographic Hash and total weighted value of the dns server are remmed.
Following description by using use hash algorithm calculate DNS request message the corresponding cryptographic Hash of source IP address as Example.
In the embodiment of the present application, after cryptographic Hash is calculated according to the address information of DNS request message, DNS proxy is set The standby total weighted value for also needing to judge the dns server whether cryptographic Hash exceeds above-mentioned setting.If beyond total power of dns server Weight values, then can perform step S204;If without departing from total weighted value of dns server, step S206 can perform.
Assuming that the source IP address for the DNS request message that user equipment 1 is sent is 112.2.78.133 in Fig. 1, and according to pre- If hash algorithm the corresponding cryptographic Hash of the IP address is calculated as 4379399, it is known that, the cryptographic Hash is beyond setting Total weighted value 70 of dns server, then further can rem total weighted value of the cryptographic Hash and dns server, finally 4379399 divided by 70 remainder is 59.Step S205 can further be performed according to the remainder drawn afterwards.
S205, determines the weight sector of the dns server of the remainder hit, and the DNS request message is sent to The corresponding dns server of the weight sector.
In the embodiment of the present application, can further by the weight sector of the remainder drawn and above-mentioned 3 dns servers into Row compares, and determines that the remainder hits the weight sector of which platform dns server.
Understood through comparing, above-mentioned gained remainder 59 hit dns server 2 weight sector (40,60], thus DNS proxy The DNS request message of above-mentioned user equipment 1 can be sent to dns server 2 and carry out domain name mapping by equipment.
S206, determines the weight sector of the dns server of the cryptographic Hash hit, and the DNS request message is sent Give the weight sector corresponding dns server.
In the embodiment of the present application, still exemplified by calculating cryptographic Hash according to the source IP address of DNS request message, it is assumed that Fig. 1 The source IP address for the DNS request message that middle user equipment 2 is sent is 112.2.78.1, and is calculated according to default hash algorithm It is 33 to the corresponding cryptographic Hash of the IP address.It follows that the cryptographic Hash 33 of gained is calculated without departing from the dns server of setting Total weighted value 70, and the weight sector of the cryptographic Hash 33 hit dns server 1 is [Isosorbide-5-Nitrae 0], then DNS proxy equipment can will be above-mentioned The DNS request message of user equipment 2 is sent to dns server 1 and carries out domain name mapping.
It is pointed out that the source IP address of the DNS request message repeatedly sent due to same user equipment is usually identical, Therefore the corresponding cryptographic Hash of above-mentioned source IP address calculated using default hash algorithm is identical, i.e., above-mentioned DNS request report The corresponding cryptographic Hash of source IP address of text is fixed.Thus, according to foregoing description, DNS that same user equipment is repeatedly sent Request message, can be sent to same dns server by DNS proxy equipment.The DNS request message that i.e. user equipment 1 is sent will Dns server 2 is sent to by DNS proxy equipment, the DNS request message that user equipment 2 is sent will be sent to by DNS proxy equipment Dns server 1.
In this application, the address information for the DNS request message that DNS proxy equipment can be sent according to user equipment, calculates The corresponding cryptographic Hash of the address information, and can be in total weighted value of the cryptographic Hash beyond the dns server set, by the Hash Value and total weighted value of dns server rem, afterwards by by the weight sector of above-mentioned cryptographic Hash or remainder and dns server It is compared, so that it is determined which platform dns server the DNS request message of user equipment is sent to.
The address information of the DNS request message repeatedly sent due to same user equipment is usually identical, and according to pre- imputation The corresponding cryptographic Hash of address information for the DNS request message that method calculates or counted remainder be fixed, therefore in this Shen Please in, DNS request message that same user equipment is repeatedly sent, it will same DNS service is sent to by DNS proxy equipment Device.Again due under normal conditions, same dns server according to the IP address that identical domain name mapping goes out be typically it is constant, Therefore identical domain name is directed to, dns server can return to identical IP address to the user's equipment, after making same user equipment Continue the message sent to same service server to be transmitted through same path, so as to avoid same user equipment access During same service server, because message transmissions path constantly change caused by network delay or it is unstable phenomena such as.
Corresponding with a kind of foregoing embodiment for the method that dns resolution is realized based on DNS proxy, present invention also provides one Kind realizes the embodiment of the device of dns resolution based on DNS proxy.
A kind of embodiment for the device that dns resolution is realized based on DNS proxy of the application can be applied in DNS proxy equipment On.Device embodiment can be realized by software, can also be realized by way of hardware or software and hardware combining.It is real with software It is by non-volatile memories by the processor of DNS proxy equipment where it as the device on a logical meaning exemplified by existing Corresponding computer program instructions read what operation in memory was formed in device.For hardware view, as shown in figure 3, being this Apply for a kind of hardware structure diagram of DNS proxy equipment where the device of dns resolution is realized based on DNS proxy, except shown in Fig. 3 Outside processor, memory, network outgoing interface and nonvolatile memory, the DNS proxy equipment in embodiment where device is led to Often according to the actual functional capability of the DNS proxy equipment, other hardware can also be included, this is repeated no more.
Please refer to Fig.4, Fig. 4 is a kind of knot of device that dns resolution is realized based on DNS proxy shown in the embodiment of the present application Structure schematic diagram, the device can include with lower module:
Receiving module 410, for receiving DNS request message;
Computing module 420, for the address information according to the DNS request message, is calculated described using hash algorithm The corresponding cryptographic Hash of location information;
Sending module 430, it is corresponding for the DNS request message to be sent to the cryptographic Hash based on predetermined strategy Dns server, so that the dns server parses the domain name in the DNS request message.
In the embodiment of the present application, the sending module 430 is additionally operable to:
Judge whether the cryptographic Hash exceeds total weighted value of dns server;
If exceeding, the cryptographic Hash and total weighted value of the dns server are remmed, determine the remainder hit Dns server weight sector, and the DNS request message is sent to the corresponding dns server of the weight sector;
If without departing from, it is determined that the weight sector of the dns server of cryptographic Hash hit, and by the DNS request report Text is sent to the corresponding dns server of the weight sector.
In the embodiment of the present application, described device further includes:
Weighted value is configured for the dns server according to the performance information of dns server;
The weight sector of the dns server is determined according to the weighted value of the dns server.
In the embodiment of the present application, the performance information includes the internal memory performance and cpu performance of dns server.
In the embodiment of the present application, described address information includes source IP address and/or purpose IP address.
The function of unit and effect realizes that process specifically refers to step is corresponded in the above method in above device Realize process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The unit of explanation may or may not be physically separate, can be as the component that unit is shown or can also It is not physical location, you can with positioned at a place, or can also be distributed in multiple network unit.Can be according to reality Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.

Claims (10)

  1. A kind of 1. method that dns resolution is realized based on DNS proxy, it is characterised in that the method is applied to DNS proxy equipment, Including:
    Receive DNS request message;
    According to the address information of the DNS request message, the corresponding cryptographic Hash of described address information is calculated using hash algorithm;
    The DNS request message is sent to by the corresponding dns server of the cryptographic Hash based on predetermined strategy, so that described Dns server parses the domain name in the DNS request message.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described based on predetermined strategy by the DNS request message The corresponding dns server of the cryptographic Hash is sent to, including:
    Judge whether the cryptographic Hash exceeds total weighted value of dns server;
    If exceeding, the cryptographic Hash and total weighted value of the dns server are remmed, determine the remainder hit The weight sector of dns server, and the DNS request message is sent to the corresponding dns server of the weight sector;
    If without departing from, it is determined that the weight sector of the dns server of the cryptographic Hash hit, and the DNS request message is sent out Give the weight sector corresponding dns server.
  3. 3. according to the method described in claim 2, it is characterized in that, further include:
    Weighted value is configured for the dns server according to the performance information of dns server;
    The weight sector of the dns server is determined according to the weighted value of the dns server.
  4. 4. according to the method described in claim 3, it is characterized in that, the performance information includes the internal memory performance of dns server And cpu performance.
  5. 5. according to the method described in claim 1, it is characterized in that, described address information includes source IP address and/or destination IP Address.
  6. A kind of 6. device that dns resolution is realized based on DNS proxy, it is characterised in that described device is applied to DNS proxy equipment, Including:
    Receiving module, for receiving DNS request message;
    Computing module, for the address information according to the DNS request message, described address information pair is calculated using hash algorithm The cryptographic Hash answered;
    Sending module, for the DNS request message to be sent to the corresponding DNS service of the cryptographic Hash based on predetermined strategy Device, so that the dns server parses the domain name in the DNS request message.
  7. 7. device according to claim 6, it is characterised in that the sending module is additionally operable to:
    Judge whether the cryptographic Hash exceeds total weighted value of dns server;
    If exceeding, the cryptographic Hash and total weighted value of the dns server are remmed, determine the remainder hit The weight sector of dns server, and the DNS request message is sent to the corresponding dns server of the weight sector;
    If without departing from, it is determined that the weight sector of the dns server of the cryptographic Hash hit, and the DNS request message is sent out Give the weight sector corresponding dns server.
  8. 8. device according to claim 7, it is characterised in that further include:
    Weighted value is configured for the dns server according to the performance information of dns server;
    The weight sector of the dns server is determined according to the weighted value of the dns server.
  9. 9. device according to claim 8, it is characterised in that the performance information includes the internal memory performance of dns server And cpu performance.
  10. 10. device according to claim 6, it is characterised in that described address information includes source IP address and/or destination IP Address.
CN201711190873.3A 2017-11-24 2017-11-24 A kind of method and device that dns resolution is realized based on DNS proxy Pending CN107911498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711190873.3A CN107911498A (en) 2017-11-24 2017-11-24 A kind of method and device that dns resolution is realized based on DNS proxy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711190873.3A CN107911498A (en) 2017-11-24 2017-11-24 A kind of method and device that dns resolution is realized based on DNS proxy

Publications (1)

Publication Number Publication Date
CN107911498A true CN107911498A (en) 2018-04-13

Family

ID=61847741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711190873.3A Pending CN107911498A (en) 2017-11-24 2017-11-24 A kind of method and device that dns resolution is realized based on DNS proxy

Country Status (1)

Country Link
CN (1) CN107911498A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556154A (en) * 2020-04-27 2020-08-18 深圳震有科技股份有限公司 Data transmission method, device, equipment and computer readable storage medium
CN113067781A (en) * 2020-01-02 2021-07-02 阿里巴巴集团控股有限公司 Data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007050244A2 (en) * 2005-10-27 2007-05-03 Georgia Tech Research Corporation Method and system for detecting and responding to attacking networks
CN101616079A (en) * 2009-07-30 2009-12-30 杭州华三通信技术有限公司 The NAT outbound load-balancing method and the device of DNS request message
CN103873293A (en) * 2014-03-05 2014-06-18 杭州华三通信技术有限公司 Health detection device and method
CN105577843A (en) * 2014-11-07 2016-05-11 华耀(中国)科技有限公司 System and method for realizing link load balance based on multi-strategy DNS proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007050244A2 (en) * 2005-10-27 2007-05-03 Georgia Tech Research Corporation Method and system for detecting and responding to attacking networks
CN101616079A (en) * 2009-07-30 2009-12-30 杭州华三通信技术有限公司 The NAT outbound load-balancing method and the device of DNS request message
CN103873293A (en) * 2014-03-05 2014-06-18 杭州华三通信技术有限公司 Health detection device and method
CN105577843A (en) * 2014-11-07 2016-05-11 华耀(中国)科技有限公司 System and method for realizing link load balance based on multi-strategy DNS proxy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067781A (en) * 2020-01-02 2021-07-02 阿里巴巴集团控股有限公司 Data processing method and device
CN111556154A (en) * 2020-04-27 2020-08-18 深圳震有科技股份有限公司 Data transmission method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106899680B (en) The fragment treating method and apparatus of multi-tiling chain
CN101815033B (en) Method, device and system for load balancing
US8812727B1 (en) System and method for distributed load balancing with distributed direct server return
US10313362B2 (en) Systems and methods for real-time configurable load determination
US9843630B2 (en) System and method for distributed load balancing with load balancer clients for hosts
KR101383905B1 (en) method and apparatus for processing server load balancing with the result of hash function
CN105337786B (en) A kind of server performance detection method, device and equipment
CN106067890B (en) A kind of domain name analytic method, apparatus and system
CN110166570B (en) Service session management method and device, and electronic device
CN108259425A (en) The determining method, apparatus and server of query-attack
CN102075561B (en) Method, device and system for downloading network resources
CN105940655A (en) System for protection against DDos attacks
CN108933829A (en) A kind of load-balancing method and device
CN108200165A (en) Ask Transmission system, method, apparatus and storage medium
CN107347015B (en) Method, device and system for identifying content distribution network
CN109510809A (en) Method for accessing domain name and device
CN105791381A (en) Access control method and apparatus
US10382339B2 (en) Large scale bandwidth management of IP flows using a hierarchy of traffic shaping devices
CN103401799A (en) Method and device for realizing load balance
CN107911498A (en) A kind of method and device that dns resolution is realized based on DNS proxy
CN110691139B (en) Data transmission method, device, equipment and storage medium
CN108111567A (en) Realize the uniform method and system of server load
CN109600273A (en) A kind of optimization method and system of UDP message transmission performance
CN104734939B (en) Session keep-alive method and equipment
Kontogiannis et al. ALBL: an adaptive load balancing algorithm for distributed web systems

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180413

RJ01 Rejection of invention patent application after publication