getaddinfo() does not query to the secondary name server when the first name server returns REJECT.

Solution Unverified - Updated -


  • The first name server written in /etc/resolv.conf returned REJECT message upon the allow-query directive. At that time, it's expected that the client process tries to query to the next name server. But, it doesn't do that when the client process is using getaddinfo() for the query. On the client, "dns" is configured for hosts nss database in /etc/nsswitch.conf.
  • This doesn't occur in the client process using getaddrbyname().
  • For example, wget and nfs client are using getaddinfo() in it. So, the nfs installation may not work in such a environment.


Red Hat Enterprise Linux 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In