JP2010074596A - Active dns device and name solution processing method thereof and program - Google Patents

Active dns device and name solution processing method thereof and program Download PDF

Info

Publication number
JP2010074596A
JP2010074596A JP2008240683A JP2008240683A JP2010074596A JP 2010074596 A JP2010074596 A JP 2010074596A JP 2008240683 A JP2008240683 A JP 2008240683A JP 2008240683 A JP2008240683 A JP 2008240683A JP 2010074596 A JP2010074596 A JP 2010074596A
Authority
JP
Japan
Prior art keywords
dns
address
computer
computer device
host name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008240683A
Other languages
Japanese (ja)
Inventor
Hidetake Okuno
英剛 奥野
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.)
Hitachi Information Systems Ltd
Original Assignee
Hitachi Information Systems 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 Hitachi Information Systems Ltd filed Critical Hitachi Information Systems Ltd
Priority to JP2008240683A priority Critical patent/JP2010074596A/en
Publication of JP2010074596A publication Critical patent/JP2010074596A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve reliability of a computer system that attains load distribution of hosts by managing a plurality of hosts (computer devices) with one host name physically. <P>SOLUTION: In a DNS server 101 that performs name solution processing to a plurality of servers 111, 112 on which IP address management is performed with the same host name by a DNS, a supervisory processing section 106 supervises working states of the servers 111, 112 registered and managed by a DNS definition file 109. In a case where it is detected that the server 111 stops, the registration information of the server 111 is deleted or changed by a DNS setting switching section 105, thereby preventing an external terminal 113 from reading presence of the stopped server 111. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、インターネットまたはイントラネット等のIPネットワーク環境における各通信端末(コンピュータ装置)の名前解決処理を行うDNS(Domain Name System)技術に係り、特に、物理的に複数台あるホスト(コンピュータ装置)を仮想的に1台のホストとして使用するシステムにおける名前解決を効率的に行うのに好適な技術に関するものである。   The present invention relates to a DNS (Domain Name System) technique for performing name resolution processing of each communication terminal (computer device) in an IP network environment such as the Internet or an intranet, and in particular, a plurality of hosts (computer devices) that are physically present. The present invention relates to a technique suitable for efficiently performing name resolution in a system that is virtually used as a single host.

従来、IPネットワーク環境における各通信端末(コンピュータ装置)の名前解決を行う際に、物理的に複数台あるホスト(コンピュータ装置)を仮想的に1台のホストとして使用する技術として、例えば、特許文献1に記載の技術がある。   Conventionally, when performing name resolution of each communication terminal (computer device) in an IP network environment, as a technique for virtually using a plurality of hosts (computer devices) as one host, for example, Patent Literature There is a technique described in 1.

この技術は、一つのドメイン名に対し複数のサーバ(コンピュータ装置、ホスト)がある場合に、クライアント(コンピュータ装置)を、ネットワークトポロジ、コスト、あるいはネットワーク容量等からみて、最適なサーバに誘導できるようにするものである。   This technology can guide a client (computer device) to an optimal server in terms of network topology, cost, network capacity, etc. when there are multiple servers (computer devices, hosts) for one domain name. It is to make.

具体的には、DNSサーバによるアドレス解決において、DNSサーバ内に問い合わせ元IPネットワークアドレスと問い合わせ元グループ番号の対応表を持つと共に、ドメイン名と問い合わせ元グループ番号、応答IPアドレスの対応表を持ち、リゾルバ(ネームサーバにホスト名を通知してIPアドレスの検索を依頼したり、その逆を依頼したりするクライアント側のプログラム。)からのアドレス問い合わせに対して、これらの表を検索し、IPアドレスを応答する。   Specifically, in the address resolution by the DNS server, the DNS server has a correspondence table of the inquiry source IP network address and the inquiry source group number, and also has a correspondence table of the domain name, the inquiry source group number, and the response IP address. In response to an address inquiry from a resolver (client side program that notifies the name server of the host name and requests an IP address search, or vice versa), these tables are searched for the IP address. Respond.

このようにすることにより、システムへの負荷分散とクライアントから最適なサーバへの接続を可能とすると共に、これらの表のメンテナンスを容易にすることができる。   In this way, load distribution to the system and connection from the client to the optimum server can be achieved, and maintenance of these tables can be facilitated.

尚、類似の技術として、DNSラウンドロビンがある。この技術は、一つのドメイン名に複数のIPアドレスを割り当てて、問い合わせがあるたびに順番に答えることにより、1台のコンピュータへアクセスが集中するのを防ぐものである。   A similar technique is DNS round robin. This technique prevents a concentration of access to one computer by assigning a plurality of IP addresses to one domain name and answering in turn each time an inquiry is made.

また、特許文献2においては、IPネットワークにおいて、負荷の高いWebサーバへのアクセスを効率的に規制し、トータルのスループットを向上させ、Webサーバやシステムの停止を防止すると同時に、ユーザへのサービス効率の向上を実現するための技術が記載されている。   In Patent Document 2, in an IP network, access to a high-load Web server is efficiently regulated, the total throughput is improved, the Web server and the system are prevented from being stopped, and at the same time, the service efficiency to the user is improved. A technique for realizing the improvement is described.

具体的には、IPネットワークに設置する輻輳制御装置において、IPアドレスとホスト名との対応関係を記憶しておき、新たにクライアントからWebサーバに要求があったときに、DNSサーバによりWebサーバのIPアドレスを取得し、当該IPアドレスのWebサーバが輻輳状態であると判定された場合には、記憶した対応関係の中の同じホスト名に対する、輻輳状態でない異なるIPアドレスを検索して、そのIPアドレスのWebサーバに対して、クライアントからの要求を振り分けるものである。   Specifically, in the congestion control apparatus installed in the IP network, the correspondence between the IP address and the host name is stored, and when a new request is made from the client to the Web server, the DNS server When an IP address is acquired and it is determined that the Web server of the IP address is in a congestion state, a different IP address that is not in a congestion state is searched for the same host name in the stored correspondence relationship, and the IP address The request from the client is distributed to the Web server at the address.

一般的に、DNSサーバは、ホスト名をIPアドレスに変換するための情報を静的に保持しているため、名前解決を行う際には、そのホストが実際に起動しているか否かを考慮せずにIPアドレスに変換している。   In general, a DNS server statically holds information for converting a host name into an IP address. Therefore, when performing name resolution, consider whether or not the host is actually running. Without converting to IP address.

この場合、クライアントに対して、起動していないホストの名前解決を行い接続しようとする現象が発生する可能性がある。   In this case, there is a possibility that the client tries to connect to the client by resolving the name of the host that is not running.

特許文献2の技術では、同じ1つのホスト名で管理される複数のIPアドレスのホストに輻輳が発生した場合にも、輻輳しているホストの情報はそのまま残っているため、外部端末からの問い合わせに応じて、輻輳しているホストのIPアドレスも読み出され、当該ホストにアクセスされて、当該ホストにおいて輻輳状態が発生していることが外部から判ってしまい、同じホスト名で管理される複数のコンピュータ装置からなるシステム自体が「トラブルが多い」、「信頼性が低い」と判断されかねない危険性がある。   In the technique of Patent Document 2, even when congestion occurs in hosts with a plurality of IP addresses managed by the same host name, the information on the congested host remains as it is. In response to this, the IP address of the congested host is also read out, accessed to the host, and it is known from the outside that a congestion state has occurred in the host. There is a risk that the system itself consisting of the computer apparatus may be judged as “many troubles” or “unreliable”.

特開2003−115862号公報JP 2003-115862 A 特開2006−222631号公報JP 2006-222631 A

解決しようとする問題点は、従来の技術では、DNSの名前解決処理によって、接続先が通常運転状態であるのか、縮退運転状態であるのかなどが、外部からは判ってしまう点である。   The problem to be solved is that in the conventional technique, whether the connection destination is in the normal operation state or the degenerate operation state is known from the outside by the DNS name resolution processing.

本発明の目的は、これら従来技術の課題を解決し、物理的に複数台のホスト(コンピュータ装置)を1つのホスト名で管理し、各ホストの負荷分散を図るコンピュータシステムの信頼性を高めることである。   The object of the present invention is to solve these problems of the prior art and to improve the reliability of a computer system that physically manages a plurality of hosts (computer devices) with one host name and distributes the load of each host. It is.

上記目的を達成するため、本発明では、DNSにより名前解決処理を実行するコンピュータ装置(DNSサーバ)において、登録管理している各ホストの稼働状態を監視し、監視対象のホストが停止したことを検知した場合に、当該ホストの登録情報を削除もしくは変更する。   In order to achieve the above object, in the present invention, in a computer device (DNS server) that performs name resolution processing by DNS, the operating state of each registered and managed host is monitored, and the monitoring target host is stopped. When detected, the registration information of the host is deleted or changed.

本発明によれば、外部端末からの名前解決の問合せに対して、障害が発生したホストのIPアドレスは回答されないので、外部端末が、停止しているホストへ接続しようとする現象を発生させないようにすることができると共に、外部端末が、名前解決の回答を参照しても、停止しているホストの存在が読み取られることはなく、例えばDNSラウンドロビンにより読み出される複数台のホストからなるシステムの信頼性が損なわれることを回避することができる。   According to the present invention, the IP address of the host in which the failure has occurred is not answered in response to the name resolution query from the external terminal, so that the external terminal does not cause a phenomenon of trying to connect to the stopped host. Even if the external terminal refers to the name resolution answer, the presence of the stopped host is not read. For example, a system comprising a plurality of hosts read by DNS round robin It can be avoided that the reliability is impaired.

以下、図を用いて本発明を実施するための最良の形態例を説明する。図1Aは、本発明に係るアクティブDNS装置の第1の構成例を示すブロック図であり、図1Bは、本発明に係るアクティブDNS装置の第2の構成例を示すブロック図、図2は、本発明に係るアクティブDNS装置の名前解決処理方法の第1の処理動作例を示すフローチャート、図3は、本発明に係るアクティブDNS装置の名前解決処理方法の第2の処理動作例を示すフローチャート、図4は、本発明に係るアクティブDNS装置の名前解決処理方法の第3の処理動作例を示すフローチャート、図5は、図1におけるタイムアウト回数ファイルの構成例を示す説明図、図6は、図1におけるステータスファイルの構成例を示す説明図、図7は、図1におけるDNS定義ファイルの構成例を示す説明図である。   The best mode for carrying out the present invention will be described below with reference to the drawings. FIG. 1A is a block diagram showing a first configuration example of an active DNS apparatus according to the present invention, FIG. 1B is a block diagram showing a second configuration example of an active DNS apparatus according to the present invention, and FIG. FIG. 3 is a flowchart showing a first processing operation example of the name resolution processing method of the active DNS apparatus according to the present invention; FIG. 3 is a flowchart showing a second processing operation example of the name resolution processing method of the active DNS apparatus according to the present invention; FIG. 4 is a flowchart showing a third processing operation example of the name resolution processing method of the active DNS apparatus according to the present invention, FIG. 5 is an explanatory diagram showing a configuration example of the timeout number file in FIG. 1, and FIG. FIG. 7 is an explanatory diagram showing a configuration example of the DNS definition file in FIG. 1.

図1Aおよび図1Bにおいて、101は本発明のアクティブDNS装置としてのアクティブDNSサーバであり、このアクティブDNSサーバ101は、監視対象サーバ(1)111、監視対象サーバ(2)112、端末113と同様に、CPU(Central Processing Unit)や主メモリ、表示装置、入力装置、外部記憶装置からなるコンピュータ構成からなり、光ディスク駆動装置等を介してCD−ROM等の記憶媒体に記録されたプログラムやデータを外部記憶装置内にインストールした後、この外部記憶装置から主メモリに読み込みCPUで処理することにより、各処理部の機能を実行する。   1A and 1B, reference numeral 101 denotes an active DNS server as an active DNS apparatus according to the present invention. This active DNS server 101 is the same as the monitoring target server (1) 111, the monitoring target server (2) 112, and the terminal 113. In addition, a computer configuration including a CPU (Central Processing Unit), a main memory, a display device, an input device, and an external storage device, and programs and data recorded on a storage medium such as a CD-ROM via an optical disk drive device, etc. After installation in the external storage device, the function of each processing unit is executed by reading from the external storage device into the main memory and processing by the CPU.

すなわち、アクティブDNSサーバ101は、プログラムされてコンピュータ処理を実行する機能として、アクティブDNSシステム102,103、DNSプロセス110を具備し、さらに、アクティブDNSシステム102,103は、アクティブDNSシステム103において示すように、システム制御部104と、DNS設定切替処理部105、監視処理部106を具備し、図示していない記憶装置において、タイムアウト回数ファイル107とステータスファイル108およびDNS定義ファイル109等の情報を格納している。   That is, the active DNS server 101 includes active DNS systems 102 and 103 and a DNS process 110 as functions to execute computer processing by being programmed. Further, the active DNS systems 102 and 103 are shown in the active DNS system 103. In addition, the system control unit 104, the DNS setting switching processing unit 105, and the monitoring processing unit 106 are provided, and information such as the timeout count file 107, the status file 108, and the DNS definition file 109 is stored in a storage device (not shown). ing.

タイムアウト回数ファイル107は、図5の項目説明501、データ例502で示すように、項目名としてタイムアウト回数が設定され、当該項目に対する値(内容説明)として、pingのタイムアウト回数(0〜3)が登録される。   As shown in the item description 501 and the data example 502 in FIG. 5, the timeout number file 107 is set with the number of timeouts as the item name, and the ping timeout number (0 to 3) is set as the value (content description) for the item. be registered.

また、ステータスファイル108は、図6の項目説明601、データ例602で示すように、項目名としてステータスが設定され、当該項目に対する値(内容説明)として、監視対象の稼働状態(Normal:正常,Error:異常)が登録される。   In the status file 108, as shown in the item description 601 and the data example 602 in FIG. 6, the status is set as the item name, and the monitoring target operating state (Normal: normal, Error: Abnormal) is registered.

また、DNS定義ファイル109は、図7の項目説明701、データ例702で示すように、項目名として、ホスト名とIPアドレスが設定され、当該項目に対する値(内容説明)として、対象のホスト名(hostA)と対象ホストのIPアドレスが登録される。   In the DNS definition file 109, as shown in the item description 701 and the data example 702 in FIG. 7, the host name and IP address are set as the item name, and the target host name is set as the value (content description) for the item. (HostA) and the IP address of the target host are registered.

図1Aでは、アクティブDNSサーバ101の正常時の構成を示しており、図1Bでは、監視対象に障害が発生した場合のアクティブDNSサーバ101の構成を示している。   FIG. 1A shows a normal configuration of the active DNS server 101, and FIG. 1B shows a configuration of the active DNS server 101 when a failure occurs in the monitoring target.

DNSサーバ101が具備するアクティブDNSシステム102,103は、監視対象のホストである監視対象サーバ(1)111,監視対象サーバ(2)112の数だけ起動し、それぞれ特定の監視対象サーバ(1)111,監視対象サーバ(2)112の監視を行う構成としても良いが、以下、図1Bにおいて示すように、アクティブDNSシステム103において、監視対象サーバ(1)111,監視対象サーバ(2)112の監視を行う構成として説明する。   The active DNS systems 102 and 103 included in the DNS server 101 are activated by the number of monitoring target servers (1) 111 and monitoring target servers (2) 112, which are monitoring target hosts, and each specific monitoring target server (1). 111, the monitoring target server (2) 112 may be monitored. However, as shown in FIG. 1B, in the active DNS system 103, the monitoring target server (1) 111 and the monitoring target server (2) 112 are A description will be given of a configuration for performing monitoring.

すなわち、図1Aの構成においては、アクティブDNSシステム102,103の2個が起動しており、一方のアクティブDNSシステム102が監視対象サーバ(1)111を監視し、もう一方のアクティブDNSシステム103が監視対象サーバ(1)112を監視しているが、図1Bの構成においては、アクティブDNSシステム103が、監視対象サーバ(1)111,監視対象サーバ(2)112を監視している。   That is, in the configuration of FIG. 1A, two active DNS systems 102 and 103 are activated, one active DNS system 102 monitors the monitoring target server (1) 111, and the other active DNS system 103 Although the monitoring target server (1) 112 is monitored, in the configuration of FIG. 1B, the active DNS system 103 monitors the monitoring target server (1) 111 and the monitoring target server (2) 112.

アクティブDNSシステム103において、システム制御部104は、全体の制御を行い、監視処理部106は、監視対象サーバ(1)111,(2)112の監視を行い、DNS設定切替処理部105は、監視対象サーバ(1)111,(2)112の停止を検知した場合に、DNS定義ファイル109で管理するホスト定義を変更する。   In the active DNS system 103, the system control unit 104 performs overall control, the monitoring processing unit 106 monitors the monitoring target servers (1) 111 and (2) 112, and the DNS setting switching processing unit 105 performs monitoring. When the stop of the target servers (1) 111 and (2) 112 is detected, the host definition managed by the DNS definition file 109 is changed.

DNS定義ファイル109では、同じホスト名で各監視対象サーバ(1)111,(2)112のIPアドレスを対応付けて記憶しており、監視処理部106は、監視対象サーバ(1)111,(2)112の稼働状態を監視し、当該監視対象サーバ(1)111の停止状態を検知すると、その検知結果をステータスフィアル108に格納する。   The DNS definition file 109 stores the IP addresses of the monitoring target servers (1) 111 and (2) 112 in association with the same host name, and the monitoring processing unit 106 monitors the monitoring target servers (1) 111, ( 2) The operation state of 112 is monitored, and when the stop state of the monitored server (1) 111 is detected, the detection result is stored in the status file 108.

DNS設定切替処理部105は、ステータスフィアル108に格納された監視処理部106による検知結果を読み出し、監視対象サーバ(1)111が停止状態であれば、当該監視対象サーバ(1)111のIPアドレスを、DNS定義ファイル109から削除する。   The DNS setting switching processing unit 105 reads the detection result by the monitoring processing unit 106 stored in the status file 108, and if the monitoring target server (1) 111 is in a stopped state, the IP address of the monitoring target server (1) 111 Are deleted from the DNS definition file 109.

あるいは、DNS設定切替処理部105は、ステータスフィアル108に格納された監視処理部106による検知結果を読み出し、監視対象サーバ(1)111が停止状態であれば、DNS定義ファイル109において登録されている、当該監視対象サーバ(1)111のIPアドレスを変更する。   Alternatively, the DNS setting switching processing unit 105 reads the detection result by the monitoring processing unit 106 stored in the status file 108, and is registered in the DNS definition file 109 if the monitoring target server (1) 111 is in a stopped state. The IP address of the monitored server (1) 111 is changed.

DNSプロセス110は、ネットワークで接続された外部の端末113からホスト名で指定された監視対象サーバのIPアドレスの問い合わせに対応して、DNS定義ファイル109に格納されている情報を参照し、当該ホスト名に対応付けた監視対象サーバ(1)111,(2)112のIPアドレスから1つを選択して返送する。   The DNS process 110 refers to the information stored in the DNS definition file 109 in response to the inquiry of the IP address of the monitoring target server designated by the host name from the external terminal 113 connected via the network, and One of the IP addresses of the monitoring target servers (1) 111 and (2) 112 associated with the name is selected and returned.

このDNSプロセス110の処理において、DNS定義ファイル109に格納されている情報からDNS設定切替処理部105により監視対象サーバ(1)111に関しての情報(IPアドレス)が削除されていれば、DNSプロセス110は、監視対象サーバ(1)111のIPアドレスを外部の端末113に返送しないので、端末113側が、稼働停止状態の監視対象サーバ(1)111にアクセスする恐れはない。   In the processing of the DNS process 110, if the information (IP address) regarding the monitoring target server (1) 111 is deleted from the information stored in the DNS definition file 109 by the DNS setting switching processing unit 105, the DNS process 110 Does not return the IP address of the monitoring target server (1) 111 to the external terminal 113, so there is no fear that the terminal 113 side accesses the monitoring target server (1) 111 in the operation stop state.

また、DNSプロセス110の処理において、DNS定義ファイル109に格納されている情報の内、DNS設定切替処理部105により監視対象サーバ(1)111に関しての情報(IPアドレス)が変更されていれば、DNSプロセス110は、監視対象サーバ(1)111の元のIPアドレスを外部の端末113に返送しないので、端末113側が、この元のIPアドレス先にアクセスする恐れはない。   Further, in the processing of the DNS process 110, if the information (IP address) regarding the monitoring target server (1) 111 is changed by the DNS setting switching processing unit 105 among the information stored in the DNS definition file 109, Since the DNS process 110 does not return the original IP address of the monitoring target server (1) 111 to the external terminal 113, there is no fear that the terminal 113 side accesses the original IP address destination.

この場合、DNS設定切替処理部105は、変更したIPアドレスを、例えば、監視対象サーバ(2)112のIPアドレスに対応付けたテーブル情報を生成して記憶装置に格納し、DNSプロセス110がテーブル情報を参照することにより、端末113からの変更IPアドレス宛のアクセスを、監視対象サーバ(2)112宛とすることができる。   In this case, the DNS setting switching processing unit 105 generates table information in which the changed IP address is associated with the IP address of the monitoring target server (2) 112, for example, and stores the table information in the storage device. By referring to the information, the access addressed to the changed IP address from the terminal 113 can be addressed to the monitoring target server (2) 112.

特に、DNS設定切替処理部105のおけるIPアドレスの変更処理として、停止状態の監視対象サーバ(1)111の元のIPアドレスを、そのままDNS定義ファイル109に格納された状態で継続しておくと共に、この元のIPアドレスを、さらに、例えば、監視対象サーバ(2)112のIPアドレスに対応付けたテーブル情報を生成して記憶装置に格納することにより、DNSプロセス110が端末113に返送するIPアドレスとして、停止状態の監視対象サーバ(1)111のIPアドレスを含める。   In particular, as the IP address changing process in the DNS setting switching processing unit 105, the original IP address of the monitoring target server (1) 111 in the stopped state is continuously stored in the DNS definition file 109 as it is. Further, by generating table information associated with the IP address of the monitored server (2) 112 and storing the original IP address in the storage device, for example, the IP that the DNS process 110 returns to the terminal 113 The IP address of the monitoring target server (1) 111 in the stopped state is included as the address.

このように、停止状態の監視対象サーバ(1)111の元のIPアドレスを、そのままDNS定義ファイル109に格納された状態で継続し、DNSプロセス110が端末113に返送するIPアドレスとして、停止状態の監視対象サーバ(1)111のIPアドレスを含めることにより、端末113側には、監視対象サーバ(1)111の元のIPアドレスが削除されていない状態と判別させることができ、監視対象サーバ(1)111が実質的に切り離された状態であっても、端末113側において、通常時と比較しても、その縮退運転状態は判別できない。このことにより、システム自体の、トラブルが多い、信頼性が低いといったマイナス判断がなされることを回避できる。   In this way, the original IP address of the monitoring target server (1) 111 in the stopped state is continued as it is stored in the DNS definition file 109, and the stopped state is used as the IP address that the DNS process 110 returns to the terminal 113. By including the IP address of the monitored server (1) 111, the terminal 113 can determine that the original IP address of the monitored server (1) 111 has not been deleted. (1) Even if 111 is in a substantially disconnected state, the degenerate operation state cannot be determined on the terminal 113 side even when compared with the normal time. As a result, it is possible to avoid a negative determination that the system itself has many troubles and low reliability.

尚、DNSプロセス110は、端末113に返送するIPアドレスの選択をラウンドロビンで行う。   Note that the DNS process 110 selects an IP address to be returned to the terminal 113 in a round robin manner.

また、監視処理部106は、監視処理の結果をタイムアウトファイル107に保存し、障害を検知した場合には、ステータスファイル108のステータスに、障害状態を示す情報(「error」)を登録し、DNS設定切替処理部105を起動する。   In addition, the monitoring processing unit 106 stores the result of the monitoring processing in the timeout file 107, and when a failure is detected, registers information ("error") indicating the failure state in the status of the status file 108, and DNS The setting switching processing unit 105 is activated.

具体的には、監視処理部106は、監視対象サーバ(1)111,(2)112の各コンピュータ装置に対してpingコマンドを送り、各サーバ毎のエラー回数を計数し、計数したラー回数が予め定められた閾値を超えれば当該サーバが停止状態であると検知する。   Specifically, the monitoring processing unit 106 sends a ping command to each computer device of the monitoring target servers (1) 111 and (2) 112, counts the number of errors for each server, and the counted number of errors is If a predetermined threshold value is exceeded, it is detected that the server is in a stopped state.

このように、本例では、DNS設定切替処理部105は、DNS定義ファイル109を編集し、端末113からの問い合わせに対してDNSプロセス110が障害となった監視対象サーバの情報を返さないようにする。   As described above, in this example, the DNS setting switching processing unit 105 edits the DNS definition file 109 so that the DNS process 110 does not return information on the monitoring target server that has failed in response to the inquiry from the terminal 113. To do.

以下、図2〜図4のフローチャートを用いて、DNSサーバ101の本発明に係る名前解決処理動作について説明する。   Hereinafter, the name resolution processing operation of the DNS server 101 according to the present invention will be described with reference to the flowcharts of FIGS.

図2において、まず、設定ファイル210の有無を確認し(ステップS201)、設定ファイル210が存在すれば設定ファイル210から変数値を取得し(ステップS202)、取得した値のチェックを行い(ステップS203)、初期化処理を行い(ステップS204)、監視処理部205を呼び出す。   In FIG. 2, first, the presence or absence of the setting file 210 is confirmed (step S201). If the setting file 210 exists, a variable value is acquired from the setting file 210 (step S202), and the acquired value is checked (step S203). ), Initialization processing is performed (step S204), and the monitoring processing unit 205 is called.

監視処理部205の処理が終了すれば、ステータスファイル211より変数値を取得し(ステップS206)、取得した変数をチェックし(ステップS207)、変数の値が「error」の場合には、監視対象が停止していることを通知した後(ステップS208)、「error」でない場合には、監視対象が停止していることを通知しないまま、10秒経過したかを判定し(ステップS209)、10秒経過したならば、再び、監視処理部205を呼び出し、その処理の終了後、ステップS206〜S209の処理を繰り返す。   When the process of the monitoring processing unit 205 is completed, a variable value is acquired from the status file 211 (step S206), the acquired variable is checked (step S207), and if the variable value is “error”, the monitoring target Is not “error”, it is determined whether 10 seconds have passed without notifying that the monitoring target is stopped (step S209). If the second has elapsed, the monitoring processing unit 205 is called again, and after the processing is completed, the processing of steps S206 to S209 is repeated.

図3においては、監視処理部106のPING発行処理動作を示しており、監視処理部106は、まず、設定ファイル318から変数値を取得し(ステップS301)、取得した変数をチェックする(ステップS302)。   FIG. 3 shows the PING issue processing operation of the monitoring processing unit 106. The monitoring processing unit 106 first acquires a variable value from the setting file 318 (step S301), and checks the acquired variable (step S302). ).

次に、タイムアウト回数ファイル319があるか否かを確認し(ステップS303)、タイムアウト回数ファイル319が存在しない場合は、タイムアウト回数ファイル319を作成して、値「0」を設定し(ステップS304)、ファイルが存在する場合は次のステップS305処理に進む。   Next, it is confirmed whether or not the timeout number file 319 exists (step S303). If the timeout number file 319 does not exist, the timeout number file 319 is created and set to a value “0” (step S304). If the file exists, the process proceeds to the next step S305.

次の処理では、ステータスファイル320の有無を確認し(ステップS305)、ステータスファイル320が存在しない場合には、ステータスファイルを作成して、値「Error」を設定し(ステップS306)、ファイルが存在する場合には、次のステップS307の処理に進む。   In the next process, the presence / absence of the status file 320 is confirmed (step S305). If the status file 320 does not exist, a status file is created and a value “Error” is set (step S306). If so, the process proceeds to the next step S307.

ステップS307ではステータスファイルの値を確認し、「Normal」以外の場合には、タイムアウト回数をタイムアウト回数ファイル319へ保存して(ステップS315)、処理を終了する。   In step S307, the status file value is checked. If the value is other than "Normal", the timeout count is stored in the timeout count file 319 (step S315), and the process is terminated.

また、「Normal」の場合には、PINGを発行する(ステップS308)。このPINGの実行結果の値が「0」であるか否かを判定し(ステップS309)、「0」以外の場合には、タイムアウト回数値を確認し(ステップS310)、タイムアウト回数が3未満の場合には、タイムアウト回数に「1」を加えた値を設定し(ステップS311)、タイムアウト回数値を再度確認し(ステップS312)、タイムアウト回数値が「3」の場合には、ステータスファイル320に値「Error」を設定し(ステップS313)、DNS設定切替処理を呼び出して(ステップS314)、タイムアウト回数値をタイムアウト回数ファイル319に保存する(ステップS315)。   If “Normal”, PING is issued (step S308). It is determined whether or not the value of the execution result of this PING is “0” (step S309). If it is not “0”, the timeout count value is confirmed (step S310), and the timeout count is less than 3 In this case, a value obtained by adding “1” to the timeout count is set (step S311), the timeout count value is checked again (step S312), and if the timeout count value is “3”, the status file 320 is stored. The value “Error” is set (step S313), the DNS setting switching process is called (step S314), and the timeout number value is stored in the timeout number file 319 (step S315).

ステータスファイル320の値が「Normal」の場合には、PINGを発行し(ステップS308)、その結果の値が「0」以外の場合には、タイムアウト回数が「3未満」であるか否かを確認し(ステップS316)、「3以上」であれば何もせず、「3未満」であれば、タイムアウト回数に「1」を加え(ステップS317)、タイムアウト回数をタイムアウト回数ファイル319へ保存して(ステップS315)処理を終了する。   When the value of the status file 320 is “Normal”, a PING is issued (step S308). When the result value is other than “0”, it is determined whether or not the number of times of timeout is “less than 3”. Confirm (step S316), if it is “3 or more”, do nothing, and if it is “less than 3”, add “1” to the timeout count (step S317) and save the timeout count in the timeout count file 319. (Step S315) The process ends.

図4においては、DNS設定切替処理部105の処理動作を示しており、DNS設定切替処理部105は、まず、設定ファイル405から変数値を取得し(ステップS401)、取得した変数をチェックし(ステップS402)、DNS設定ファイルを変更し(ステップS403)、DNSサーバのプロセスを再起動する(ステップS404)。   FIG. 4 shows the processing operation of the DNS setting switching processing unit 105. The DNS setting switching processing unit 105 first acquires a variable value from the setting file 405 (step S401) and checks the acquired variable ( Step S402), the DNS setting file is changed (Step S403), and the DNS server process is restarted (Step S404).

以上、図1A〜図7を用いて説明したように、本例では、DNSにより同じホスト名でIPアドレス管理されている複数のサーバ111,112に対する名前解決処理を実行するDNSサーバ101において、監視処理部106により、DNS定義ファイル109で登録管理している各サーバ111,112の稼働状態を監視し、監視対象のサーバ111が停止したことを検知した場合に、DNS設定切り替え部105により、当該サーバ111の登録情報を削除もしくは変更する。   As described above with reference to FIGS. 1A to 7, in this example, monitoring is performed in the DNS server 101 that executes name resolution processing for a plurality of servers 111 and 112 that are IP addresses managed by the DNS with the same host name. When the processing unit 106 monitors the operating states of the servers 111 and 112 registered and managed in the DNS definition file 109 and detects that the monitoring target server 111 has stopped, the DNS setting switching unit 105 The registration information of the server 111 is deleted or changed.

このようにすることにより、外部の端末113からの名前解決の問合せに対して、障害が発生したサーバ(111)のIPアドレスは回答されないので、外部の端末113が、停止しているサーバ(111)へ接続しようとする現象を発生させないようにすることができると共に、外部の端末113が、名前解決の回答を参照しても、停止しているサーバ(111)の存在が読み取られることはなく、例えばDNSラウンドロビンにより読み出される複数台のサーバ(111,112)からなるシステムの信頼性が損なわれることを回避することができる。   By doing so, since the IP address of the server (111) in which the failure has occurred is not answered in response to the name resolution inquiry from the external terminal 113, the external terminal 113 is stopped by the server (111) ), And even if the external terminal 113 refers to the name resolution answer, the presence of the stopped server (111) is not read. For example, it can be avoided that the reliability of the system including a plurality of servers (111, 112) read by the DNS round robin is impaired.

尚、本発明は、図1A〜図7を用いて説明した例に限定されるものではなく、その要旨を逸脱しない範囲において種々変更可能である。例えば、本例では、監視対象サーバとして2台を示しているが、2台以上のサーバを監視対象とすることでも良い。   In addition, this invention is not limited to the example demonstrated using FIG. 1A-FIG. 7, It can change variously in the range which does not deviate from the summary. For example, although two servers are shown as monitoring target servers in this example, two or more servers may be monitored.

また、本例のコンピュータ構成に関しても、キーボードや光ディスクの駆動装置の無いコンピュータ構成としても良い。また、本例では、光ディスクを記録媒体として用いているが、FD(Flexible Disk)等を記録媒体として用いることでも良い。また、プログラムのインストールに関しても、通信装置を介してネットワーク経由でプログラムをダウンロードしてインストールすることでも良い。   The computer configuration of this example may be a computer configuration without a keyboard or optical disk drive. In this example, an optical disk is used as a recording medium. However, an FD (Flexible Disk) or the like may be used as a recording medium. As for the program installation, the program may be downloaded and installed via a network via a communication device.

本発明に係るアクティブDNS装置の第1の構成例を示すブロック図である。It is a block diagram which shows the 1st structural example of the active DNS apparatus which concerns on this invention. 本発明に係るアクティブDNS装置の第2の構成例を示すブロック図である。It is a block diagram which shows the 2nd structural example of the active DNS apparatus which concerns on this invention. 本発明に係るアクティブDNS装置の名前解決処理方法の第1の処理動作例を示すフローチャートである。It is a flowchart which shows the 1st processing operation example of the name resolution processing method of the active DNS apparatus which concerns on this invention. 本発明に係るアクティブDNS装置の名前解決処理方法の第2の処理動作例を示すフローチャートである。It is a flowchart which shows the 2nd processing operation example of the name resolution processing method of the active DNS apparatus which concerns on this invention. 本発明に係るアクティブDNS装置の名前解決処理方法の第3の処理動作例を示すフローチャートである。It is a flowchart which shows the 3rd processing operation example of the name resolution processing method of the active DNS apparatus which concerns on this invention. 図1におけるタイムアウト回数ファイルの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the timeout frequency file in FIG. 図1におけるステータスファイルの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the status file in FIG. 図1におけるDNS定義ファイルの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the DNS definition file in FIG.

符号の説明Explanation of symbols

101:DNSサーバ、102,103:アクティブDNSシステム、104:システム制御部、105:DNS設定切替処理部、106:監視処理部、107,319:タイムアウト回数ファイル、108,211,320:ステータスファイル、109:DNS定義ファイル、110:DNSプロセス、111:監視対象サーバ(1)、112:監視対象サーバ(2)、113:端末、210,318,405:設定ファイル。   101: DNS server, 102, 103: Active DNS system, 104: System control unit, 105: DNS setting switching processing unit, 106: Monitoring processing unit, 107, 319: Timeout count file, 108, 211, 320: Status file 109: DNS definition file, 110: DNS process, 111: monitoring target server (1), 112: monitoring target server (2), 113: terminal, 210, 318, 405: setting file.

Claims (8)

プログラムされたコンピュータ処理により、IPネットワークに接続された同じホスト名の複数のコンピュータ装置の名前解決を行うDNS装置であって、
プログラムされたコンピュータ処理を実行する手段として、
同じホスト名の各コンピュータ装置のIPアドレスを当該ホスト名に対応付けた定義情報を記憶する定義ファイル記憶手段と、
各コンピュータ装置毎に設けられ当該コンピュータ装置の稼働状態を監視して当該コンピュータ装置の停止状態を検知する監視処理手段と、
該監視処理手段による検知結果を記憶するステータスフィアル記憶手段と、
該ステータスフィアル記憶手段が記憶した上記監視処理手段による検知結果を読み出し、停止状態のコンピュータ装置があれば、当該コンピュータ装置のIPアドレスを、上記定義ファイル記憶手段が記憶している当該定義情報から削除するDNS設定切替処理手段と、
外部端末装置からホスト名で指定されたコンピュータ装置のIPアドレスの問い合わせに対応して上記定義ファイル記憶手段の定義情報を参照し、当該ホスト名に対応付けたコンピュータ装置のIPアドレスから1つを選択して返送するDNSプロセス手段と
を有することを特徴とするアクティブDNS装置。
A DNS device for performing name resolution of a plurality of computer devices having the same host name connected to an IP network by programmed computer processing,
As a means of performing programmed computer processing,
Definition file storage means for storing definition information in which the IP address of each computer device having the same host name is associated with the host name;
Monitoring processing means provided for each computer device for monitoring the operating state of the computer device and detecting the stopped state of the computer device;
Status file storage means for storing detection results by the monitoring processing means;
The detection result by the monitoring processing means stored in the status file storage means is read, and if there is a stopped computer device, the IP address of the computer device is deleted from the definition information stored in the definition file storage means DNS setting switching processing means to perform,
In response to the inquiry of the IP address of the computer device designated by the host name from the external terminal device, the definition information in the definition file storage means is referred to, and one of the IP addresses of the computer devices associated with the host name is selected. And an DNS process means for returning the active DNS apparatus.
プログラムされたコンピュータ処理により、IPネットワークに接続された同じホスト名の複数のコンピュータ装置の名前解決を行うDNS装置であって、
プログラムされたコンピュータ処理を実行する手段として、
同じホスト名の各コンピュータ装置のIPアドレスを当該ホスト名に対応付けた定義情報を記憶する定義ファイル記憶手段と、
各コンピュータ装置毎に設けられ当該コンピュータ装置の稼働状態を監視して当該コンピュータ装置の停止状態を検知する監視処理手段と、
該監視処理手段による検知結果を記憶するステータスフィアル記憶手段と、
該ステータスフィアル記憶手段が記憶した上記監視処理手段による検知結果を読み出し、停止状態のコンピュータ装置があれば、上記定義ファイル記憶手段が記憶している当該定義情報における当該コンピュータ装置のIPアドレスを変更するDNS設定切替処理手段と、
外部端末装置からホスト名で指定されたコンピュータ装置のIPアドレスの問い合わせに対応して上記定義ファイル記憶手段の定義情報を参照し、当該ホスト名に対応付けたコンピュータ装置のIPアドレスから1つを選択して返送するDNSプロセス手段と
を有することを特徴とするアクティブDNS装置。
A DNS device for performing name resolution of a plurality of computer devices having the same host name connected to an IP network by programmed computer processing,
As a means of performing programmed computer processing,
Definition file storage means for storing definition information in which the IP address of each computer device having the same host name is associated with the host name;
Monitoring processing means provided for each computer device for monitoring the operating state of the computer device and detecting the stopped state of the computer device;
Status file storage means for storing detection results by the monitoring processing means;
The detection result by the monitoring processing means stored in the status file storage means is read, and if there is a stopped computer device, the IP address of the computer device in the definition information stored in the definition file storage means is changed. DNS setting switching processing means;
In response to the inquiry of the IP address of the computer device designated by the host name from the external terminal device, the definition information in the definition file storage means is referred to, and one of the IP addresses of the computer devices associated with the host name is selected. And an DNS process means for returning the active DNS apparatus.
請求項2に記載のアクティブDNS装置であって、
上記DNS設定切替処理手段は、
変更したIPアドレスを、同じホスト名の他のコンピュータ装置のIPアドレスに対応付けたテーブル情報を生成して記憶装置に格納することを特徴とするアクティブDNS装置。
An active DNS device according to claim 2,
The DNS setting switching processing means
An active DNS device, wherein table information in which a changed IP address is associated with an IP address of another computer device having the same host name is generated and stored in a storage device.
請求項2に記載のアクティブDNS装置であって、
上記DNS設定切替処理手段は、
停止状態のコンピュータ装置のIPアドレスを、同じホスト名の他のコンピュータ装置のIPアドレスに対応付けたテーブル情報を生成して記憶装置に格納し、
上記定義ファイル記憶手段は、停止状態のコンピュータ装置のIPアドレスを継続して記憶し、
上記DNSプロセス手段が返送するIPアドレスに、上記停止状態のコンピュータ装置のIPアドレスを含めることを特徴とするアクティブDNS装置。
An active DNS device according to claim 2,
The DNS setting switching processing means
Table information in which the IP address of the computer device in the stopped state is associated with the IP address of another computer device having the same host name is generated and stored in the storage device.
The definition file storage means continuously stores the IP address of the computer in the stopped state,
An active DNS device, wherein the IP address returned by the DNS process means includes the IP address of the computer device in the stopped state.
請求項1から請求項4のいずれかに記載のアクティブDNS装置であって、
上記DNSプロセス手段は、
上記外部端末装置に返送するコンピュータ装置のIPアドレスの選択をラウンドロビンで行うことを特徴とするアクティブDNS装置。
An active DNS device according to any one of claims 1 to 4,
The DNS process means includes:
An active DNS apparatus characterized in that selection of an IP address of a computer apparatus to be returned to the external terminal apparatus is performed in a round robin manner.
請求項1から請求項5のいずれかに記載のアクティブDNS装置であって、
上記監視処理手段は、
各コンピュータ装置に対してpingコマンドを送り、各コンピュータ装置毎のエラー回数を計数し、計数したラー回数が予め定められた閾値を超えれば当該コンピュータ装置が停止状態であると検知することを特徴とするアクティブDNS装置。
An active DNS device according to any one of claims 1 to 5,
The monitoring processing means includes
A ping command is sent to each computer device, the number of errors for each computer device is counted, and if the counted number of errors exceeds a predetermined threshold, it is detected that the computer device is in a stopped state. Active DNS device.
プログラムされたコンピュータ処理により、IPネットワークに接続された同じホスト名の複数のコンピュータ装置の名前解決を行うDNSシステムの名前解決処理方法であって、
プログラムされたコンピュータ処理手順として、請求項1から請求項6のいずれかに記載のアクティブDNS装置における各手段が実行する処理手順を含み、
該各手段の処理手順により、外部端末装置からホスト名で指定されたコンピュータ装置のIPアドレスの問い合わせに対応して1つのIPアドレスを選択して返送することを特徴とするアクティブDNS装置の名前解決処理方法。
A DNS system name resolution processing method for performing name resolution of a plurality of computer devices having the same host name connected to an IP network by programmed computer processing,
A programmed computer processing procedure includes a processing procedure executed by each unit in the active DNS device according to any one of claims 1 to 6,
In accordance with the processing procedure of each means, the name resolution of the active DNS apparatus, wherein one IP address is selected and returned in response to the inquiry of the IP address of the computer apparatus designated by the host name from the external terminal apparatus Processing method.
コンピュータを、請求項1から請求項6のいずれかに記載のアクティブDNS装置における各手段として機能させるためのプログラム。   The program for functioning a computer as each means in the active DNS apparatus in any one of Claims 1-6.
JP2008240683A 2008-09-19 2008-09-19 Active dns device and name solution processing method thereof and program Pending JP2010074596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008240683A JP2010074596A (en) 2008-09-19 2008-09-19 Active dns device and name solution processing method thereof and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008240683A JP2010074596A (en) 2008-09-19 2008-09-19 Active dns device and name solution processing method thereof and program

Publications (1)

Publication Number Publication Date
JP2010074596A true JP2010074596A (en) 2010-04-02

Family

ID=42205951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008240683A Pending JP2010074596A (en) 2008-09-19 2008-09-19 Active dns device and name solution processing method thereof and program

Country Status (1)

Country Link
JP (1) JP2010074596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10148984B2 (en) 2013-09-12 2018-12-04 Soliton Systems K.K. Terminal device, server device, data management system, and recording medium on which program is recorded

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08307852A (en) * 1995-04-27 1996-11-22 Nippon Telegr & Teleph Corp <Ntt> Service access method and its system
JP2004032103A (en) * 2002-06-21 2004-01-29 Ntt Docomo Tokai Inc Network system and server switching method
JP2008537400A (en) * 2005-04-13 2008-09-11 ノキア コーポレイション System, network apparatus, method and computer program product for balancing active load using clustered nodes as authoritative domain name servers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08307852A (en) * 1995-04-27 1996-11-22 Nippon Telegr & Teleph Corp <Ntt> Service access method and its system
JP2004032103A (en) * 2002-06-21 2004-01-29 Ntt Docomo Tokai Inc Network system and server switching method
JP2008537400A (en) * 2005-04-13 2008-09-11 ノキア コーポレイション System, network apparatus, method and computer program product for balancing active load using clustered nodes as authoritative domain name servers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10148984B2 (en) 2013-09-12 2018-12-04 Soliton Systems K.K. Terminal device, server device, data management system, and recording medium on which program is recorded

Similar Documents

Publication Publication Date Title
US9306825B2 (en) Providing a witness service
US20130159487A1 (en) Migration of Virtual IP Addresses in a Failover Cluster
EP1647890B1 (en) Failover scopes for nodes of a computer cluster
EP2815323B1 (en) Method for controlling access of clients to a service in a cluster environment
US7475108B2 (en) Slow-dynamic load balancing method
JP5557689B2 (en) Network system
JP2014522052A (en) Reduce hardware failure
JPWO2008126325A1 (en) Cluster system, software update method, service providing node, and service providing program
US10182033B1 (en) Integration of service scaling and service discovery systems
JP2005529398A (en) System and method for query cache processing
US20200057714A1 (en) Testing data changes in production systems
WO2018003031A1 (en) Virtualization management program, virtualization management device, and virtualization management method
JP2010103695A (en) Cluster system, cluster server and cluster control method
US10135916B1 (en) Integration of service scaling and external health checking systems
US8041748B2 (en) Method and apparatus for managing a web cache system
JP2008304982A (en) Information management method and information processor
JP2010074596A (en) Active dns device and name solution processing method thereof and program
JP2007108929A (en) Log management system, log management manager, log management method, and program
KR20120075622A (en) Method, system and compueter readable medium to store log data effective in the game service
JP2010182017A (en) Distributed computer system, manager succession method and manager succession program
WO2023275984A1 (en) Virtualization system restoration device and virtualization system restoration method
US11909577B2 (en) Method and system for detecting failure-causing client with failure handling edge server grouping
WO2023032103A1 (en) Job control system and job control method
CN111835876B (en) Network address configuration method, device, server cluster and storage medium
JP4193543B2 (en) Client management method, client management program, and client management apparatus in DHCP environment

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110519

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110524

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110526

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110906

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111031

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111213

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20111227