Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4568752B2 - Name resolution device, name resolution method, and socket management method - Google Patents
[go: Go Back, main page]

JP4568752B2 - Name resolution device, name resolution method, and socket management method - Google Patents

Name resolution device, name resolution method, and socket management method Download PDF

Info

Publication number
JP4568752B2
JP4568752B2 JP2007332104A JP2007332104A JP4568752B2 JP 4568752 B2 JP4568752 B2 JP 4568752B2 JP 2007332104 A JP2007332104 A JP 2007332104A JP 2007332104 A JP2007332104 A JP 2007332104A JP 4568752 B2 JP4568752 B2 JP 4568752B2
Authority
JP
Japan
Prior art keywords
name resolution
name
response
socket
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2007332104A
Other languages
Japanese (ja)
Other versions
JP2009159042A (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.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
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 Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2007332104A priority Critical patent/JP4568752B2/en
Publication of JP2009159042A publication Critical patent/JP2009159042A/en
Application granted granted Critical
Publication of JP4568752B2 publication Critical patent/JP4568752B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、名前解決装置、名前解決方法およびソケット管理方法に関する。   The present invention relates to a name resolution device, a name resolution method, and a socket management method.

DNS(Domain Name System)サーバなどと称される名前解決装置は、パーソナルコンピュータなどから送信される名前解決要求内のウェブサーバなどの名前からウェブサーバなどのアドレスを検索し、当該アドレスを含む名前解決応答をパーソナルコンピュータなどに送信することで、パーソナルコンピュータがウェブサーバなどにアクセスできるようにするものである。   A name resolution device called a DNS (Domain Name System) server searches for an address of a web server or the like from the name of a web server or the like in a name resolution request transmitted from a personal computer or the like, and performs name resolution including the address By sending a response to a personal computer or the like, the personal computer can access a web server or the like.

図4は、従来の名前解決装置の動作を示すシーケンス図である。   FIG. 4 is a sequence diagram showing the operation of the conventional name resolution apparatus.

名前解決装置1aは、ソケットSC1を生成する(ステップS101)。他のコンピュータ2は、名前解決要求を送信する(ステップD101)。名前解決装置1aは、当該名前解決要求内の名前に対応するアドレスを記憶している場合、当該アドレスを含む名前解決応答を生成し、当該名前解決応答をコンピュータ2に送信する。   The name resolution device 1a generates the socket SC1 (step S101). The other computer 2 transmits a name resolution request (step D101). If the name resolution device 1 a stores an address corresponding to the name in the name resolution request, the name resolution device 1 a generates a name resolution response including the address and transmits the name resolution response to the computer 2.

一方、記憶していない場合、名前解決装置1aは、ランダムに生成したトランザクションIDと当該名前とソケットSC1を示すポート番号とを含む名前解決要求を生成し、名前解決装置3に送信する(ステップS103)。   On the other hand, if not stored, the name resolution device 1a generates a name resolution request including the randomly generated transaction ID, the name, and the port number indicating the socket SC1, and transmits it to the name resolution device 3 (step S103). ).

名前解決装置1aは、当該名前解決要求に対して名前解決装置3から当該ポート番号宛に送信された名前解決応答をソケットSC1を使用して受信し(ステップS105)、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致した場合、当該名前解決応答内のアドレスを含む名前解決応答を生成し、当該名前解決応答をコンピュータ2に送信する(ステップS107)。これにより、コンピュータ2は、当該アドレスを指定することで、前記名前を有するコンピュータ(サーバなど)にアクセスできるようになる。また、名前解決装置1aは、次回のために、当該名前とアドレスを対応づけて記憶しておく。   In response to the name resolution request, the name resolution device 1a receives the name resolution response transmitted from the name resolution device 3 to the port number using the socket SC1 (step S105), and the transaction in the name resolution response. When the transaction IDs composed of the ID and the transaction ID in the name resolution request match, a name resolution response including the address in the name resolution response is generated, and the name resolution response is transmitted to the computer 2 (step S107). ). Thereby, the computer 2 can access a computer (such as a server) having the name by designating the address. Further, the name resolution device 1a stores the name and address in association with each other for the next time.

かかる名前解決装置1aは、悪意のコンピュータ4から攻撃を受けることがある。この攻撃は、コンピュータ2を偽のサーバなどにアクセスさせ、コンピュータ2のユーザが入力したクレジットカード番号などを盗むべくなされる。   The name resolution device 1a may be attacked by the malicious computer 4. This attack is made to allow the computer 2 to access a fake server and steal the credit card number entered by the user of the computer 2.

コンピュータ2は、例えば、再び名前解決要求を送信し(ステップD103)、悪意のコンピュータ4が、例えば、偽の名前解決応答を送信してくる(ステップE101)。 ここで、悪意のコンピュータ4は、無作為に決定したトランザクションIDと偽のサーバなどのアドレスとを含む偽の名前解決応答を、無作為に決定したポート番号宛で名前解決装置1aに対して大量に送信する(ステップE101)。   For example, the computer 2 transmits a name resolution request again (step D103), and the malicious computer 4 transmits, for example, a fake name resolution response (step E101). Here, the malicious computer 4 sends a large number of fake name resolution responses including a randomly determined transaction ID and a fake server address to the name resolution device 1a addressed to the randomly determined port number. (Step E101).

悪意のコンピュータ4は、ポート番号を無作為に決定するので、これが正しいポート番号となる可能性は低い。つまり、名前解決装置1aがソケットSC1を使用して偽の名前解決応答を受信してしまう可能性は低い。しかし、ソケットSC1は生成されたままであり、ポート番号が不変なので、受信されることは皆無ではない(ステップS115)。しかも、その前に、名前解決装置1aが、名前解決装置3に名前解決要求を送信しており(ステップS113)、正規の名前解決応答の送信が、偽の名前解決応答の受信(S115)よりも遅れ(ステップS117)、当該偽の名前解決応答内のトランザクションIDと、当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致してしまった場合、当該名前解決応答内の偽のアドレスを含む名前解決応答が生成され、当該名前解決応答がコンピュータ2に送信されてしまう(ステップS114)。また、名前解決装置1aは、当該偽のアドレスを記憶してしまう。   Since the malicious computer 4 randomly determines the port number, it is unlikely that this is the correct port number. That is, it is unlikely that the name resolution device 1a receives a fake name resolution response using the socket SC1. However, since the socket SC1 remains generated and the port number remains unchanged, it is not completely received (step S115). Moreover, before that, the name resolution device 1a has transmitted a name resolution request to the name resolution device 3 (step S113), and the transmission of the regular name resolution response is received from the reception of the fake name resolution response (S115). If the transaction IDs of the transaction IDs in the fake name resolution response and the transaction IDs in the name resolution request match with each other (step S117), the fake address in the name resolution response Is generated, and the name resolution response is transmitted to the computer 2 (step S114). Further, the name resolution device 1a stores the fake address.

図5は、従来の他の名前解決装置の動作を示すシーケンス図である。   FIG. 5 is a sequence diagram showing the operation of another conventional name resolution apparatus.

名前解決装置1bは、かかる不都合の解決を図ったものであり、コンピュータ2が名前解決要求を送信した場合(ステップD201)に、ソケットSC1を生成する(ステップS201)。   The name resolution device 1b is for solving such inconvenience. When the computer 2 transmits a name resolution request (step D201), the name resolution device 1b generates a socket SC1 (step S201).

名前解決装置1bは、当該名前解決要求内の名前に対応するアドレスを記憶していない場合、トランザクションIDと名前とソケットSC1のポート番号とを含む名前解決要求を生成し、名前解決装置3に送信する(ステップS203)。   When the name resolution device 1b does not store an address corresponding to the name in the name resolution request, the name resolution device 1b generates a name resolution request including the transaction ID, the name, and the port number of the socket SC1, and transmits it to the name resolution device 3. (Step S203).

名前解決装置1bは、名前解決応答をソケットSC1を使用して受信し(ステップS207)、ソケットSC1を破棄し(ステップS209)、名前解決応答をコンピュータ2に送信する(ステップS211)。   The name resolution device 1b receives the name resolution response using the socket SC1 (step S207), discards the socket SC1 (step S209), and transmits the name resolution response to the computer 2 (step S211).

名前解決装置1bは、次の名前解決要求が送信された場合(ステップD211)、今度は、ソケットSC1とは異なるソケットSC2を生成する(ステップS211)。   When the next name resolution request is transmitted (step D211), the name resolution device 1b generates a socket SC2 that is different from the socket SC1 (step S211).

名前解決装置1bは、アドレスを記憶していない場合、ソケットSC1のポート番号とは異なるソケットSC2のポート番号を含む名前解決要求を生成し、名前解決装置3に送信する(ステップS213)。   If the address is not stored, the name resolution device 1b generates a name resolution request including the port number of the socket SC2 different from the port number of the socket SC1, and transmits it to the name resolution device 3 (step S213).

悪意のコンピュータ4は、例えば、ソケットSC2が存在しているときに偽の名前解決応答を送信してくる(ステップE201)。この中には、ソケットSC1のポート番号宛の名前解決応答があるかもしれず、仮にソケットSC1が存在しているときに当該名前解決応答が送信されたならば当該名前解決応答は名前解決装置1bに受信されてしまうのだが、ソケットSC2はソケットSC1とは異なるので、実際には受信されない。   For example, the malicious computer 4 transmits a fake name resolution response when the socket SC2 exists (step E201). Among them, there may be a name resolution response addressed to the port number of the socket SC1, and if the name resolution response is transmitted when the socket SC1 exists, the name resolution response is sent to the name resolution device 1b. However, since the socket SC2 is different from the socket SC1, it is not actually received.

したがって、名前解決装置1bによれば、ソケットSC2のポート番号宛の名前解決応答が送信され、当該名前解決応答を受信してしまう前に、正規の名前解決応答を受信し(ステップS215)、ソケットSC2を破棄し(ステップS217)、正規の名前解決応答をコンピュータ2に送信し(ステップS219)、正規のアドレスを名前解決装置1b自身に記憶する可能性を高めることができる。   Therefore, according to the name resolution device 1b, before the name resolution response addressed to the port number of the socket SC2 is transmitted and the name resolution response is received, the regular name resolution response is received (step S215), and the socket is resolved. SC2 is discarded (step S217), a regular name resolution response is transmitted to the computer 2 (step S219), and the possibility that the regular address is stored in the name resolution device 1b itself can be increased.

なお、下記の非特許文献1には、ソケットを再利用していることの記述(P.5)とランダムにソケットを生成していることの記述(P.7)とがある。
Joe Stewart GCIH, "DNS Cache Poisoning - The Next Generation", [online], インターネット<URL:http://www.lurhq.com/dnscache.pdf>
The following Non-Patent Document 1 includes a description of reusing sockets (P.5) and a description of randomly generating sockets (P.7).
Joe Stewart GCIH, "DNS Cache Poisoning-The Next Generation", [online], Internet <URL: http: //www.lurhq.com/dnscache.pdf>

しかし、名前解決装置1bは、ソケットの生成および破棄を名前解決ごとに行うので、ソケットの生成および破棄に多大な処理能力が使用される。   However, since the name resolution device 1b performs socket generation and destruction for each name resolution, a great amount of processing capacity is used for socket generation and destruction.

一方、名前解決装置1aは、ソケットを生成したままとし、当該ソケットを破棄しないので、偽の名前解決応答がコンピュータに送信され、自身も偽のアドレスを記憶してしまう可能性が高い。   On the other hand, since the name resolution device 1a keeps generating the socket and does not discard the socket, there is a high possibility that a fake name resolution response is transmitted to the computer and the fake address is stored in itself.

本発明は、このような課題に鑑みてなされたものであり、その目的とするところは、ソケットの生成および破棄に使用される処理能力を低減でき且つ偽の名前解決応答を送信するとともに偽のアドレスを記憶してしまう可能性を低くできる名前解決装置、名前解決方法およびソケット管理方法を提供することにある。   The present invention has been made in view of such a problem, and an object of the present invention is to reduce the processing capacity used for creating and destroying a socket and to transmit a fake name resolution response and fake it. An object of the present invention is to provide a name resolution device, a name resolution method, and a socket management method that can reduce the possibility of storing an address.

上記課題を解決するために、請求項1の本発明は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、当該名前を有するコンピュータのアドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータに送信する名前解決応答送信部と、前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と、前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定し、一致すると判定した場合、当該名前解決応答内のアドレスを前記名前解決応答送信部に与える名前解決応答受信部とを備えることを特徴とする名前解決装置をもって解決手段とする。 In order to solve the above-mentioned problem, the present invention of claim 1 includes a name resolution information database in which a computer name and a computer address are stored in association with each other, and a computer that has transmitted a name resolution request including a name. A name resolution request receiving unit that receives the name resolution request and a name resolution response that includes the address of the computer having the name, and transmits the name resolution response to the computer that transmitted the name resolution request. An address search unit that attempts to search the name resolution information database for an address associated with a name in the name resolution request received by the name resolution request reception unit, and the address cannot be retrieved Generated for use in receiving name resolution responses sent from other name resolution devices A name resolution request including a port number indicating a socket existing when the address could not be retrieved, a randomly generated transaction ID, and the name, and the name resolution request is A name resolution request transmission unit to be transmitted to the name resolution device, and a name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request, using the socket, and the name It is determined whether or not the transaction IDs composed of the transaction ID in the resolution response and the transaction ID in the name resolution request match. When it is determined that they match, the address in the name resolution response is transmitted as the name resolution response. And a name resolution response receiving unit provided to the unit.

請求項2の本発明は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、当該名前を有するコンピュータのアドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータに送信する名前解決応答送信部と、前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と、前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定し、一致すると判定した場合、当該名前解決応答内のアドレスを前記名前解決応答送信部に与える名前解決応答受信部と、前記名前解決応答受信部によりトランザクションID同士が一致しないと判定された場合、当該一致しないと判定されたときに存在しているソケットを破棄し、当該ソケットとは異なるソケットを生成するソケット更新部とを備えることを特徴とする名前解決装置をもって解決手段とする。 The present invention of claim 2 is a name resolution information database in which a name of a computer and an address of the computer are stored in association with each other, and a name that receives the name resolution request from a computer that has transmitted the name resolution request including the name. A resolution request receiving unit; a name resolution response including an address of a computer having the name; and a name resolution response transmitting unit that transmits the name resolution response to the computer that transmitted the name resolution request; and the name resolution request reception An address search unit that tries to search the name resolution information database for an address associated with the name in the name resolution request received by the unit, and if the address cannot be searched, transmits from another name resolution device A socket that is created for use in receiving the name resolution response Is generated, a name resolution request including a port number indicating an existing socket, a randomly generated transaction ID, and the name is generated, and the name resolution request is transmitted to the other name resolution device. The name resolution request transmitter and the name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request are received using the socket, and the transaction ID in the name resolution response is received. And the transaction ID consisting of the transaction ID in the name resolution request is determined to match, and if it is determined to match, the name resolution response that gives the address in the name resolution response to the name resolution response transmission unit If it is determined by the receiving unit and the name resolution response receiving unit that the transaction IDs do not match, Discard the socket that is present when it is determined not to match, and solutions with a name resolution device, characterized in that it comprises a socket update unit to generate different socket with the socket.

請求項3の本発明は、前記名前解決要求受信部により受信された名前解決要求内の名前と前記名前解決応答送信部に与えられたアドレスを互いに対応づけて前記名前解決情報データベースに記憶させる名前解決情報データベース更新部を備えることを特徴とする請求項1または2記載の名前解決装置をもって解決手段とする。
請求項4の本発明は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と、前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定する名前解決応答受信部と、前記名前解決応答受信部によりトランザクションID同士が一致しないと判定された場合、当該一致しないと判定されたときに存在しているソケットを破棄し、当該ソケットとは異なるソケットを生成するソケット更新部とを備えることを特徴とする名前解決装置をもって解決手段とする。
請求項5の本発明は、名前解決装置が行う名前解決方法であって、前記名前解決装置は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースを備え、前記名前解決方法は、前記名前解決装置の名前解決要求受信部が、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信するステップと、前記名前解決装置のアドレス検索部が、当該名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるステップと、前記名前解決装置の名前解決要求送信部が、当該アドレスが検索できなかった場合において、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信するステップと、前記名前解決装置の名前解決応答受信部が、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信するステップと、前記名前解決応答受信部が、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定するステップと、前記名前解決応答受信部が、一致すると判定した場合において、当該名前解決応答内のアドレスを前記名前解決装置の名前解決応答送信部に与えるステップと、前記名前解決応答送信部が、当該アドレスを含む名前解決応答を生成し、当該名前解決応答を前記コンピュータに送信するステップとを含むことを特徴とする名前解決方法をもって解決手段とする。
請求項6の本発明は、前記名前解決装置の名前解決情報データベース更新部が、前記名前解決要求受信部により受信された名前解決要求内の名前と前記名前解決応答送信部に与えられたアドレスを互いに対応づけて前記名前解決情報データベースに記憶させるステップを含むことを特徴とする請求項5記載の名前解決方法をもって解決手段とする。
請求項7の本発明は、名前解決装置が行うソケット管理方法であって、前記名前解決装置は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースを備え、前記ソケット管理方法は、前記名前解決装置の名前解決要求受信部が、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信するステップと、前記名前解決装置のアドレス検索部が、当該名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるステップと、前記名前解決装置の名前解決要求送信部が、当該アドレスが検索できなかった場合において、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信するステップと、前記名前解決装置の名前解決応答受信部が、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信するステップと、前記名前解決応答受信部が、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定するステップと、前記名前解決装置のソケット更新部が、前記名前解決応答受信部によりトランザクションID同士が一致しないと判定されたときに存在しているソケットを破棄するステップと、前記ソケット更新部が、当該ソケットとは異なるソケットを生成するステップとを含むことを特徴とするソケット管理方法をもって解決手段とする。
According to a third aspect of the present invention , the name stored in the name resolution information database is associated with a name in the name resolution request received by the name resolution request receiving unit and an address given to the name resolution response transmitting unit. A resolution information database update unit is provided, and the name resolution device according to claim 1 or 2 is used as a resolution means.
The present invention of claim 4 includes a name resolution information database in which a computer name and an address of the computer are stored in association with each other, and a name that receives the name resolution request from the computer that has transmitted the name resolution request including the name. A resolution request receiving unit; an address searching unit that attempts to search the name resolution information database for an address associated with a name in the name resolution request received by the name resolution request receiving unit; and If not, a port number indicating a socket that is created to receive a name resolution response sent from another name resolution device and that exists when the address could not be retrieved and a random number Generate a name resolution request including the transaction ID generated in the above and the name, and resolve the name A name resolution request transmission unit that transmits a request to the other name resolution device, and a name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request using the socket. A name resolution response receiving unit that receives and determines whether or not a transaction ID consisting of the transaction ID in the name resolution response and the transaction ID in the name resolution request matches, and a transaction by the name resolution response receiving unit When it is determined that the IDs do not match, the name includes a socket update unit that discards a socket that exists when it is determined that the IDs do not match and generates a socket different from the socket The solution device is used as a solution means.
The present invention of claim 5 is a name resolution method performed by a name resolution device, wherein the name resolution device includes a name resolution information database in which a computer name and a computer address are stored in association with each other, In the name resolution method, the name resolution request receiving unit of the name resolution device receives the name resolution request from the computer that has transmitted the name resolution request including the name, and the address search unit of the name resolution device includes the name resolution request A step of trying to retrieve an address associated with a name in the name resolution request from the name resolution information database, and when the name resolution request transmission unit of the name resolution device cannot retrieve the address, A socket created for use in receiving name resolution responses sent from other name resolution devices. When a request cannot be retrieved, a name resolution request including a port number indicating an existing socket, a randomly generated transaction ID, and the name is generated, and the name resolution request is transmitted to the other name resolution device. And a name resolution response receiving unit of the name resolution device receives a name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request using the socket. A step in which the name resolution response receiving unit determines whether transaction IDs of the transaction ID in the name resolution response and the transaction ID in the name resolution request match, and the name resolution response When the receiving unit determines that they match, the address in the name resolution response is changed to the name of the name resolution device. A name resolution method comprising: a step of giving to a resolution response transmission unit; and a step of the name resolution response transmission unit generating a name resolution response including the address and transmitting the name resolution response to the computer Is the solution.
According to a sixth aspect of the present invention, the name resolution information database update unit of the name resolution device uses the name in the name resolution request received by the name resolution request reception unit and the address given to the name resolution response transmission unit. 6. The name resolution method according to claim 5, further comprising the step of storing the name resolution information database in association with each other.
The present invention of claim 7 is a socket management method performed by a name resolution device, wherein the name resolution device includes a name resolution information database in which a computer name and a computer address are stored in association with each other, In the socket management method, the name resolution request receiving unit of the name resolution device receives the name resolution request from the computer that has transmitted the name resolution request including the name, and the address search unit of the name resolution device includes the name resolution request A step of trying to retrieve an address associated with a name in the name resolution request from the name resolution information database, and when the name resolution request transmission unit of the name resolution device cannot retrieve the address, A socket that is generated for use in receiving name resolution responses sent from other name resolution devices. A name resolution request including a port number indicating a socket existing when the address cannot be searched, a randomly generated transaction ID, and the name is generated, and the name resolution request is transmitted to the other name resolution device. And a name resolution response receiving unit of the name resolution device receives the name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request using the socket. And a step of determining whether or not a transaction ID consisting of a transaction ID in the name resolution response and a transaction ID in the name resolution request match each other, and The socket update unit of the device does not match the transaction IDs by the name resolution response receiver Discarding step a socket that is present when it is determined, the socket updating unit, and solutions with a socket management method which comprises the steps of generating a different socket from the socket.

請求項の本発明は、請求項1ないし4のいずれかに記載の名前解決装置をコンピュータにより構成するためのコンピュータプログラムをもって解決手段とする。 The eighth aspect of the present invention uses the computer program for configuring the name resolution apparatus according to any one of the first to fourth aspects by a computer as a solution means.

請求項の本発明は、請求項記載のコンピュータプログラムが格納されたコンピュータ読み取り可能な記録媒体をもって解決手段とする。 The ninth aspect of the present invention uses a computer-readable recording medium in which the computer program according to the eighth aspect is stored as a solving means.

本発明によれば、ソケットの生成および破棄に使用される処理能力を低減でき且つ偽の名前解決応答を送信するとともに偽のアドレスを記憶してしまう可能性を低くすることができる。   According to the present invention, it is possible to reduce the processing capacity used for creating and destroying sockets, and to reduce the possibility of sending a fake name resolution response and storing a fake address.

以下、本発明の実施の形態に係る名前解決装置、名前解決方法およびソケット管理方法を図面を参照して説明する。   Hereinafter, a name resolution device, a name resolution method, and a socket management method according to embodiments of the present invention will be described with reference to the drawings.

図1は、本実施の形態に係る名前解決装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing the configuration of the name resolution apparatus according to the present embodiment.

名前解決装置1は、ウェブサーバなどの他のコンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベース11と、名前を含む名前解決要求を送信したパーソナルコンピュータなどのコンピュータから当該名前解決要求を受信する名前解決要求受信部12と、当該名前を有するコンピュータのアドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータに送信する名前解決応答送信部13と、名前解決要求受信部12により受信された名前解決要求内の名前に対応づけられたアドレスを名前解決情報データベース11から検索することを試み、当該アドレスが検索できた場合、当該アドレスを名前解決応答送信部13に与えるアドレス検索部14と、図示しない名前解決装置から送信される名前解決応答の受信に使用されるソケットを最初に生成するソケット生成部15と、ランダムに生成したトランザクションIDとアドレスが検索できなかったときに先だって名前解決要求受信部12により受信された名前解決要求内の名前と当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とを含む名前解決要求を生成し、当該名前解決要求を図示しない名前解決装置に送信する名前解決要求送信部16と、当該名前解決要求に対して図示しない名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定し、一致すると判定した場合、当該名前解決応答内のアドレスを名前解決応答送信部13に与える名前解決応答受信部17と、名前解決応答受信部17により名前解決応答送信部13にアドレスが与えられたときに先だって名前解決要求受信部12により受信された名前解決要求内の名前と当該アドレスを互いに対応づけて名前解決情報データベース11に記憶させる名前解決情報データベース更新部18と、名前解決応答受信部17によりトランザクションID同士が一致しないと判定された場合、当該一致しないと判定されたときに存在しているソケットを破棄し、当該ソケットとは異なるソケットを生成するソケット更新部19と、トランザクションIDが記憶されるトランザクションID記憶部110とを備える。   The name resolution device 1 includes a name resolution information database 11 in which the name of another computer such as a web server and the address of the computer are stored in association with each other, and a computer such as a personal computer that has transmitted a name resolution request including the name Name resolution request receiving unit 12 that receives the name resolution request from the server, and generates a name resolution response including the address of the computer having the name, and transmits the name resolution response to the computer that transmitted the name resolution request When it is attempted to search the name resolution information database 11 for an address associated with the name in the name resolution request received by the response transmission unit 13 and the name resolution request reception unit 12, and the address can be retrieved, An address search unit 14 for giving an address to the name resolution response transmission unit 13; A socket generation unit 15 that first generates a socket used to receive a name resolution response transmitted from a name resolution device (not shown), and receives a name resolution request in advance when a randomly generated transaction ID and address cannot be retrieved. A name resolution request including a name in the name resolution request received by the unit 12 and a port number indicating a socket existing when the address cannot be retrieved is generated, and the name resolution request is not illustrated. The name resolution request transmitting unit 16 to be transmitted to the device, and the name resolution response transmitted to the port number from the name resolution device (not shown) in response to the name resolution request is received using the socket, and the name resolution response Transaction ID consisting of the transaction ID in the name and the transaction ID in the name resolution request The name resolution response receiver 17 gives the name resolution response transmitter 13 the address in the name resolution response and the name resolution response receiver 17 resolves the name. Name resolution information database update in which the name in the name resolution request received by the name resolution request receiving unit 12 and the address are associated with each other and stored in the name resolution information database 11 when an address is given to the response transmission unit 13 When it is determined by the unit 18 and the name resolution response receiving unit 17 that the transaction IDs do not match, the socket existing when it is determined that they do not match is discarded, and a socket different from the socket is generated. Socket update unit 19 and transaction ID storage unit 110 in which a transaction ID is stored Prepare.

(本実施の形態に係る名前解決装置1の動作)
図2は、名前解決装置1の動作を示すフローチャートである。図3は、名前解決装置1の動作を示すシーケンス図である。
(Operation of the name resolution device 1 according to the present embodiment)
FIG. 2 is a flowchart showing the operation of the name resolution device 1. FIG. 3 is a sequence diagram showing the operation of the name resolution device 1.

まず、名前解決装置1のソケット生成部15は、ソケットSC1を生成する(ステップS1)。   First, the socket generator 15 of the name resolution device 1 generates a socket SC1 (step S1).

次に、名前解決要求受信部12が、他のコンピュータ2から送信される名前解決要求を待機する。名前解決要求が送信され(ステップD1)、名前解決要求受信部12が名前解決要求を受信した(ステップS5:YES)なら、アドレス検索部14は、名前解決要求内の名前に対応づけられたアドレスを名前解決情報データベース11から検索することを試みる(ステップS7)。アドレス検索部14は、当該アドレスが検索できた場合(ステップS9:YES)、当該アドレスを名前解決応答送信部13に与え、名前解決応答送信部13は、当該アドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータ2に送信し(ステップS11)、制御はステップS5に戻る。   Next, the name resolution request receiving unit 12 waits for a name resolution request transmitted from another computer 2. If the name resolution request is transmitted (step D1) and the name resolution request receiving unit 12 receives the name resolution request (step S5: YES), the address search unit 14 addresses corresponding to the name in the name resolution request. Is searched from the name resolution information database 11 (step S7). If the address can be searched (step S9: YES), the address search unit 14 gives the address to the name resolution response transmission unit 13, and the name resolution response transmission unit 13 generates a name resolution response including the address. The name resolution response is transmitted to the computer 2 that transmitted the name resolution request (step S11), and the control returns to step S5.

アドレスが検索できなかった場合、名前解決要求送信部16が、トランザクションIDをランダムに生成し、当該トランザクションIDをトランザクションID記憶部110に記憶させ、当該トランザクションIDとアドレスが検索できなかったときに先だって名前解決要求受信部12により受信された名前解決要求内の名前と当該アドレスが検索できなかったときに存在している(ここではソケットSC1)を示すポート番号とを含む名前解決要求を生成し、当該名前解決要求を他の名前解決装置3に送信する(ステップS21)。   If the address cannot be retrieved, the name resolution request transmission unit 16 randomly generates a transaction ID, stores the transaction ID in the transaction ID storage unit 110, and when the transaction ID and the address cannot be retrieved. Generating a name resolution request including a name in the name resolution request received by the name resolution request receiving unit 12 and a port number indicating that the address exists when the address cannot be retrieved (here, socket SC1); The name resolution request is transmitted to another name resolution device 3 (step S21).

トランザクションIDは、例えば、16ビットの情報であり、16ビットで表現できる約65000の値の中の1つがランダムに生成される。   The transaction ID is, for example, 16-bit information, and one of about 65000 values that can be expressed by 16 bits is randomly generated.

名前解決装置3は、例えば、DNS権威サーバなどと称されるものである。名前解決装置3は、名前解決装置1などから送信される名前解決要求内の名前から当該名前を有するコンピュータのアドレスを検索し、当該アドレスを含む名前解決応答を名前解決装置1などに送信するものである。   The name resolution device 3 is called, for example, a DNS authority server. The name resolution device 3 retrieves the address of the computer having the name from the name in the name resolution request transmitted from the name resolution device 1 and transmits the name resolution response including the address to the name resolution device 1 and the like It is.

次に、名前解決応答受信部17が、当該名前解決要求に対して名前解決装置3から当該ポート番号宛に送信された名前解決応答をソケットSC1を使用して受信する(ステップS23)。   Next, the name resolution response receiver 17 receives the name resolution response transmitted from the name resolution device 3 to the port number in response to the name resolution request using the socket SC1 (step S23).

次に、名前解決応答受信部17は、トランザクションID記憶部110からトランザクションIDすなわち名前解決装置3に送信された名前解決要求内のトランザクションIDと同じものを読み出し、当該名前解決応答内のトランザクションIDとトランザクションID記憶部110から読み出したトランザクションIDとからなるトランザクションID同士が一致するか否かを判定する(ステップS25)。一致すると判定した場合(ステップS25:YES)、名前解決応答受信部17は、当該名前解決応答内のアドレスを名前解決応答送信部13に与え、名前解決応答送信部13は、当該アドレスを含む名前解決応答を生成し、当該名前解決応答を当該アドレスが与えられたときに先だって名前解決要求受信部12により受信された名前解決要求を送信したコンピュータ2に送信する(ステップS27)。   Next, the name resolution response receiving unit 17 reads out the transaction ID, that is, the same transaction ID in the name resolution request transmitted to the name resolution device 3 from the transaction ID storage unit 110, and the transaction ID in the name resolution response. It is determined whether or not the transaction IDs composed of the transaction IDs read from the transaction ID storage unit 110 match (step S25). When it is determined that they match (step S25: YES), the name resolution response receiver 17 gives the address in the name resolution response to the name resolution response transmitter 13, and the name resolution response transmitter 13 includes the name including the address. A resolution response is generated, and the name resolution response is transmitted to the computer 2 that has transmitted the name resolution request received by the name resolution request receiving unit 12 prior to the given address (step S27).

次に、名前解決応答受信部17は、当該名前解決応答内のアドレスを名前解決情報データベース更新部18に与え、名前解決情報データベース更新部18は、当該アドレスが与えられたときに先だって名前解決要求受信部12により受信された名前解決要求内の名前と当該アドレスを互いに対応づけて名前解決情報データベース11に記憶させ(ステップS29)、制御はステップS5に戻る。   Next, the name resolution response receiving unit 17 gives the address in the name resolution response to the name resolution information database update unit 18, and the name resolution information database update unit 18 prior to the name resolution request when the address is given. The name and the address in the name resolution request received by the receiving unit 12 are associated with each other and stored in the name resolution information database 11 (step S29), and the control returns to step S5.

トランザクションID同士が一致しないと判定された場合(ステップS25:NO)、ソケット更新部19が、一致しないと判定されたときに存在しているソケットを破棄し(ステップS31)、当該ソケットとは異なるソケットを生成し(ステップS1)、制御はステップS5に移る。   When it is determined that the transaction IDs do not match (step S25: NO), the socket update unit 19 discards the socket that exists when it is determined that they do not match (step S31), and is different from the socket. A socket is generated (step S1), and the control moves to step S5.

上記の動作は、コンピュータ2以外のコンピュータから名前解決要求が送信された場合においても同様になされる。また、上記の動作は、名前解決要求が送信されるタイミングによらず、同様になされる。   The above operation is similarly performed even when a name resolution request is transmitted from a computer other than the computer 2. The above operation is performed in the same manner regardless of the timing at which the name resolution request is transmitted.

例えば、コンピュータ2から名前解決要求が送信され(ステップD3)、悪意のコンピュータ4が、偽の名前解決応答を送信してくる(ステップE51)。この中に、ソケットSC1のポート番号宛の名前解決応答があった場合、当該名前解決応答は名前解決装置1に受信される(ステップE511)。   For example, a name resolution request is transmitted from the computer 2 (step D3), and the malicious computer 4 transmits a fake name resolution response (step E51). If there is a name resolution response addressed to the port number of the socket SC1, the name resolution response is received by the name resolution device 1 (step E511).

しかし、トランザクションID同士が一致することは稀であり、多くの場合、一致しないと判定され、そのときに存在しているソケットが破棄される(ステップS31)、新たなソケットSC2が生成される(ステップS1)。   However, it is rare that the transaction IDs match, and in many cases, it is determined that they do not match, and the socket existing at that time is discarded (step S31), and a new socket SC2 is created ( Step S1).

コンピュータ2は、例えば、ソケットSC2が存在しているときに名前解決要求を送信し(ステップD5)、悪意のコンピュータ4が、例えば、ソケットSC2が存在しているときに偽の名前解決応答を送信してくる(ステップE53)。この中には、ソケットSC1のポート番号宛の名前解決応答があるかもしれず、仮にソケットSC1が存在しているときに当該名前解決応答が送信されたならば当該名前解決応答は名前解決装置1に受信されてしまうのだが、ソケットSC2はソケットSC1とは異なるので、実際には受信されない。
したがって、悪意のコンピュータ4からソケットSC2のポート番号宛の名前解決応答が送信され、当該名前解決応答を受信してしまう前に、正規の名前解決応答を受信でき(ステップS23)、正規の名前解決応答をコンピュータ2に送信でき(ステップS27)、正規のアドレスを名前解決装置1に記憶できる可能性を高めることができる。
For example, the computer 2 sends a name resolution request when the socket SC2 exists (step D5), and the malicious computer 4 sends a fake name resolution response when the socket SC2 exists, for example. (Step E53). Among them, there may be a name resolution response addressed to the port number of the socket SC1, and if the name resolution response is transmitted when the socket SC1 exists, the name resolution response is sent to the name resolution device 1. However, since the socket SC2 is different from the socket SC1, it is not actually received.
Therefore, before the name resolution response addressed to the port number of the socket SC2 is transmitted from the malicious computer 4 and the name resolution response is received, the regular name resolution response can be received (step S23). The response can be transmitted to the computer 2 (step S27), and the possibility that the regular address can be stored in the name resolution device 1 can be increased.

つまり、名前解決装置1は、ソケットの生成および破棄を、トランザクションID同士が一致しないと判定された場合に行うので、悪意のコンピュータ4が偽の名前解決応答を送信し始めた後においては、トランザクションID同士が一致しない場合が通常より多くなるので、単位時間あたりのソケットの生成および破棄の回数が多くなり、偽の名前解決応答は受信されにくくなる。よって、悪意のコンピュータ4が偽の名前解決応答を送信し始めた後においては、偽の名前解決応答を送信するとともに偽のアドレスを記憶してしまう可能性を低くできる。   That is, the name resolution device 1 generates and destroys sockets when it is determined that the transaction IDs do not match. Therefore, after the malicious computer 4 starts sending a fake name resolution response, the transaction is performed. Since there are more cases where the IDs do not match each other, the number of sockets generated and discarded per unit time increases, making it difficult to receive a fake name resolution response. Therefore, after the malicious computer 4 starts to send a fake name resolution response, the possibility of sending a fake name resolution response and storing a fake address can be reduced.

一方、悪意のコンピュータ4が偽の名前解決応答を送信し始める前においてはソケットは生成されたままなので、ソケットの生成および破棄を名前解決ごとに行う場合に比べ、ソケットの生成および破棄に使用される処理能力を低減することができる。   On the other hand, since the socket is still generated before the malicious computer 4 starts to send a fake name resolution response, it is used for socket generation and destruction as compared with the case where socket generation and destruction are performed for each name resolution. Processing capacity can be reduced.

すなわち、名前解決装置1によれば、ソケットの生成および破棄に使用される処理能力を低減でき且つ偽の名前解決応答を送信するとともに偽のアドレスを記憶してしまう可能性を低くすることができる
なお、本実施の形態に係る名前解決装置をコンピュータに構成するためのコンピュータプログラム、または、当該名前解決装置が行った上記の名前解決方法またはソケット管理方法を当該名前解決装置に実行させるためのコンピュータプログラムは、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に格納し、陳列などして流通させたり、当該コンピュータプログラムをインターネットなどの通信網を介して伝送させてもよい。
That is, according to the name resolution device 1, it is possible to reduce the processing capacity used for socket generation and destruction, and to reduce the possibility of sending a fake name resolution response and storing a fake address. A computer program for configuring the name resolution device according to the present embodiment in a computer, or a computer for causing the name resolution device to execute the name resolution method or the socket management method performed by the name resolution device. The program is stored in a computer-readable recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, or a magnetic tape, and distributed as a display, or the computer program is transmitted via a communication network such as the Internet. You may let them.

本実施の形態に係る名前解決装置の構成を示すブロック図である。It is a block diagram which shows the structure of the name resolution apparatus which concerns on this Embodiment. 名前解決装置1の動作を示すフローチャートである。3 is a flowchart showing the operation of the name resolution device 1. 名前解決装置1の動作を示すシーケンス図である。FIG. 4 is a sequence diagram showing an operation of the name resolution device 1. 従来の名前解決装置の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the conventional name resolution apparatus. 従来の他の名前解決装置の動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the other conventional name resolution apparatus.

符号の説明Explanation of symbols

1、3…名前解決装置
2…コンピュータ
4…悪意のコンピュータ
11…名前解決情報データベース
12…名前解決要求受信部
13…名前解決応答送信部
14…アドレス検索部
15…ソケット生成部
16…名前解決要求送信部
17…名前解決応答受信部
18…名前解決情報データベース更新部
19…ソケット更新部
110…トランザクションID記憶部
DESCRIPTION OF SYMBOLS 1, 3 ... Name resolution apparatus 2 ... Computer 4 ... Malicious computer 11 ... Name resolution information database 12 ... Name resolution request receiving part 13 ... Name resolution response transmission part 14 ... Address search part 15 ... Socket generation part 16 ... Name resolution request Transmission unit 17 ... Name resolution response reception unit 18 ... Name resolution information database update unit 19 ... Socket update unit 110 ... Transaction ID storage unit

Claims (9)

コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、A name resolution information database in which computer names and computer addresses are stored in association with each other;
名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、A name resolution request receiving unit that receives the name resolution request from the computer that has transmitted the name resolution request including the name;
当該名前を有するコンピュータのアドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータに送信する名前解決応答送信部と、A name resolution response transmission unit that generates a name resolution response including the address of the computer having the name, and transmits the name resolution response to the computer that transmitted the name resolution request;
前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と、An address search unit that attempts to search the name resolution information database for an address associated with a name in the name resolution request received by the name resolution request reception unit;
前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、If the address cannot be retrieved, a socket that is generated for use in receiving a name resolution response transmitted from another name resolution device and exists when the address cannot be retrieved. A name resolution request transmission unit that generates a name resolution request including a port number to be indicated, a randomly generated transaction ID, and the name, and transmits the name resolution request to the other name resolution device;
当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定し、一致すると判定した場合、当該名前解決応答内のアドレスを前記名前解決応答送信部に与える名前解決応答受信部とIn response to the name resolution request, the name resolution response transmitted from the other name resolution device to the port number is received using the socket, and the transaction ID in the name resolution response and the name resolution request It is determined whether or not transaction IDs composed of transaction IDs match, and when it is determined that they match, a name resolution response receiver that gives an address in the name resolution response to the name resolution response transmitter
を備えることを特徴とする名前解決装置。A name resolution device comprising:
コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、
名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、
当該名前を有するコンピュータのアドレスを含む名前解決応答を生成し、当該名前解決応答を当該名前解決要求を送信したコンピュータに送信する名前解決応答送信部と、
前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と
前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、
当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定し、一致すると判定した場合、当該名前解決応答内のアドレスを前記名前解決応答送信部に与える名前解決応答受信部と
記名前解決応答受信部によりトランザクションID同士が一致しないと判定された場合、当該一致しないと判定されたときに存在しているソケットを破棄し、当該ソケットとは異なるソケットを生成するソケット更新部と
を備えることを特徴とする名前解決装置。
A name resolution information database in which computer names and computer addresses are stored in association with each other;
A name resolution request receiving unit that receives the name resolution request from the computer that has transmitted the name resolution request including the name;
A name resolution response transmission unit that generates a name resolution response including the address of the computer having the name, and transmits the name resolution response to the computer that transmitted the name resolution request;
An address searching unit See attempt to search an address associated with the name in the received name resolution request by the name resolution request receiving unit from the name resolution information database,
If the address cannot be retrieved, a socket that is generated for use in receiving a name resolution response transmitted from another name resolution device and exists when the address cannot be retrieved. A name resolution request transmission unit that generates a name resolution request including a port number to be indicated, a randomly generated transaction ID, and the name, and transmits the name resolution request to the other name resolution device;
In response to the name resolution request, the name resolution response transmitted from the other name resolution device to the port number is received using the socket, and the transaction ID in the name resolution response and the name resolution request It is determined whether or not transaction IDs composed of transaction IDs match, and if it is determined that they match, a name resolution response receiving unit that gives an address in the name resolution response to the name resolution response transmitting unit ;
If it is determined that the transaction ID together with pre Symbol name resolution response receiving unit does not match, discard the socket that is present when it is determined not to the match, the socket updating unit for generating a different socket from the socket A name resolution apparatus comprising: and.
前記名前解決要求受信部により受信された名前解決要求内の名前と前記名前解決応答送信部に与えられたアドレスを互いに対応づけて前記名前解決情報データベースに記憶させる名前解決情報データベース更新部Name resolution information database updating unit for storing the name in the name resolution request received by the name resolution request receiving unit and the address given to the name resolution response transmitting unit in the name resolution information database in association with each other
を備えることを特徴とする請求項1または2記載の名前解決装置。The name resolution apparatus according to claim 1, further comprising:
コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースと、A name resolution information database in which computer names and computer addresses are stored in association with each other;
名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信する名前解決要求受信部と、A name resolution request receiving unit that receives the name resolution request from the computer that has transmitted the name resolution request including the name;
前記名前解決要求受信部により受信された名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるアドレス検索部と、An address search unit that attempts to search the name resolution information database for an address associated with a name in the name resolution request received by the name resolution request reception unit;
前記アドレスが検索できなかった場合、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信する名前解決要求送信部と、If the address cannot be retrieved, a socket that is generated for use in receiving a name resolution response transmitted from another name resolution device and exists when the address cannot be retrieved. A name resolution request transmission unit that generates a name resolution request including a port number to be indicated, a randomly generated transaction ID, and the name, and transmits the name resolution request to the other name resolution device;
当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信し、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定する名前解決応答受信部と、In response to the name resolution request, the name resolution response transmitted from the other name resolution device to the port number is received using the socket, and the transaction ID in the name resolution response and the name resolution request A name resolution response receiving unit that determines whether or not transaction IDs including transaction IDs match;
前記名前解決応答受信部によりトランザクションID同士が一致しないと判定された場合、当該一致しないと判定されたときに存在しているソケットを破棄し、当該ソケットとは異なるソケットを生成するソケット更新部とA socket updating unit that discards a socket that exists when it is determined that the transaction IDs do not match by the name resolution response receiving unit, and generates a socket different from the socket;
を備えることを特徴とする名前解決装置。A name resolution device comprising:
前解決装置が行う名前解決方法であって、
前記名前解決装置は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースを備え、
前記名前解決方法は、
前記名前解決装置の名前解決要求受信部が、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信するステップと、
前記名前解決装置のアドレス検索部が、当該名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるステップと、
前記名前解決装置の名前解決要求送信部が、当該アドレスが検索できなかった場合において、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信するステップと、
前記名前解決装置の名前解決応答受信部が、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信するステップと、
前記名前解決応答受信部が、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定するステップと、
前記名前解決応答受信部が、一致すると判定した場合において、当該名前解決応答内のアドレスを前記名前解決装置の名前解決応答送信部に与えるステップと
前記名前解決応答送信部が、当該アドレスを含む名前解決応答を生成し、当該名前解決応答を前記コンピュータに送信するステップ
含むことを特徴とする名前解決方法。
A name resolution method of name resolution device performs,
The name resolution device includes a name resolution information database in which computer names and computer addresses are stored in association with each other.
The name resolution method is:
A name resolution request receiving unit of the name resolution device receives the name resolution request from a computer that has transmitted a name resolution request including a name ;
An address search unit of the name resolution device tries to search an address associated with a name in the name resolution request from the name resolution information database;
The name resolution request transmission unit of the name resolution device is a socket generated for use in receiving a name resolution response transmitted from another name resolution device when the address cannot be retrieved, and the address Is generated, a name resolution request including a port number indicating an existing socket, a randomly generated transaction ID, and the name is generated, and the name resolution request is transmitted to the other name resolution device . Steps,
A name resolution response reception unit of the name resolution device receives a name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request using the socket;
The step of determining whether or not the name resolution response receiving unit matches a transaction ID composed of a transaction ID in the name resolution response and a transaction ID in the name resolution request;
The name resolution response receiving unit, when it is determined matching the the steps of Ru gives the address of the name resolution in response to the name resolution response transmission portion of the name resolution device,
The name resolution response transmission unit generates a name resolution response including the address, and transmits the name resolution response to the computer ;
A name resolution method characterized by including:
前記名前解決装置の名前解決情報データベース更新部が、前記名前解決要求受信部により受信された名前解決要求内の名前と前記名前解決応答送信部に与えられたアドレスを互いに対応づけて前記名前解決情報データベースに記憶させるステップ
を含むことを特徴とする請求項5記載の名前解決方法。
The name resolution information database updating unit of the name resolution device associates the name in the name resolution request received by the name resolution request reception unit with the address given to the name resolution response transmission unit, and the name resolution information Step to store in database
The name resolution method according to claim 5, further comprising:
前解決装置が行うソケット管理方法であって、
前記名前解決装置は、コンピュータの名前と当該コンピュータのアドレスが互いに対応づけられて記憶される名前解決情報データベースを備え、
前記ソケット管理方法は、
前記名前解決装置の名前解決要求受信部が、名前を含む名前解決要求を送信したコンピュータから当該名前解決要求を受信するステップと、
前記名前解決装置のアドレス検索部が、当該名前解決要求内の名前に対応づけられたアドレスを前記名前解決情報データベースから検索することを試みるステップと、
前記名前解決装置の名前解決要求送信部が、当該アドレスが検索できなかった場合において、他の名前解決装置から送信される名前解決応答の受信に使用するために生成されるソケットであって当該アドレスが検索できなかったときに存在しているソケットを示すポート番号とランダムに生成したトランザクションIDと前記名前とを含む名前解決要求を生成し、当該名前解決要求を前記他の名前解決装置に送信するステップと、
前記名前解決装置の名前解決応答受信部が、当該名前解決要求に対して前記他の名前解決装置から当該ポート番号宛に送信された名前解決応答を当該ソケットを使用して受信するステップと、
前記名前解決応答受信部が、当該名前解決応答内のトランザクションIDと当該名前解決要求内のトランザクションIDとからなるトランザクションID同士が一致するか否かを判定するステップと、
前記名前解決装置のソケット更新部が、前記名前解決応答受信部によりトランザクションID同士が一致しないと判定されたときに存在しているソケットを破棄するステップと、
前記ソケット更新部が、当該ソケットとは異なるソケットを生成するステップと
を含むことを特徴とするソケット管理方法。
A socket management method name resolution device performs,
The name resolution device includes a name resolution information database in which computer names and computer addresses are stored in association with each other.
The socket management method includes:
A name resolution request receiving unit of the name resolution device receives the name resolution request from a computer that has transmitted a name resolution request including a name ;
An address search unit of the name resolution device tries to search an address associated with a name in the name resolution request from the name resolution information database;
The name resolution request transmission unit of the name resolution device is a socket generated for use in receiving a name resolution response transmitted from another name resolution device when the address cannot be retrieved, and the address Is generated, a name resolution request including a port number indicating an existing socket, a randomly generated transaction ID, and the name is generated, and the name resolution request is transmitted to the other name resolution device . Steps,
A name resolution response reception unit of the name resolution device receives a name resolution response transmitted from the other name resolution device to the port number in response to the name resolution request using the socket;
The step of determining whether or not the name resolution response receiving unit matches a transaction ID composed of a transaction ID in the name resolution response and a transaction ID in the name resolution request;
A step of discarding a socket existing when the socket update unit of the name resolution apparatus determines that the transaction IDs do not match by the name resolution response reception unit;
The socket updating unit includes a step of generating a socket different from the socket.
請求項1ないし4のいずれかに記載の名前解決装置をコンピュータにより構成するためのコンピュータプログラム。 It claims 1 to computer program for configuring a computer name resolution device according to any one of the 4. 請求項記載のコンピュータプログラムが格納されたコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium in which the computer program according to claim 8 is stored.
JP2007332104A 2007-12-25 2007-12-25 Name resolution device, name resolution method, and socket management method Active JP4568752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007332104A JP4568752B2 (en) 2007-12-25 2007-12-25 Name resolution device, name resolution method, and socket management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007332104A JP4568752B2 (en) 2007-12-25 2007-12-25 Name resolution device, name resolution method, and socket management method

Publications (2)

Publication Number Publication Date
JP2009159042A JP2009159042A (en) 2009-07-16
JP4568752B2 true JP4568752B2 (en) 2010-10-27

Family

ID=40962621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007332104A Active JP4568752B2 (en) 2007-12-25 2007-12-25 Name resolution device, name resolution method, and socket management method

Country Status (1)

Country Link
JP (1) JP4568752B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4223045B2 (en) * 2006-03-13 2009-02-12 日本電信電話株式会社 DNS server device, request message processing method, and request message processing program

Also Published As

Publication number Publication date
JP2009159042A (en) 2009-07-16

Similar Documents

Publication Publication Date Title
CN102769529B (en) Dnssec signing server
JP3973548B2 (en) Network system, network connection establishment method, network terminal, computer program, and recording medium storing program
US6434600B2 (en) Methods and systems for securely delivering electronic mail to hosts having dynamic IP addresses
KR101130448B1 (en) Method for updating a table of correspondence between a logical address and an indentification number
CN110430188B (en) Rapid URL filtering method and device
KR20130031660A (en) Network apparatus based contents name and method for generate and authenticate contents name
KR102063681B1 (en) Communicaton method of administration node, requesting node and normal node deleting unvalid contents using contents revocation list in a contents centric network
JP2011004432A (en) Information processing device and receiver
RU2642833C2 (en) Method and device for mediere resource support
CN101262353A (en) Communication method, device and system for filtering network address
JP4207065B2 (en) Asset management system, asset management method, information processing apparatus, and program
US20070118884A1 (en) Name resolution system using name registration intermediary and name resolution intermediary
JP2003304268A (en) Server, user-limited type home server access system including the server, and access control method
JP2011049745A (en) Device for defending dns cache poisoning attack
JP4568752B2 (en) Name resolution device, name resolution method, and socket management method
JP4568751B2 (en) Name resolution device, name resolution method, and socket management method
US20160050292A1 (en) Local web resource access
CN107070757B (en) Method and device for establishing network connection
JP5345577B2 (en) Name resolution device, name resolution method, and name resolution program
JP5706956B1 (en) Database system and database control method
JP2002183002A (en) Server device for notifying a domain name of a correction candidate, a client computer using the domain name of the correction candidate notified by the server device, a recording medium on which a program running on this client computer is recorded, and a mail for the correction candidate Mail server that notifies the address
KR20170096081A (en) Device group control system and method for controlling the same
JP5180146B2 (en) DNS message forwarding apparatus, DNS message forwarding system, DNS message forwarding method, and DNS message forwarding program
KR101448953B1 (en) Security system and operating method thereof
JP4702332B2 (en) Information processing apparatus and receiving apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100702

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100727

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100809

R150 Certificate of patent or registration of utility model

Ref document number: 4568752

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130813

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350