Red Hat Bugzilla – Bug 204122
getnameinfo() does not return EAI_AGAIN when name servers are down
Last modified: 2016-11-24 10:01:17 EST
Created attachment 134947 [details]
Description of problem:
getnameinfo() does not return EAI_AGAIN when the name servers specified in
/etc/resolv.conf are down. Instead it returns EAI_NONAME, which implies that the
lookup was successful but the record didn't exist.
This causes Postfix to bounce mail when it shouldn't. See:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set /etc/resolv.conf to point to an IP address that isn't running a name
server (e.g. "nameserver 127.0.0.1")
2. Run the attached program.
getnameinfo() failed with code -2 (EAI_NONAME)
getnameinfo() failed with code -3 (EAI_AGAIN)
getaddrinfo() once had a similar bug; see #15100
Should be fixed in glibc-2.4.90-26.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.