Bug 59320 - slow name resolution when not using long DNS name.
Summary: slow name resolution when not using long DNS name.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-05 11:39 UTC by The Lord Voodoo
Modified: 2016-11-24 14:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-03 09:50:49 UTC
Embargoed:


Attachments (Terms of Use)

Description The Lord Voodoo 2002-02-05 11:39:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104

Description of problem:
This is bug was already submitted but was closed with NOT A BUG result.
I think this is a BUG. Adding names and alias to /etc/hosts doesn't solve the
problem. The local domain is not appended to the hostname. AND THIS IS THE
STANDARD NAME RESOLUTION PROCEDURE.

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


How reproducible:
Always

Steps to Reproduce:
1.Try to connect to a xyz.mydomain.* with short name xyz.
2.
3.
	

Actual Results:  Slow name resolution. From 15 to 60 seconds.

Expected Results:  Fast name resolution.

Additional info:

telnet-0.17-20 binaries.

Try to be professional.

Comment 1 Harald Hoyer 2002-02-05 11:57:05 UTC
This is a glibc bug...
hints.ai_family = PF_UNSPEC;
getaddrinfo(hostp, portp, &hints, &res0);
with AF_INET this works without delays...



Comment 2 ed.moses 2002-06-05 19:21:42 UTC
I am experiencing a similar problem with slow name resolution.  The system is
RedHat Linux 7.3.  Providing a fqdn results in instant name resolution, using
only a host without the domain portion takes upwards of 30 seconds.

Our RedHat Linux 7.2 systems are not experiencing this problem.

/etc/resolv.conf contains the appropriate entries for name servers and domain.
/etc/nsswitch.conf specifies hosts: dns files



Comment 3 Ulrich Drepper 2003-04-24 05:39:53 UTC
Try a recent release.  I don't think there are any such problems left.

Comment 4 Ulrich Drepper 2003-10-03 09:50:49 UTC
No reply in almost 6 months.  Closing it a fixed in the current code.

If there are applications showing this problem file bugs with the applications
since they are not using getaddrinfo correctly.


Note You need to log in before you can comment on or make changes to this bug.