Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 204122

Summary: getnameinfo() does not return EAI_AGAIN when name servers are down
Product: Red Hat Enterprise Linux 4 Reporter: Jordan Russell <jr-redhatbugs2>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: fweimer
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0210 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 23:06:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test program none

Description Jordan Russell 2006-08-25 18:30:12 UTC
Created attachment 134947 [details]
Test program

Comment 1 Jordan Russell 2006-08-25 18:30:12 UTC
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:
http://groups.google.com/group/list.postfix.users/browse_thread/thread/8df09e10a0eb5393/a7a74aab72a26cd4

Version-Release number of selected component (if applicable):
glibc-2.3.4-2.25

How reproducible:
Always

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.
  
Actual results:
getnameinfo() failed with code -2   (EAI_NONAME)

Expected results:
getnameinfo() failed with code -3   (EAI_AGAIN)

Additional info:
getaddrinfo() once had a similar bug; see #15100

Comment 2 Jakub Jelinek 2006-08-29 06:42:58 UTC
Should be fixed in glibc-2.4.90-26.

Comment 3 RHEL Program Management 2006-08-29 06:45:54 UTC
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
release.

Comment 9 Red Hat Bugzilla 2007-05-01 23:06:34 UTC
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.

http://rhn.redhat.com/errata/RHBA-2007-0210.html