CN101272407B - Caching detecting method, caching detecting device and detection responding device for domain name system - Google Patents

Caching detecting method, caching detecting device and detection responding device for domain name system Download PDF

Info

Publication number
CN101272407B
CN101272407B CN2008101053123A CN200810105312A CN101272407B CN 101272407 B CN101272407 B CN 101272407B CN 2008101053123 A CN2008101053123 A CN 2008101053123A CN 200810105312 A CN200810105312 A CN 200810105312A CN 101272407 B CN101272407 B CN 101272407B
Authority
CN
China
Prior art keywords
domain name
main frame
host domain
host
detection
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.)
Expired - Fee Related
Application number
CN2008101053123A
Other languages
Chinese (zh)
Other versions
CN101272407A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008101053123A priority Critical patent/CN101272407B/en
Publication of CN101272407A publication Critical patent/CN101272407A/en
Application granted granted Critical
Publication of CN101272407B publication Critical patent/CN101272407B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a cache detection method of a domain name system (DNS), a cache detection device and a detection response device thereof, wherein, the method comprises the steps of searching for the corresponding record of the domain name and the IP address of a host in local cache according to the query request including the domain name of the host, transmitting a detection aiming at the domain name of the host to the host corresponding to the IP address in the record, judging whether the host is the corresponding host of the host domain name or not according to the detection result, and if the answer is yes, the IP address is set as the corresponding IP address to the host domain name, while if the answer is no, the corresponding IP address is inquired to a DNS server. The technical proposal disclosed by the invention can avoid failure connections caused by being unable to renew DNS cache in time.

Description

The buffer probe method of domain name system, buffer probe device and probe response means
Technical field
The present invention relates to network technology, relate in particular to buffer probe method, buffer probe device and the probe response means of a kind of domain name system (DNS, Domain NameSystem).
Background technology
In present IP network, the IP address is the unique identification of main frame in the network, and the communication between the computer can only be used and be similar to " xxx.xx.xx.xxx " such IP address and identify main frame, and wherein, x represents numeral.But as the user of computer, people's more get used to using a computer mode of domain name visits other computer, such as using domain name " www.abcd.com " to visit corresponding with it computer.
So, just need a kind of changing the mechanism, realize the conversion between computer domain name and the IP address, based on these demands, DNS arises at the historic moment.DNS is the naming system of a kind of computer that is organized into the domain hierarchy structure and network service, be mainly used in by the warm and friendly computer domain name title of user (as Www.abcd.com) replace the IP address (as xxx.xx.xx.xxx) of uninteresting and difficult note to locate corresponding calculated machine and respective service.
During concrete the application, on every main frame, all moved the DNS client, other application layer protocols, HTTP(Hypertext Transport Protocol) for example, the client of Simple Mail Transfer protocol (SMTP) or text transfer protocol (FTP) etc. utilizes the DNS client to convert the computer domain name that the user provides to the IP address.For example user A runs on a browser on the local host, i.e. HTTP client-requested Http:// www.abcd.comThen on the main frame that the HTTP request message is sent to www.abcd.com by name, browser at first extracts host domain name from URL(uniform resource locator) (URL), and this host domain name is passed to DNS client on the local host, initiates query requests to the DNS client.So the DNS client is sent a DNS inquiry that comprises this host domain name to certain dns server, receive replying of an IP address that comprises this host domain name correspondence afterwards.Afterwards, the DNS client feeds back to browser with this IP address, and browser is initiated a transmission control protocol to the http server that is positioned at this IP address (TCP) and connected.
In the said process,, introduce extra delay can for the upper layer application of using it, and can increase the DNS flow if all carry out the DNS inquiry for each request.Therefore, general at present equipment as the DNS client, the capital will be buffered in this locality from the corresponding relation of host domain name that inquires on the dns server and IP address, follow-up when the query requests of repetition is arranged, the DNS client can preferentially be inquired about local cache, if corresponding record has been arranged in the buffer memory, then no longer initiate request, and use the IP address in the local cache to connect to dns server; If there is not corresponding record in the buffer memory, then initiate request to dns server again.
In order in local cache, to keep the corresponding relation record of newer domain name and IP address, generally all can be set a DNS buffer memory life cycle on the DNS client device, for every in buffer memory record, be not used life cycle if reach a buffer memory, think that then it is aging, and deleted.But every record in this cycle, the DNS client normally can not go to upgrade, so, variations such as IP address change take place in the main frame corresponding when certain bar record, and local host the situation of connection failure will occur when still using this record in the buffer memory to connect owing to can't know this conversion.Such as, among main frame (Host) A buffer memory record of host B, and at the buffer memory of host A in life cycle, host B has been applied for the IP address again, but host A perception in time.In this time period, if host A will initiate to connect to host B, then can use the recorded content in the buffer memory, promptly use the old IP address of host B to remove to visit host B, the consequence of doing like this is or can not connects, or is connected on the wrong main frame, this point is especially obvious in wireless network environment, because the frequent mobile place of wireless user needs often to switch the IP address, even switches to the another one local area network (LAN) from a local area network (LAN) sometimes.As seen, in the prior art, when the DNS buffer memory does not upgrade in time, can there be the situation of connection failure.
Summary of the invention
In view of this, provide a kind of method that the buffer memory of DNS is surveyed on the one hand among the present invention, buffer probe device and the probe response means of a kind of DNS is provided on the other hand, with the connection failure of avoiding to upgrade in time and bringing owing to the DNS buffer memory.
The method that the buffer memory of DNS is surveyed provided by the present invention comprises:
According to the query requests that comprises host domain name that receives, in local cache, search the corresponding record of described host domain name and IP address;
If find described record, send detection at this host domain name to the main frame of described IP address correspondence;
Described main frame receives described detection at host domain name, according to described detection, returns corresponding result of detection to the main body that sends described detection, and wherein, described result of detection is the host domain name of described main frame self;
Judge that described host domain name that the described main frame that receives in the setting-up time returns is whether consistent with host domain name in the described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, with the IP address of described IP address as described host domain name correspondence, if it is inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests, inquires about the IP address of described host domain name correspondence to dns server.
Preferably, when described main frame was not the main frame of described host domain name correspondence, before IP address from described host domain name correspondence to dns server that inquire about, this method further comprised: with the described record deletion in the local cache.
Preferably, the described detection domain name probe message that is the requesting host domain name at host domain name.
Preferably, comprise host domain name in the described query requests in the domain name probe message;
Described main frame is before the main body that sends described detection is returned the host domain name of self, further comprise: described main frame compares host domain name in the described detection and the host domain name of self, if consistent, then carry out described operation from the host domain name of self to the main body that sends described detection that return; Otherwise described main frame does not return any result to the main body that sends described detection.
Preferably, any as a result the time if described main frame does not return in setting-up time, judge that described main frame is not the main frame of host domain name correspondence in the described query requests.
The buffer probe device of DNS provided by the present invention comprises:
The record search module is used for searching the corresponding record of described host domain name and IP address according to the query requests that comprises host domain name that receives in local cache;
Survey processing module, be used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name, obtain result of detection, wherein, described result of detection is the host domain name of described main frame self;
Main frame is judged submodule, be used for judging whether the host domain name of described main frame self is consistent with the host domain name of described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, if inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests;
The result treatment submodule is used for when described main frame judges that submodule judges that described main frame is the main frame of described query requests host domain name correspondence, with the IP address of the IP address in the record described in the local cache as host domain name correspondence in the described query requests; When described main frame judges that submodule judges that described main frame is not the main frame of host domain name correspondence in the described query requests, inquire about the IP address of host domain name correspondence in the described query requests to dns server, perhaps, delete the described record in the local cache, and inquire about the IP address of host domain name correspondence in the described query requests to dns server.
Preferably, described detection processing module comprises:
Probe message sends submodule, is used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name;
The timing submodule is used for after described probe message sends the described detection at described host domain name of submodule transmission, according to the duration startup timing of setting-up time;
The result receives submodule, is used for receiving the host domain name that described main frame returns in the timing time of described timing submodule.
Preferably, described main frame is judged submodule, also is used for judging that described main frame is not the main frame of host domain name correspondence in the described query requests when described result receives submodule and do not receive described host domain name.
Domain name system DNS provided by the present invention, the DNS of domain name system comprises buffer probe device and the probe response means that the detection of described buffer probe device is responded, wherein, described buffer probe device comprises:
The record search module is used for searching the corresponding record of described host domain name and IP address according to the query requests that comprises host domain name that receives in local cache;
Survey processing module, be used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name, obtain result of detection, wherein, described result of detection is the host domain name of described main frame self;
Main frame is judged submodule, be used for judging whether the host domain name of described main frame self is consistent with the host domain name of described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, if inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests;
The result treatment submodule is used for when described main frame judges that submodule judges that described main frame is the main frame of described query requests host domain name correspondence, with the IP address of the IP address in the record described in the local cache as host domain name correspondence in the described query requests; When described main frame judges that submodule judges that described main frame is not the main frame of host domain name correspondence in the described query requests, inquire about the IP address of host domain name correspondence in the described query requests to dns server, perhaps, delete the described record in the local cache, and inquire about the IP address of host domain name correspondence in the described query requests to dns server;
Described probe response means comprises:
The probe message receiver module is used to receive the detection at host domain name from the buffer probe device of described DNS;
The probe response module is used for according to described detection at host domain name, returns corresponding result of detection to described buffer probe device.
Preferably, described probe response means further comprises: the domain name comparison module, be used for host domain name that described detection is carried and the host domain name of self and compare,, then notify the probe response module to carry out described operation from corresponding result of detection to the buffer probe device that return if consistent.
From such scheme as can be seen, the DNS client is after finding the corresponding record of host domain name and IP address according to query requests among the present invention in local cache, directly do not use the IP address in this record, but send the detection of requesting host domain name to the destination host of this IP address correspondence, and judge according to result of detection whether destination host is the main frame of host domain name correspondence in the query requests, if, just use the IP address in this record, otherwise, again inquire about the new IP address of host domain name correspondence to dns server, thereby avoided because the DNS buffer memory can not upgrade in time, and the connection failure that causes when using aging IP address.
Description of drawings
Fig. 1 is the exemplary process diagram of the method the buffer memory of DNS surveyed in the embodiment of the invention;
Fig. 2 is the exemplary block diagram of the buffer probe device of DNS in the embodiment of the invention;
Fig. 3 is a structural representation of surveying processing module in the device shown in Figure 2;
Fig. 4 is the structural representation of result treatment module in the device shown in Figure 2;
Fig. 5 is the exemplary block diagram of the probe response means of DNS in the embodiment of the invention.
Embodiment
In the embodiment of the invention, be the connection failure of avoiding to upgrade in time and bringing owing to the DNS buffer memory, can be behind the record that from buffer memory, finds corresponding host domain name and IP address, directly do not utilize the IP address in this record to initiate to connect, but earlier send detection at host domain name to the main frame of this IP address correspondence, and judge according to result of detection whether the other side is the main frame of described host domain name correspondence, when judgement is, utilize the IP address in this record to initiate to connect again.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
Fig. 1 is the exemplary process diagram of the method the buffer memory of DNS surveyed in the embodiment of the invention.As shown in Figure 1, this flow process comprises the steps:
Step 101, the DNS client of local host receives the query requests of the host domain name that comprises destination host.
Wherein, this query requests can be other application layer protocol on the local host, sends to this DNS client as the client of HTTP, SMTP or FTP etc.
Step 102, DNS client be according to this query requests, searches the host domain name in this query requests and the corresponding record of corresponding IP address in local cache, if find, then execution in step 103, otherwise, execution in step 106.
The destination host of step 103, the DNS client IP address correspondence in described record sends the detection at host domain name, obtains result of detection.
Wherein, detection at host domain name can be a kind of domain name probe message of requesting host domain name, and this domain name probe message can be used new resource record (RR) query type (QTYPE), also can continue to use old RR query type, but needs to expand replying message.
For example, can increase a kind of new query type,,, be used to ask the domain-name information of destination host as this domain name probe message as buffer probe (CD, Cache Detect) message.In this case, less to existing change.
And for example, can expand the reply content of original host information (HINFO) query type, include only the cpu type and operating system (OS) type of destination host in the original reply content of this message, can also carry the domain-name information of main frame in the HINFO message reply content after the expansion, promptly use HINFO message as the domain name probe message.
Correspondingly, destination host returns corresponding result of detection according to the detection at host domain name that receives to the DNS client.
For example, destination host can return the host domain name of destination host to the DNS client according to the domain name probe message of requesting host domain name.During specific implementation, when destination host returns the host domain name of self to the DNS client, can be to return the probe response message that comprises self host domain name to the DNS client.
In addition, for the sake of security, prevent that the assailant from initiating DNS to destination host and attacking, as the host domain name of random request destination host etc.Also can comprise the host domain name in the query requests in the domain name probe message in the embodiment of the invention, being used for destination host can compare this host domain name and the host domain name of self, if it is consistent, then can return the probe response message that comprises host domain name to the DNS client, otherwise, can not return any result to the DNS client.Perhaps, in order to improve the speed that the DNS client judges whether record wears out, destination host also can still return the probe response message that comprises host domain name to the DNS client when above-mentioned domain name comparative result is inconsistent.
Generally, can receive above-mentioned domain name probe message in order to make destination host, can open the well-known port of DNS on destination host, as 53 ports, then destination host can receive the domain name probe message by this port.In addition, for the destination host of only supporting the DNS client, in order to save the resource of destination host, after opening the DNS well-known port, this port can only be used to receive the domain name probe message, and does not receive the request type of other DNS, as category-A type query messages among the RR etc.
Correspondingly, DNS client for local host, can set the time that receives probe response message, then corresponding result of detection can be not return any result in this setting-up time, or has returned the probe response message that comprises host domain name in the setting-up time.
Step 104, DNS client judge whether destination host is the main frame of the host domain name correspondence in the probe requests thereby, if then execution in step 105 according to result of detection; Otherwise, execution in step 106.
Wherein, if do not receive the probe response message of returning that comprises host domain name in setting-up time, promptly result of detection is not return any result in the setting-up time, and then the DNS client judges that this destination host is not the main frame of host domain name correspondence in the query requests; If in setting-up time, receive the probe response message of returning that comprises host domain name, be that result of detection is to have returned the probe response message that comprises host domain name in the setting-up time, then the DNS client judges that the host domain name in this probe response message is whether consistent with host domain name in the query requests, if it is consistent, judge that then destination host is the main frame of host domain name correspondence in the query requests, if inconsistent, judge that then destination host is not the main frame of host domain name correspondence in the query requests.
Step 105, the DNS client is with the IP address of the IP address in the record of being found as host domain name correspondence in the query requests, afterwards, the DNS client can offer this IP address the main body that sends query requests to it, as the client of application layer protocol HTTP, SMTP or FTP etc., process ends.
Step 106, the DNS client is inquired about the IP address of described host domain name correspondence to dns server, and afterwards, the DNS client can offer the main body that sends query requests to it with inquiring this IP address, as the client of application layer protocol HTTP, SMTP or FTP etc., process ends.
In this step, the DNS client can be before or after IP address from described host domain name correspondence to dns server that inquire about or simultaneously, the record that finds is deleted from local cache, afterwards, can add the corresponding host domain name and the record of IP address again according to Query Result from dns server.
Perhaps, in this step, also can be directly in the DNS client after dns server is inquired about the IP address of described host domain name correspondence, the corresponding record in the local cache is upgraded, promptly utilize older IP address in the new record, the IP address that newly inquires.
More than the buffer probe method of DNS in the embodiment of the invention is described in detail.During specific implementation, the operation of DNS client executing also can be carried out by the buffer probe device that is positioned among the DNS client or be independent of the DNS outside the DNS client in the said method, the operation that destination host is carried out then can by among the DNS client that is positioned at destination host or the probe response means that is independent of the DNS outside the DNS client of destination host carry out.Buffer probe device and probe response means to DNS in the embodiment of the invention is described in detail below.
Fig. 2 is the exemplary block diagram of the buffer probe device of DNS in the embodiment of the invention.As shown in Figure 2, this device comprises: record search module, detection processing module and result treatment module.
Wherein, the record search module is used for searching the corresponding record of described host domain name and IP address according to the query requests that comprises host domain name that receives in local cache.Wherein, query requests can be other application layer protocol on the local host, sends to this DNS client as the client of HTTP, SMTP or FTP etc.
Survey processing module and be used in the record search module searches during to respective record, the destination host transmission of the IP address correspondence in the record that is found obtains result of detection at the detection of host domain name.Consistent with the description in the method shown in Figure 1, detection at host domain name herein can be the domain name probe message of requesting host domain name, and this domain name probe message can be the query type message that increases newly, also can be the message of having expanded behind the existing query type reply content, can comprise the host domain name in the described query requests in this domain name probe message or not comprise host domain name in the described query requests.Equally, the result of detection that the detection processing module obtains can be not return any result in the setting-up time, or has returned the probe response message that comprises host domain name in the setting-up time.
The result treatment module is used for judging whether destination host is the main frame of host domain name correspondence in the query requests, if then the IP address in the record that will find is as the IP address of described host domain name correspondence according to surveying the result of detection that processing module obtains; Otherwise, inquire about the IP address of described host domain name correspondence to dns server.In addition, when the record search module does not find respective record, also inquire about the IP address of described host domain name correspondence to dns server.Further, this result treatment module is when judging that destination host is not the main frame of described host domain name correspondence, can delete the described record in the local cache, during specific implementation, can before IP address from described host domain name correspondence to dns server that inquire about, delete, also can after it, delete, also can delete simultaneously at it.Perhaps, when this result treatment module is not the main frame of described host domain name correspondence at the judgement destination host, and after dns server is inquired about the IP address of described host domain name correspondence, can directly upgrade the respective record in the local cache.Wherein, the domain name result of detection can be not return any result in the setting-up time, or has returned the host domain name of destination host in the setting-up time.The host domain name of the destination host that wherein, returns can be the host domain name of the destination host that carries in the probe response message of returning.
During specific implementation, this internal structure of surveying processing module can comprise as shown in Figure 3: probe message sends submodule, timing submodule and result and receives submodule.
Wherein, probe message sends submodule and is used for when finding the respective record of above-mentioned host domain name and IP address, and the destination host of the IP address correspondence in this record sends the detection at host domain name.
Wherein, detection at host domain name can be the domain name probe message of requesting host domain name, and this domain name probe message can be the query type message that increases newly, also can be the message of having expanded behind the existing query type reply content, can comprise the host domain name in the described query requests in this domain name probe message or not comprise host domain name in the described query requests.
The timing submodule is used for after described probe message sends the described detection at host domain name of submodule transmission, according to the duration startup timing of setting-up time.
The result receives submodule and is used for receiving the host domain name that described destination host returns in the timing time of described timing submodule.Wherein, destination host return host domain name can be the host domain name of carrying in the probe response message returned of destination host, below all return the probe response message that comprises host domain name with destination host situation be example.
During specific implementation, the internal structure of result treatment module can comprise as shown in Figure 4: main frame is judged submodule and result treatment submodule.
Wherein, main frame judges that submodule is used for judging that destination host is not the main frame of host domain name correspondence in the query requests when described result receives submodule and do not receive the probe response message that comprises host domain name; When described result receives submodule and receives the probe response message that comprises host domain name, judge that the host domain name in this response message is whether consistent with host domain name in the query requests, if it is consistent, judge that then destination host is the main frame of host domain name correspondence in the query requests, if inconsistent, judge that then destination host is not the main frame of host domain name correspondence in the described query requests.
The result treatment submodule is used for when described main frame judges that submodule judges that destination host is the main frame of described query requests host domain name correspondence, with the IP address of the IP address in the respective record that finds in the local cache as host domain name correspondence in the query requests; When described main frame judges that submodule judges that destination host is not the main frame of host domain name correspondence in the query requests, inquire about the IP address of host domain name correspondence in the described query requests to dns server.
Further, when this result treatment submodule judges that at described main frame submodule judges that destination host is not the main frame of host domain name correspondence in the query requests, can delete the described record in the local cache, this deletion action can be carried out after IP address from host domain name correspondence in the described query requests to dns server that inquire about, also can after carry out.Perhaps, this result treatment submodule also can directly upgrade the described record in the local cache after IP address from host domain name correspondence in the described query requests to dns server that inquire about.
Fig. 5 is the exemplary block diagram of the probe response means of DNS in the embodiment of the invention.Shown in the part of the solid line among Fig. 5, this device comprises: probe message receiver module and probe response module.
Wherein, the probe message receiver module is used to receive the detection at host domain name from the buffer probe device of DNS, as the domain name probe message of requesting host domain name.
The probe response module is used for returning corresponding result of detection according to described detection at host domain name to described buffer probe device, as the host domain name of self, during specific implementation, can return the probe response message of carrying self host domain name.
Further, shown in the dotted portion among Fig. 3, this device also can comprise: the domain name comparison module, being used for host domain name that described detection is carried and the host domain name of self compares, if it is consistent, then notify the probe response module to carry out described operation from the probe response message of carrying self host domain name to the buffer probe device that return, if it is inconsistent, can not notify the probe response module to carry out described operation from the probe response message of carrying self host domain name to the buffer probe device that return, then probe response module can be disregarded, perhaps, in order to improve the speed of judging that record is whether aging, also can notify the probe response module to carry out described operation from the probe response message of carrying self host domain name to the buffer probe device that return.
Wherein, this probe message receiver module can be for comprising the DNS well-known port, as the module of 53 ports.
In the embodiment of the invention, detection at host domain name is the description that example is carried out with the domain name probe message of requesting host domain name all, in addition, detection at host domain name also can be other message, as being the affirmation message that comprises the host domain name of destination host, this acknowledge message can be the query type message that increases newly equally, also can be the message of having expanded behind the existing query type reply content.Then destination host can compare host domain name in the acknowledge message and the host domain name of self according to this acknowledge message, if consistent, then returns the consistent message of expression, as " YES ", if inconsistent, then returns the inconsistent message of expression, as " NO " etc.Correspondingly, the DNS client of local host can determine whether destination host is the main frame of host domain name correspondence in the query requests according to result of detection, even receive the consistent message of expression, judge that then destination host is the main frame of host domain name correspondence in the query requests, if receive the inconsistent message of expression, judge that then destination host is not the main frame of host domain name correspondence in the query requests.Give unnecessary details no longer one by one herein.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is preferred embodiment of the present invention; be not to be used to limit protection scope of the present invention; within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method that the buffer memory of domain name system DNS is surveyed is characterized in that, this method comprises:
According to the query requests that comprises host domain name that receives, in local cache, search the corresponding record of described host domain name and IP address;
If find described record, send detection at this host domain name to the main frame of described IP address correspondence;
Described main frame receives described detection at host domain name, according to described detection, returns corresponding result of detection to the main body that sends described detection, and wherein, described result of detection is the host domain name of described main frame self;
Judge that described host domain name that the described main frame that receives in the setting-up time returns is whether consistent with host domain name in the described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, with the IP address of described IP address as described host domain name correspondence, if it is inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests, inquires about the IP address of described host domain name correspondence to dns server.
2. the method for claim 1, it is characterized in that, when described main frame was not the main frame of described host domain name correspondence, before IP address from described host domain name correspondence to dns server that inquire about, this method further comprised: with the described record deletion in the local cache.
3. the method for claim 1 is characterized in that, described detection at host domain name is the domain name probe message of requesting host domain name.
4. method as claimed in claim 3 is characterized in that, comprises the host domain name in the described query requests in the domain name probe message;
Described main frame is before the main body that sends described detection is returned the host domain name of self, further comprise: described main frame compares host domain name in the described detection and the host domain name of self, if consistent, then carry out described operation from the host domain name of self to the main body that sends described detection that return; Otherwise described main frame does not return any result to the main body that sends described detection.
5. method as claimed in claim 4 is characterized in that, this method also further comprises: any as a result the time if described main frame does not return in setting-up time, judge that described main frame is not the main frame of host domain name correspondence in the described query requests.
6. the buffer probe device of a domain name system DNS is characterized in that, this device comprises:
The record search module is used for searching the corresponding record of described host domain name and IP address according to the query requests that comprises host domain name that receives in local cache;
Survey processing module, be used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name, obtain result of detection, wherein, described result of detection is the host domain name of described main frame self;
Main frame is judged submodule, be used for judging whether the host domain name of described main frame self is consistent with the host domain name of described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, if inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests;
The result treatment submodule is used for when described main frame judges that submodule judges that described main frame is the main frame of described query requests host domain name correspondence, with the IP address of the IP address in the record described in the local cache as host domain name correspondence in the described query requests; When described main frame judges that submodule judges that described main frame is not the main frame of host domain name correspondence in the described query requests, inquire about the IP address of host domain name correspondence in the described query requests to dns server, perhaps, delete the described record in the local cache, and inquire about the IP address of host domain name correspondence in the described query requests to dns server.
7. device as claimed in claim 6 is characterized in that, described detection processing module comprises:
Probe message sends submodule, is used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name;
The timing submodule is used for after described probe message sends the described detection at described host domain name of submodule transmission, according to the duration startup timing of setting-up time;
The result receives submodule, is used for receiving the host domain name that described main frame returns in the timing time of described timing submodule.
8. device as claimed in claim 7 is characterized in that, described main frame is judged submodule, also is used for judging that described main frame is not the main frame of host domain name correspondence in the described query requests when described result receives submodule and do not receive described host domain name.
9. a domain name system DNS is characterized in that, the DNS of domain name system comprises buffer probe device and the probe response means that the detection of described buffer probe device is responded, and wherein, described buffer probe device comprises:
The record search module is used for searching the corresponding record of described host domain name and IP address according to the query requests that comprises host domain name that receives in local cache;
Survey processing module, be used for when finding described record, to the main frame transmission of the described IP address correspondence detection at described host domain name, obtain result of detection, wherein, described result of detection is the host domain name of described main frame self;
Main frame is judged submodule, be used for judging whether the host domain name of described main frame self is consistent with the host domain name of described query requests, if it is consistent, judge that then described main frame is the main frame of host domain name correspondence in the described query requests, if inconsistent, judge that then described main frame is not the main frame of host domain name correspondence in the described query requests;
The result treatment submodule is used for when described main frame judges that submodule judges that described main frame is the main frame of described query requests host domain name correspondence, with the IP address of the IP address in the record described in the local cache as host domain name correspondence in the described query requests; When described main frame judges that submodule judges that described main frame is not the main frame of host domain name correspondence in the described query requests, inquire about the IP address of host domain name correspondence in the described query requests to dns server, perhaps, delete the described record in the local cache, and inquire about the IP address of host domain name correspondence in the described query requests to dns server;
Described probe response means comprises:
The probe message receiver module is used to receive the detection at host domain name from the buffer probe device of described DNS;
The probe response module is used for according to described detection at host domain name, returns corresponding result of detection to described buffer probe device.
10. domain name system DNS as claimed in claim 9, it is characterized in that, described probe response means further comprises: the domain name comparison module, being used for host domain name that described detection is carried and the host domain name of self compares, if consistent, then notify the probe response module to carry out described operation from corresponding result of detection to the buffer probe device that return.
CN2008101053123A 2008-04-28 2008-04-28 Caching detecting method, caching detecting device and detection responding device for domain name system Expired - Fee Related CN101272407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101053123A CN101272407B (en) 2008-04-28 2008-04-28 Caching detecting method, caching detecting device and detection responding device for domain name system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101053123A CN101272407B (en) 2008-04-28 2008-04-28 Caching detecting method, caching detecting device and detection responding device for domain name system

Publications (2)

Publication Number Publication Date
CN101272407A CN101272407A (en) 2008-09-24
CN101272407B true CN101272407B (en) 2010-07-21

Family

ID=40006091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101053123A Expired - Fee Related CN101272407B (en) 2008-04-28 2008-04-28 Caching detecting method, caching detecting device and detection responding device for domain name system

Country Status (1)

Country Link
CN (1) CN101272407B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483648B (en) * 2009-02-20 2012-07-11 杭州华三通信技术有限公司 Method, system, apparatus and DNS server for DNS buffer probe
JP5531517B2 (en) * 2009-09-04 2014-06-25 ヤマハ株式会社 Communication apparatus and communication method
CN101815105B (en) * 2010-03-25 2012-09-05 上海交通大学 Domain name resolution service system with intelligent buffer and service method thereof
CN101835205B (en) * 2010-04-07 2015-08-12 中兴通讯股份有限公司 A kind of wireless terminal and Wireless Internet access method
CN101841577B (en) * 2010-06-07 2015-01-28 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function
CN102571997B (en) * 2010-12-29 2014-09-10 中国移动通信集团北京有限公司 Method, system and device for data access
CN102137174B (en) * 2010-12-29 2013-10-09 华为技术有限公司 Method for caching of domain name system, authorized domain name server and cache domain name server
CN102571956B (en) * 2012-01-09 2015-08-19 华为技术有限公司 Association identifies table updating method, association recognition methods, Apparatus and system
KR101769222B1 (en) * 2012-12-26 2017-08-17 후아웨이 테크놀러지 컴퍼니 리미티드 Method and device for preventing service illegal access
CN104219200B (en) * 2013-05-30 2017-10-17 杭州迪普科技股份有限公司 A kind of apparatus and method for taking precautions against DNS cache attack
CN103685597B (en) * 2013-12-02 2017-01-11 北京星网锐捷网络技术有限公司 Internal network address recording method and internal network address recording device
CN104935682A (en) * 2015-06-26 2015-09-23 网宿科技股份有限公司 Domain name resolution method and system
CN105681482A (en) * 2015-12-28 2016-06-15 哈尔滨工业大学 DNS cache detection error correction method
CN106331215A (en) * 2016-08-30 2017-01-11 常州化龙网络科技股份有限公司 Data request processing system and processing method
CN106131246B (en) * 2016-09-05 2019-06-21 用友优普信息技术有限公司 The switching method and device of dns resolution record
CN109819059B (en) * 2017-11-21 2020-07-28 华为技术有限公司 Method, device, equipment and storage medium for managing network equipment
CN109842690A (en) * 2017-11-24 2019-06-04 迈普通信技术股份有限公司 A kind of DNS data update method, system and equipment
CN108134831A (en) * 2017-12-21 2018-06-08 美的集团股份有限公司 The method and apparatus of household electrical appliance and its linking objective server
CN109995887B (en) * 2018-01-02 2022-05-10 中国移动通信有限公司研究院 DNS (Domain name Server) analysis method and device and computer readable storage medium
CN109561167B (en) * 2018-11-27 2021-09-24 杭州迪普科技股份有限公司 Domain name resolution method and device
CN112153171B (en) * 2020-09-25 2023-07-25 互联网域名系统北京市工程研究中心有限公司 System and method for detecting site building condition of domain name
CN114615175B (en) * 2022-05-10 2022-07-29 鹏城实验室 Service verification method, device and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805450A (en) * 2005-01-10 2006-07-19 华为技术有限公司 Method of implementing data synchronization between server and client in DNS mechanism
CN1863196A (en) * 2005-05-11 2006-11-15 中国科学院计算技术研究所 Service agent method for multi-protocol domain analytical service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805450A (en) * 2005-01-10 2006-07-19 华为技术有限公司 Method of implementing data synchronization between server and client in DNS mechanism
CN1863196A (en) * 2005-05-11 2006-11-15 中国科学院计算技术研究所 Service agent method for multi-protocol domain analytical service

Also Published As

Publication number Publication date
CN101272407A (en) 2008-09-24

Similar Documents

Publication Publication Date Title
CN101272407B (en) Caching detecting method, caching detecting device and detection responding device for domain name system
CN101483648B (en) Method, system, apparatus and DNS server for DNS buffer probe
US11909639B2 (en) Request routing based on class
JP3703457B2 (en) Address notification method, program, and apparatus
CN101431539B (en) Domain name resolution method, system and apparatus
CN102469167B (en) Domain name query implementing method and system
CN104427011B (en) The method and domain name cache server of domain name mapping
CN101170585B (en) A domain name inquiry method
US20070204051A1 (en) Proxy Dns For Web Browser Request Redirection In Public Hotspot Accesses
CN103973830A (en) Hybrid unicast/multicast DNS-based service discovery
RU2008106250A (en) STORAGE AND RESOLUTION IN THE BRANCH DNS
CN103685168B (en) A kind of inquiry request method of servicing of DNS recursion server
CN110351373B (en) Remote monitoring method and device for power station
CN106161667A (en) A kind of domain name analytic method and device
CN103685584A (en) Method and system of resisting domain name hijacking based on tunnelling
JP2002525749A (en) Internet caching system, method and system configuration
CN101651718A (en) Method and system for changing IP flow protocol stack
US7610403B2 (en) Device retrieving a name of a communications node in a communications network
CN106657321A (en) Local DNS caching method in wireless AP, website access method and wireless AP
CN106899456B (en) Method for realizing link detection and repair
JP2004350133A (en) Connection control method, connection control program, and connection device
JPH11340984A (en) Ip address retrieval system
CN106067887B (en) Website connecting device and method based on network switching and router
JP5842128B2 (en) Communication system, equipment communication server, client equipment
JP2003229881A (en) Terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100721