Bug 58852 - /etc/hosts entries not honoured before DNS lookups
Summary: /etc/hosts entries not honoured before DNS lookups
Keywords:
Status: CLOSED DUPLICATE of bug 57998
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: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-25 21:24 UTC by Jeremy Laidman
Modified: 2016-11-24 15:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-01-25 21:24:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeremy Laidman 2002-01-25 21:24:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)

Description of problem:
Using telnet or ssh to a host which is named in /etc/hosts causes the
client to perform a DNS lookup for the name.  This includes
"localhost".  host.conf says "order hosts, bind"; nsswitch.conf says
for hosts: "files nisplus dns".  /etc/hosts says
"127.0.0.1 localhost.localdomain localhost".  strace and ltrace tell
me that it's using lib_files, then lib_nisplus, then lib_dns.

When I take dns out of nsswitch, it resolves quickly.


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


How reproducible:
Always

Steps to Reproduce:
1.type "telnet localhost" - takes a long time to respond
2.copy telnet from (say) mandrake 7.2, same command comes back straight away
3.
	

Actual Results:  slow lookup with DNS traffic for entries in /etc/hosts

Expected Results:  instant lookup for entries in /etc/hosts

Additional info:

Comment 1 Jakub Jelinek 2002-01-27 10:25:08 UTC

*** This bug has been marked as a duplicate of 57998 ***


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