How to tune the DNS client resolver library through /etc/resolv.conf

Solution Verified - Updated -

Issue

  • If multiple nameservers are configured in /etc/resolv.conf and the first one is unreachable for any reason, each hostname lookup operation slows down
  • How do I shorten the amount of time (timeout) before the resolver fails over to a different DNS server?
  • How do I shorten the amount of attempts the resolver makes before giving up?

Environment

  • Red Hat Enterprise Linux (all versions)

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