CN105357279A - Domain name service (DNS) request message processing method and system - Google Patents
Domain name service (DNS) request message processing method and system Download PDFInfo
- Publication number
- CN105357279A CN105357279A CN201510677670.1A CN201510677670A CN105357279A CN 105357279 A CN105357279 A CN 105357279A CN 201510677670 A CN201510677670 A CN 201510677670A CN 105357279 A CN105357279 A CN 105357279A
- Authority
- CN
- China
- Prior art keywords
- dns
- dns server
- caching
- request message
- resolution result
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000012795 verification Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 description 7
- 230000007423 decrease Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a domain name service (DNS) request message processing method and system. The method comprises steps of presetting a corresponding cache DNS server for caching a DNS resolution result of a corresponding link for each type of link; determining a request link corresponding to a DNS request message, and sending the DNS request message to the cache DNS server corresponding to the request link; and determining, according to the DNS request message, whether the cache DNS server has a to-be-acquired DNS resolution result requested by the DNS request message, if yes, acquiring the to-be-acquired DNS resolution result. The invention provides the DNS request message processing method and system. The user access speed can be improved.
Description
Technical field
The present invention relates to networking technology area, particularly a kind of processing method of DNS request message and system.
Background technology
DNS (DomainNameService, domain name resolution service) server has the server preserving the domain name of main frame and the function of IP mapping relations in network.Caching DNS server is used to the server of the domain name mapping information that storage resource request is crossed, and requested dns resolution information can preserve by it, again inquires about for other user.
In prior art, for the domain name that DNS request message is asked, first inquire about on caching DNS server, inquire about less than after will inquire about to the Authoritative DNS server of far-end.Due to present domestic network more complicated, various link sen business also deposits, and when processing DNS request message, the domain name returned can be different from the link of the request of sending, and user's access speed will be caused like this to decline.
Summary of the invention
In view of this, the invention provides a kind of processing method and system of DNS request message, the access speed of user can be improved.
On the one hand, the invention provides a kind of processing method of DNS request message, comprising: in advance for often kind of link arranges the caching DNS server of the corresponding dns resolution result for buffer memory respective links, also comprise:
S1: determine the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
S2: according to described DNS request message, judges the dns resolution result to be obtained whether described caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
Further, the method also comprises: in advance for often kind of link arranges the Authoritative DNS server of the corresponding dns resolution result for storing respective links, pre-set the backup caching DNS server that each described caching DNS server is corresponding;
Described S2 comprises: when judging described caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server, performs step S21;
S21: judge whether the backup caching DNS server that described caching DNS server is corresponding has described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained from described backup caching DNS server, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, perform step S22;
S22: obtain described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding;
After described S22, also comprise: the described backup caching DNS server sending to described caching DNS server corresponding described dns resolution result to be obtained;
By described dns resolution result cache to be obtained on described backup caching DNS server.
Further, the method also comprises: on each Authoritative DNS server, arrange corresponding root file name.ca in advance;
In described S22, the described Authoritative DNS server corresponding from described request link obtains described dns resolution result to be obtained and comprises: obtain described dns resolution result to be obtained in the rhizosphere record in the root file name.ca from the Authoritative DNS server that described request link is corresponding.
Further, before described S1, also comprise:
Described DNS request message is verified, if by verification, then performs step S1, if not by verification, then abandon described DNS request message.
Further, before described S1, also comprise:
Judge whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if so, then lose described DNS request message, otherwise, perform step S1.
Further, described obtain described dns resolution result to be obtained from described backup caching DNS server after, also comprise: described dns resolution result to be obtained is sent to the caching DNS server that described backup caching DNS server is corresponding;
By described dns resolution result cache to be obtained on described caching DNS server.
On the other hand, the invention provides a kind for the treatment of system of domain name resolution service DNS request message, comprising: the caching DNS server of the dns resolution result for buffer memory respective links that often kind of link is corresponding;
Determining unit, for determining the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
Caching DNS server, for according to the described DNS request message received, judges the dns resolution result to be obtained whether this caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
Further, this system also comprises: the Authoritative DNS server of the dns resolution result for storing respective links that often kind of link is corresponding, the backup caching DNS server that each described caching DNS server is corresponding;
Described caching DNS server, also for when judging this caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server;
Described backup caching DNS server, for the described DNS request message that basis receives, judge whether this backup caching DNS server there is described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, the dns resolution result described to be obtained that buffer memory receives;
Described Authoritative DNS server, for the described DNS request message that basis receives, described dns resolution result to be obtained is obtained, by the described backup caching DNS server that described dns resolution result to be obtained sends to described caching DNS server corresponding at this Authoritative DNS server.
Further, described Authoritative DNS server, for preserving corresponding root file name.ca, when obtaining described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding described in performing, specifically perform: from the rhizosphere record the root file name.ca preserved, obtain described dns resolution result to be obtained.
Further, this system also comprises:
Verification unit, for verifying described DNS request message, if by verification, then described DNS request message is sent to described determining unit, if not by verification, then abandon described DNS request message.
Further, this system also comprises:
Safe unit, for judging whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if so, then lose described DNS request message, otherwise, described DNS request message is sent to described determining unit.
Further, described backup caching DNS server, after the described dns resolution result to be obtained of described acquisition, also for described dns resolution result to be obtained is sent to the caching DNS server that this backup caching DNS server is corresponding;
Described caching DNS server, for the dns resolution result described to be obtained that buffer memory receives.
The invention provides a kind of processing method and system of DNS request message, the dns resolution result of different links is stored on different caching DNS server, when processing DNS request message, according to the request link that DNS request message is corresponding, DNS request message to be obtained is obtained to the caching DNS server that this request link is corresponding, the IP address making the dns resolution result of DNS request Receive message corresponding and DNS request message are with in a kind of link, user is when access is in the IP address of same link, access speed is faster, improves the access speed of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the processing method of a kind of DNS request message that one embodiment of the invention provides;
Fig. 2 is the flow chart of the processing method of the another kind of DNS request message that one embodiment of the invention provides;
Fig. 3 is the schematic diagram of the treatment system of a kind of DNS request message that one embodiment of the invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of processing method of DNS request message, the method can comprise the following steps:
S0: in advance for often kind of link arranges the caching DNS server of the corresponding dns resolution result for buffer memory respective links, the appointment dns server that each caching DNS server is corresponding is set;
S1: determine the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
S2: according to described DNS request message, judges the dns resolution result to be obtained whether described caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
The processing method of a kind of DNS request message provided by the embodiment of the present invention, the dns resolution result of different links is stored on different caching DNS server, when processing DNS request message, according to the request link that DNS request message is corresponding, DNS request message to be obtained is obtained to the caching DNS server that this request link is corresponding, the IP address making the dns resolution result of DNS request Receive message corresponding and DNS request message are with in a kind of link, user is when access is in the IP address of same link, access speed is faster, improve the access speed of user.
When caching DNS server delay machine or restart time, in caching DNS server, the dns resolution result of buffer memory will be lost, the speed of response DNS request message will decline, in order to solve this problem, in a kind of possible implementation, the method also comprises: in advance for often kind of link arranges the Authoritative DNS server of the corresponding dns resolution result for storing respective links, pre-set the backup caching DNS server that each described caching DNS server is corresponding;
Described S2 comprises: when judging described caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server, performs step S21;
S21: judge whether the backup caching DNS server that described caching DNS server is corresponding has described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained from described backup caching DNS server, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, perform step S22;
S22: obtain described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding;
After described S22, also comprise: the described backup caching DNS server sending to described caching DNS server corresponding described dns resolution result to be obtained;
By described dns resolution result cache to be obtained on described backup caching DNS server.
In addition, after described S22, also comprise: described dns resolution result to be obtained is sent to described caching DNS server;
By described dns resolution result cache to be obtained on described caching DNS server.
In this implementation, for each caching DNS server arranges corresponding backup caching DNS server, caching DNS server wants the dns resolution result of buffer memory also can back up buffer memory on caching DNS server, when caching DNS server delay machine or restart time, dns resolution result can be obtained from backup caching DNS server, improve the processing speed of DNS request message.
In order to improve the processing speed of dns resolution result further, when not having on the caching DNS server of correspondence in the dns resolution result backing up caching DNS server buffer memory, can in this dns resolution result of this caching DNS server buffer memory, like this, in next time when asking this dns resolution result, directly can obtain from caching DNS server, and search without the need to arriving backup caching DNS server again.Particularly, in a kind of possible implementation, described obtain described dns resolution result to be obtained from described backup caching DNS server after, also comprise: described dns resolution result to be obtained is sent to the caching DNS server that described backup caching DNS server is corresponding; By described dns resolution result cache to be obtained on described caching DNS server.
Before S1, when needing to be configured caching DNS server and backup caching DNS server, on caching DNS server, Bind9 can be installed, configuration high speed buffer storage file is needed for caching DNS server and backup caching DNS server, like this can according to high speed buffer storage file by DNS request message repeating on the dns server set, Query Result can be kept in local cache, if do not specify forwarding server, dns server can go to inquire about in the rhizosphere record in root file name.ca, and is got off by Query Result buffer memory.
Caching DNS server and backup caching DNS server can be configured by named.conf, specific as follows:
optinos{
dump-file“/var/named/named.dump_db”;
datasize100M;
recursionyes;
forwarders{124.115.214.58;124.115.4.91;};
};
Wherein, recursionyes: represent allow recursive query, if in the buffer with forward dns server on search less than, then can go to search dns resolution result in rhizosphere.
Dump-file: formulate the file that buffer memory is deposited, buffer memory is present in internal memory, to restart or crashes, buffer memory can be caused not exist due to DNS due to a variety of causes, accesses network speed can be caused to decline when again opening, the caching DNS server of backup at this moment can be utilized to carry out high speed inquiry.
Datasize: the size arranging buffer memory, if internal memory is enough large, what can arrange here is larger, deposits more cache information.
Forwarders: the IP that the dns server of forwarding is set, when not recording in local cache, by be first forwarded to Forwarders point to dns server on resolve.For the caching DNS server of different link, point to the dns server that this link is corresponding.For caching DNS server, be provided with corresponding backup caching DNS server, point to corresponding backup caching DNS server, there is no corresponding backup caching DNS server, point to the Authoritative DNS server of same link.For backup caching DNS server, point to the Authoritative DNS server of same link.For example, the caching DNS server being in telecommunication link points to the backup caching DNS server of corresponding telecommunication link, and the backup caching DNS server of telecommunication link points to the Authoritative DNS server of telecommunication link.For example, the IP address of backup caching DNS server is 100.2.3.7, then the caching DNS server of correspondence can be configured as follows:
optinos{
dump-file“/var/named/named.dump_db”;
datasize100M;
recursionyes;
forwarders{100.2.3.7;};
};
Can also be configured caching DNS server and backup caching DNS server by following code:
zone“baidu.com”{
Typeforward;
Forwarders{202.102.154.3;202.102.152.3;};
};
Zone: when certain domain name is accessed than very fast under a certain link, can formulate the dns server of link corresponding to this domain name, what configured by forwarders place is the IP address of dns server.
Further, in a kind of possible implementation, the method also comprises: on each Authoritative DNS server, arrange corresponding root file name.ca in advance;
In described S22, the described Authoritative DNS server corresponding from described request link obtains described dns resolution result to be obtained and comprises: obtain described dns resolution result to be obtained in the rhizosphere record in the root file name.ca from the Authoritative DNS server that described request link is corresponding.
In addition, the DNS that there is various malice in network attacks, and they are dns server transmission DNS request message frequently, seriously add the parsing pressure of dns server, dns server time serious, will be caused to paralyse, in order to solve this problem, improve the safety of dns server, in a kind of possible implementation, before described S1, also comprise: described DNS request message is verified, if by verification, then perform step S1, if not by verification, then abandon described DNS request message.In this implementation, before acquisition dns resolution combines, DNS request message is verified, if the DNS request message be not accordant to the old routine, then by packet loss, ensure the safety of dns server.
In a kind of possible implementation, can also before described S1, also comprise: judge whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if, then lose described DNS request message, otherwise, perform step S1.In this implementation, when the DNS request message sent when certain IP address is too much, can thinks that the DNS of malice attacks, need the DNS request packet loss of being sent this IP address, ensure the safety of dns server.
In a kind of possible implementation, described S1, comprising: obtain the IP address of carrying in described DNS request message, determines described request link according to described IP address.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
In the application scenarios of the embodiment of the present invention, be provided with caching DNS server A, caching DNS server B, backup caching DNS server A, backup caching DNS server B, Authoritative DNS server A, Authoritative DNS server B.Client under telecommunication link have issued a DNS request message.
As shown in Figure 2, embodiments provide a kind of processing method of DNS request message, the method can comprise the following steps:
Step 201: in advance for telecommunication link arranges backup caching DNS server A corresponding to the caching DNS server A of the corresponding dns resolution result for buffer memory telecommunication link and caching DNS server A, in advance for Netcom's link arranges backup caching DNS server B corresponding to the caching DNS server B of the corresponding dns resolution result for buffer memory Netcom link and caching DNS server B, in advance for telecommunication link arranges the Authoritative DNS server A of the corresponding dns resolution result for storing telecommunication link, in advance for Netcom's link arranges the Authoritative DNS server B of the corresponding dns resolution result for storing Netcom's link.
Step 202: determine that the request link that DNS request message is corresponding is telecommunication link, by the caching DNS server A that this DNS request message sends to telecommunication link corresponding.
Step 203: according to DNS request message, judge the dns resolution result to be obtained whether caching DNS server A having DNS request message ask, if had, then obtain described dns resolution result to be obtained, otherwise, by described DNS request message repeating on backup caching DNS server A corresponding to caching DNS server A, perform step 204.
Step 204: judge whether backup caching DNS server A has dns resolution result to be obtained, if had, then obtain dns resolution result to be obtained from backup caching DNS server A, perform step 205, otherwise, by DNS request message repeating on Authoritative DNS server A corresponding to telecommunication link, perform step 206;
Step 205: dns resolution result to be obtained is sent to caching DNS server A, by dns resolution result cache to be obtained on caching DNS server A.
Step 206: obtain dns resolution result to be obtained from the Authoritative DNS server that request link is corresponding.
Step 207: dns resolution result to be obtained is sent to backup caching DNS server A, by dns resolution result cache to be obtained on backup caching DNS server A, dns resolution result to be obtained is sent to caching DNS server A, by dns resolution result cache to be obtained on caching DNS server A.
The treatment system of a kind of DNS request message that the present embodiment provides, comprising:
The caching DNS server of the dns resolution result for buffer memory respective links that often kind of link is corresponding;
Determining unit, for determining the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
Caching DNS server, for according to the described DNS request message received, judges the dns resolution result to be obtained whether this caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
A kind of may in implementation, this system also comprises: the Authoritative DNS server of the dns resolution result for storing respective links that often kind of link is corresponding, the backup caching DNS server that each described caching DNS server is corresponding;
Described caching DNS server, also for when judging this caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server;
Backup caching DNS server, for the described DNS request message that basis receives, judge whether described backup caching DNS server has described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, the dns resolution result described to be obtained that buffer memory receives;
Authoritative DNS server, for the described DNS request message that basis receives, described dns resolution result to be obtained is obtained, by the described backup caching DNS server that described dns resolution result to be obtained sends to described caching DNS server corresponding at this Authoritative DNS server.
In a kind of possibility implementation, Authoritative DNS server, for preserving corresponding root file name.ca, when obtaining described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding described in performing, specifically perform: from the rhizosphere record the root file name.ca preserved, obtain described dns resolution result to be obtained.
In a kind of possibility implementation, this system also comprises: verification unit, for verifying described DNS request message, if by verification, then described DNS request message is sent to described determining unit, if not by verification, then abandon described DNS request message.
In a kind of possibility implementation, this system also comprises:
Safe unit, for judging whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if so, then lose described DNS request message, otherwise, described DNS request message is sent to described determining unit.
In a kind of possibility implementation, described backup caching DNS server, after the described dns resolution result to be obtained of described acquisition, also for described dns resolution result to be obtained is sent to the caching DNS server that this backup caching DNS server is corresponding;
Described caching DNS server, for the dns resolution result described to be obtained that buffer memory receives.
It is telecommunication link, Netcom's link respectively that the embodiment of the present invention is provided with two kinds of links.See Fig. 3, the treatment system of a kind of DNS request message that the embodiment of the present invention provides, comprising:
The caching DNS server C301 of the dns resolution result for buffer memory telecommunication link that telecommunication link is corresponding, the caching DNS server D302 of the dns resolution result for buffer memory Netcom link that Netcom's link is corresponding, the backup caching DNS server C303 that caching DNS server C301 is corresponding, the backup caching DNS server D304 that caching DNS server D302 is corresponding, the Authoritative DNS server C305 of the dns resolution result for storing telecommunication link that telecommunication link is corresponding, the Authoritative DNS server D306 of the dns resolution result for storing Netcom's link that Netcom's link is corresponding.
Determining unit 307, for determining the request link that DNS request message is corresponding, described DNS request message is sent to the caching DNS server that described request link is corresponding, and wherein, caching DNS server comprises: caching DNS server C301, caching DNS server D302.
Caching DNS server C301, for the DNS request message that basis receives, judge the dns resolution result to be obtained whether this caching DNS server having DNS request message ask, if had, then obtain dns resolution result to be obtained, otherwise, by DNS request message repeating on backup caching DNS server C303 corresponding to caching DNS server.
Caching DNS server D302, for the DNS request message that basis receives, judge the dns resolution result to be obtained whether this caching DNS server having DNS request message ask, if had, then obtain dns resolution result to be obtained, otherwise, by DNS request message repeating on backup caching DNS server D304 corresponding to caching DNS server.
Backup caching DNS server C303, for the DNS request message that basis receives, judge whether this backup caching DNS server there is dns resolution result to be obtained, if had, then obtain dns resolution result to be obtained, otherwise, by DNS request message repeating on Authoritative DNS server C305 corresponding to request link, the dns resolution result to be obtained that buffer memory receives;
Backup caching DNS server D304, for the DNS request message that basis receives, judge whether this backup caching DNS server there is dns resolution result to be obtained, if had, then obtain dns resolution result to be obtained, otherwise, by DNS request message repeating on Authoritative DNS server D306 corresponding to request link, the dns resolution result to be obtained that buffer memory receives;
Authoritative DNS server C305, for the DNS request message that basis receives, described dns resolution result to be obtained is obtained, by the backup caching DNS server C303 that described dns resolution result to be obtained sends to caching DNS server corresponding at this Authoritative DNS server.
Authoritative DNS server D306, for the DNS request message that basis receives, described dns resolution result to be obtained is obtained, by the backup caching DNS server D304 that described dns resolution result to be obtained sends to caching DNS server corresponding at this Authoritative DNS server.
The content such as information interaction, implementation between each unit in said apparatus, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
The processing method of a kind of DNS request message that the embodiment of the present invention provides and system, have following beneficial effect:
1, the processing method of a kind of DNS request message provided by the embodiment of the present invention and system, the dns resolution result of different links is stored on different caching DNS server, when processing DNS request message, according to the request link that DNS request message is corresponding, DNS request message to be obtained is obtained to the caching DNS server that this request link is corresponding, the IP address making the dns resolution result of DNS request Receive message corresponding and DNS request message are with in a kind of link, user is when access is in the IP address of same link, access speed is faster, improve the access speed of user.
The processing method of a kind of DNS request message 2, provided by the embodiment of the present invention and system, for each caching DNS server arranges corresponding backup caching DNS server, caching DNS server wants the dns resolution result of buffer memory also can back up buffer memory on caching DNS server, when caching DNS server delay machine or restart time, dns resolution result can be obtained from backup caching DNS server, improve the processing speed of DNS request message.
The processing method of a kind of DNS request message 3, provided by the embodiment of the present invention and system, before acquisition dns resolution combines, DNS request message is verified, if the DNS request message be not accordant to the old routine, then by packet loss, ensure the safety of dns server.
The processing method of a kind of DNS request message 4, provided by the embodiment of the present invention and system, when the DNS request message sent when certain IP address is too much, can think that the DNS of malice attacks, need the DNS request packet loss of being sent this IP address, ensure the safety of dns server.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised a 〃 〃 〃 〃 〃 〃 " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
Claims (10)
1. a processing method for domain name resolution service DNS request message, is characterized in that, comprising: in advance for often kind of link arranges the caching DNS server of the corresponding dns resolution result for buffer memory respective links, also comprise:
S1: determine the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
S2: according to described DNS request message, judges the dns resolution result to be obtained whether described caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
2. method according to claim 1, it is characterized in that, also comprise: in advance for often kind of link arranges the Authoritative DNS server of the corresponding dns resolution result for storing respective links, pre-set the backup caching DNS server that each described caching DNS server is corresponding;
Described S2 comprises: when judging described caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server, performs step S21;
S21: judge whether the backup caching DNS server that described caching DNS server is corresponding has described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained from described backup caching DNS server, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, perform step S22;
S22: obtain described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding;
After described S22, also comprise: the described backup caching DNS server sending to described caching DNS server corresponding described dns resolution result to be obtained;
By described dns resolution result cache to be obtained on described backup caching DNS server.
3. method according to claim 2, is characterized in that, also comprises: on each Authoritative DNS server, arrange corresponding root file name.ca in advance;
In described S22, the described Authoritative DNS server corresponding from described request link obtains described dns resolution result to be obtained and comprises: obtain described dns resolution result to be obtained in the rhizosphere record in the root file name.ca from the Authoritative DNS server that described request link is corresponding.
4. method according to claim 1, is characterized in that, before described S1, also comprises:
Described DNS request message is verified, if by verification, then performs step S1, if not by verification, then abandon described DNS request message;
And/or, before described S1, also comprise:
Judge whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if so, then lose described DNS request message, otherwise, perform step S1.
5. method according to claim 2, it is characterized in that, described obtain described dns resolution result to be obtained from described backup caching DNS server after, also comprise: described dns resolution result to be obtained is sent to the caching DNS server that described backup caching DNS server is corresponding;
By described dns resolution result cache to be obtained on described caching DNS server.
6. a treatment system for domain name resolution service DNS request message, is characterized in that, comprising: the caching DNS server of the dns resolution result for buffer memory respective links that often kind of link is corresponding;
Determining unit, for determining the request link that DNS request message is corresponding, sends to described DNS request message the caching DNS server that described request link is corresponding;
Caching DNS server, for according to the described DNS request message received, judges the dns resolution result to be obtained whether this caching DNS server having described DNS request message ask, if had, then obtains described dns resolution result to be obtained.
7. system according to claim 6, is characterized in that, also comprises: the Authoritative DNS server of the dns resolution result for storing respective links that often kind of link is corresponding, the backup caching DNS server that each described caching DNS server is corresponding;
Described caching DNS server, also for when judging this caching DNS server does not have described dns resolution result to be obtained, by described DNS request message repeating on backup caching DNS server corresponding to described caching DNS server;
Described backup caching DNS server, for the described DNS request message that basis receives, judge whether this backup caching DNS server there is described dns resolution result to be obtained, if had, then obtain described dns resolution result to be obtained, otherwise, by described DNS request message repeating on Authoritative DNS server corresponding to described request link, the dns resolution result described to be obtained that buffer memory receives;
Described Authoritative DNS server, for the described DNS request message that basis receives, described dns resolution result to be obtained is obtained, by the described backup caching DNS server that described dns resolution result to be obtained sends to described caching DNS server corresponding at this Authoritative DNS server.
8. system according to claim 7, it is characterized in that, described Authoritative DNS server, for preserving corresponding root file name.ca, when obtaining described dns resolution result to be obtained from the Authoritative DNS server that described request link is corresponding described in performing, specifically perform: from the rhizosphere record the root file name.ca preserved, obtain described dns resolution result to be obtained.
9. system according to claim 6, is characterized in that, also comprises:
Verification unit, for verifying described DNS request message, if by verification, then described DNS request message is sent to described determining unit, if not by verification, then abandon described DNS request message;
And/or, also comprise:
Safe unit, for judging whether the quantity of the DNS request message that the IP address that described DNS request message is corresponding sends in Preset Time is more than or equal to predetermined threshold value, if so, then lose described DNS request message, otherwise, described DNS request message is sent to described determining unit.
10. system according to claim 7, it is characterized in that, described backup caching DNS server, after the described dns resolution result to be obtained of described acquisition, also for described dns resolution result to be obtained is sent to the caching DNS server that this backup caching DNS server is corresponding;
Described caching DNS server, for the dns resolution result described to be obtained that buffer memory receives.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510677670.1A CN105357279A (en) | 2015-10-19 | 2015-10-19 | Domain name service (DNS) request message processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510677670.1A CN105357279A (en) | 2015-10-19 | 2015-10-19 | Domain name service (DNS) request message processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105357279A true CN105357279A (en) | 2016-02-24 |
Family
ID=55333138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510677670.1A Pending CN105357279A (en) | 2015-10-19 | 2015-10-19 | Domain name service (DNS) request message processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357279A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922120A (en) * | 2018-12-10 | 2019-06-21 | 网宿科技股份有限公司 | Improve the method and terminal of DNS availability |
-
2015
- 2015-10-19 CN CN201510677670.1A patent/CN105357279A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922120A (en) * | 2018-12-10 | 2019-06-21 | 网宿科技股份有限公司 | Improve the method and terminal of DNS availability |
CN109922120B (en) * | 2018-12-10 | 2022-04-05 | 网宿科技股份有限公司 | Method and terminal for improving DNS availability |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106331212B (en) | A kind of domain name analytic method and system resident based on DNS cache | |
CN103812849B (en) | A kind of local cache update method, system, client and server | |
CN102469167B (en) | Domain name query implementing method and system | |
CN102651861B (en) | Download method for mobile terminal, mobile terminal and proxy download server | |
CN103780679B (en) | Long delay remote invocation method based on http protocol | |
CN105472056B (en) | DNS recursion server is layered caching method and system | |
CN112600868B (en) | Domain name resolution method, domain name resolution device and electronic equipment | |
TW201824047A (en) | Attack request determination method, apparatus and server | |
WO2002077839A1 (en) | Method and system for class-based management of dynamic content in a networked environment | |
CN103685168B (en) | A kind of inquiry request method of servicing of DNS recursion server | |
US9954815B2 (en) | Domain name collaboration service using domain name dependency server | |
CN107070988A (en) | Message processing method and device | |
CN102857547B (en) | The method and apparatus of distributed caching | |
CN105791366A (en) | Large file HTTP-Range downloading method, cache server and system | |
CN108989220A (en) | Route Method And Route System | |
CN109413224B (en) | Message forwarding method and device | |
CN102572011A (en) | Method, device and system for processing data | |
CN106921648A (en) | Date storage method, application server and remote storage server | |
CN106571968A (en) | Business switching method and system | |
EP1252565A2 (en) | Method, apparatus, and computer program product for efficient server response generation using intermediate state caching | |
CN103795584A (en) | Client side identity detection method and gateway | |
CN103957252B (en) | The journal obtaining method and its system of cloud stocking system | |
CN105554181A (en) | DNS log compression method and device | |
CN103380607A (en) | DNS client address and RR TTL updating method, device and system | |
CN105357279A (en) | Domain name service (DNS) request message processing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160224 |
|
WD01 | Invention patent application deemed withdrawn after publication |