"nslookup" or "host" command do not always return, especially when one DNS server in /etc/resolv.conf is unreachable

Solution Verified - Updated -

Issue

  • When executing a host or nslookup, the command doesn't always return, especially when one of the DNS servers specified in /etc/resolv.conf is not responding

    $ host somehost
    [...]
    ^C
    

Environment

  • Red Hat Enterprise Linux 7 and 8
    • bind-utils-9.11

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