Bug 74477 - hosts are looked up in DNS first, despite nsswitch requesting otherwise
hosts are looked up in DNS first, despite nsswitch requesting otherwise
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-24 21:23 EDT by Aleksey Nogin
Modified: 2016-11-24 09:48 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-06 05:22:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Aleksey Nogin 2002-09-24 21:23:12 EDT
In /etc/nsswitch.conf I have the default

hosts:      files nisplus dns

However, for hosts that have both DNS and /etc/hosts entry, the DNS entry is
used and only in a host is not known to DNS, the /etc/hosts entry will be used.

This might have secutiry implications is certain cases, so setting "Severity:
security".
Comment 1 Jakub Jelinek 2002-10-18 16:15:02 EDT
Can you attach a strace output of such program plus what exactly do you have
in /etc/hosts?
Works just fine for me.
Comment 2 Aleksey Nogin 2003-01-06 05:22:50 EST
I no longer can reproduce it, sorry.

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