次の方法で共有


DNS クライアント解決のタイムアウト

このドキュメントでは、1 つ以上のドメイン ネーム システム (DNS) サーバー IP が Windows DNS クライアントで構成されている場合のフォールバック動作とタイムアウト動作について説明します。

適用対象: サポートされているバージョンの Windows クライアント
元の KB 番号: 2834226

まとめ

詳細については、「 フォーワーダーと条件付きフォワーダーの解決タイムアウトを参照してください。

複数の DNS サーバー IP を使用して DNS クライアントを構成すると、DNS インフラストラクチャにフォールト トレランスが追加されます。 複数の DNS サーバー IP を追加すると、構成されている唯一の DNS サーバー、基になるネットワーク リンク、または特定のクライアントを DNS サーバーに接続するサポート ネットワーク インフラストラクチャの障害が発生した場合でも、DNS 名を解決し続けられます。 このような名前のエラーは、アプリケーションまたはコンポーネントのハング、依存タイムアウトの有効期限を待機するリソースの停止を引き起こし、運用エラーを直接または間接的に引き起こす可能性があります。

これらの理由から、複数の DNS サーバーを使用して Windows クライアントを構成することをお勧めしますが、構成した DNS サーバーの数によって異なるので、Windows クライアント解決プロセスに注意することが重要です。

1 つの DNS サーバーが NIC で構成されている場合の DNS クライアントの既定の動作

時間 (開始からの秒数) アクション
0 クライアントが DNS サーバーに対してクエリを実行する
1 1 秒後に応答が受信されない場合、クライアントは DNS サーバーに再度クエリを実行します
2 1 秒後に応答が受信されない場合、クライアントは DNS サーバーに再度クエリを実行します
4 さらに 2 秒後に応答が受信されない場合、クライアントは DNS サーバーに再度クエリを実行します
8 さらに 4 秒後に応答が受信されない場合、クライアントは DNS サーバーに再度クエリを実行します
10 さらに 2 秒後に応答が受信されない場合、クライアントはクエリを停止します

DNS サーバーによる名前エラー応答では、プロセスが停止します。応答が負の場合、クライアントは再試行しません。

このシナリオでは、クライアントはタイムアウトする前に同じ DNS サーバーに対して 5 回クエリを実行しようとしています。

単一の DNS サーバーが構成され、Microsoft.com のクエリを実行している Windows DNS クライアント

クライアント上の Ipconfig

IPv4 アドレス。 . . . . . . . . . . : 10.0.0.31(優先)
DNS サーバー. . . . . . . . . . . : 10.0.0.1

ネットワーク トレースの出力

Time                Time Offset    TimeDelta      Source        Dest          Details  

6:23:33.8063812     0.0000000     0.0000000     10.0.0.31     10.0.0.1     DNS:QueryId = 0xA5B4, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:23:34.8026943     0.9963131     0.9963131     10.0.0.31     10.0.0.1     DNS:QueryId = 0xA5B4, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:23:35.8042696     1.9978884     1.0015753     10.0.0.31     10.0.0.1     DNS:QueryId = 0xA5B4, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:23:37.8184257     4.0120445     2.0141561     10.0.0.31     10.0.0.1     DNS:QueryId = 0xA5B4, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:23:41.8394589     8.0330777     4.0210332     10.0.0.31     10.0.0.1     DNS:QueryId = 0xA5B4, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

2 つの DNS サーバーが NIC で構成されている場合の DNS クライアントの既定の動作

時間 (開始からの秒数) アクション
0 クライアントは、リストの最初の DNS サーバーに対してクエリを実行します
1 1 秒後に応答が受信されない場合、クライアントはリストの 2 番目の DNS サーバーに対してクエリを実行します
2 さらに 1 秒後に応答が受信されない場合、クライアントはリストの 2 番目の DNS サーバーに再度クエリを実行します
4 さらに 2 秒後に応答が受信されない場合、クライアントはリスト内のすべてのサーバーに同時にクエリを実行します
8 さらに 4 秒後に応答が受信されない場合、クライアントは一覧内のすべてのサーバーに同時にクエリを実行します
10 さらに 2 秒後に応答が受信されない場合、クライアントはクエリを停止します

いずれかの DNS サーバーによる名前エラー応答により、プロセスが停止します。応答が負の場合、クライアントは次のサーバーで再試行しません。 クライアントは、前のサーバーに到達できない場合にのみ、新しいサーバーを試行します。

Microsoft.com のクエリが構成された 2 つの DNS サーバーを持つ Windows DNS クライアント

クライアント上の Ipconfig

IPv4 Address. . . . . . . . . . . : 10.0.0.31(Preferred)
DNS Servers . . . . . . . . . . . : 10.0.0.1
                                10.0.0.2  

ネットワーク トレースの出力

Time                Time Offset    TimeDelta      Source        Dest          Details

6:28:12.5060330     0.0000000     0.0000000     10.0.0.31     10.0.0.1     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:13.5129164     1.0068834     1.0068834     10.0.0.31     10.0.0.2     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:14.5124283     2.0063953     0.9995119     10.0.0.31     10.0.0.2     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:16.5288823     4.0228493     2.0164540     10.0.0.31     10.0.0.1     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:16.5289050     4.0228720     0.0000227     10.0.0.31     10.0.0.2     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:20.5582196     8.0521866     4.0293146     10.0.0.31     10.0.0.1     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

6:28:20.5582475     8.0522145     0.0000279     10.0.0.31     10.0.0.2     DNS:QueryId = 0x7B1C, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet  

3 つ以上の DNS サーバーが NIC で構成されている場合の DNS クライアントの既定の動作

そのうちのいくつが使用され、タイムアウトは何ですか?

時間 (開始からの秒数) アクション
0 クライアントは、リストの最初の DNS サーバーに対してクエリを実行します
1 1 秒後に応答が受信されない場合、クライアントはリストの 2 番目の DNS サーバーに対してクエリを実行します
2 さらに 1 秒後に応答が受信されない場合、クライアントはリストの 3 番目の DNS サーバーに対してクエリを実行します
4 さらに 2 秒後に応答が受信されない場合、クライアントはリスト内のすべてのサーバーに同時にクエリを実行します
8 さらに 4 秒後に応答が受信されない場合、クライアントはリスト内のすべてのサーバーを同時に再度照会します
10 さらに 2 秒後に応答が受信されない場合、クライアントはクエリを停止します

いずれかの DNS サーバーによる名前エラー応答により、プロセスが停止します。応答が負の場合、クライアントは次のサーバーで再試行しません。 クライアントは、前のサーバーに到達できない場合にのみ、新しいサーバーを試行します。

到達可能なサーバーが 4 番目以上の位置にある場合、実際に試す前に、元のクエリの後に少なくとも 4 秒の遅延が予想されます。 DNS 解決を要求したアプリケーションで、この値より低いアプリケーション解決タイムアウトがある場合、問題が発生する可能性があります。 このサーバーを先ほど照会する唯一の方法は、最初の 3 つの位置に設定することです。

Microsoft.com のクエリを構成した 5 つの DNS サーバーを持つクライアント

クライアント上の Ipconfig

Pv4 Address. . . . . . . . . . . : 10.0.0.31(Preferred)
DNS Servers . . . . . . . . . . . : 10.0.0.1
                                10.0.0.2
                                10.0.0.3
                                10.0.0.4
                                10.0.0.5

ネットワーク トレースの出力

Time                Time Offset    TimeDelta      Source        Dest          Details

9:50:19.4165728     0.0000000     0.0000000     10.0.0.31     10.0.0.1     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:20.4030068     0.9864340     0.9864340     10.0.0.31     10.0.0.2     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:21.4053190     1.9887462     1.0023122     10.0.0.31     10.0.0.3     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:23.4022371     3.9856643     1.9969181     10.0.0.31     10.0.0.1     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:23.4022575     3.9856847     0.0000204     10.0.0.31     10.0.0.2     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:23.4022646     3.9856918     0.0000071     10.0.0.31     10.0.0.3     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:23.4023130     3.9857402     0.0000484     10.0.0.31     10.0.0.4     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:23.4023347     3.9857619     0.0000217     10.0.0.31     10.0.0.5     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:27.4113578     7.9947850     4.0090231     10.0.0.31     10.0.0.1     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:27.4113788     7.9948060     0.0000210     10.0.0.31     10.0.0.2     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:27.4113860     7.9948132     0.0000072     10.0.0.31     10.0.0.3     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:27.4113932     7.9948204     0.0000072     10.0.0.31     10.0.0.4     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet

9:50:27.4114034     7.9948306     0.0000102     10.0.0.31     10.0.0.5     DNS:QueryId = 0xE2A2, QUERY (Standard query), Query  for microsoft.com of type Host Addr on class Internet  

詳細

異なる DNS サーバーが構成された複数の NIC がアクティブになっている場合、クライアント解決の動作は若干異なります。

nslookup などの名前解決ツールを使用する場合、クライアント解決の動作は異なります。