Translated message

A translation of this page exists in English.

DNS オプションのタイムアウト

Solution In Progress - Updated -

Issue

/etc/resolv.conf に 2 つ以上の DNS サーバーが設定されていて、最初のサーバーに障害が発生した場合に、2 番目の DNS サーバーに切り替えるデフォルトのタイムアウトは 5 秒です。
解決に DNS を使用するコマンドのタイムアウトが短い場合、アプリケーションはエラーになります。

/etc/resolv.conf にオプション timeout:1 を追加してデフォルトのタイムアウトを短縮しても、ローカル DNS リゾルバーからは認識されません。

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content