Bug 253660 - nscd doesn't properly return the local hostname if 3 chars in length
Summary: nscd doesn't properly return the local hostname if 3 chars in length
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nss   
(Show other bugs)
Version: 4.4
Hardware: All Linux
Target Milestone: ---
: ---
Assignee: Kai Engert (:kaie) (inactive account)
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-08-21 01:01 UTC by csb sysadmin
Modified: 2007-11-17 01:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-21 09:38:45 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description csb sysadmin 2007-08-21 01:01:04 UTC
Description of problem:

[root@tin ~]# ypcat -k hosts | grep "tin "
tin     tin     tin.structbio.vanderbilt.edu
[root@tin ~]# /etc/init.d/nscd start
Starting nscd:                                             [  OK  ]
[root@tin ~]# ping tin
ping: unknown host tin
[root@tin ~]# /etc/init.d/nscd stop
Stopping nscd:                                             [  OK  ]
[root@tin ~]# ping tin
PING tin ( 56(84) bytes of data.
64 bytes from tin ( icmp_seq=0 ttl=64 time=0.018 ms
[root@tin ~]# grep hosts /etc/nsswitch.conf 
#hosts:     db files ldap nis dns
hosts:      files nis dns

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

How reproducible:

Steps to Reproduce:
1. use nis and set hostname in nis hosts file to something like (3 letters):     tin     tin.structbio.vanderbilt.edu
2. set nsswitch.conf as above, try to ping tin, try traceroute, try "hostname -s"
3. turn off nscd then try all of above
Actual results:
when nscd is on I always get unknown hostname. when nscd is off the command succeeds

Expected results:
The command should succeed whether or not nscd is on or off.

Additional info:

Comment 1 csb sysadmin 2007-08-21 01:10:58 UTC
my fault forgot /etc/init.d/nscd reload ..works again, can close notabug

Comment 2 Kai Engert (:kaie) (inactive account) 2007-08-21 09:38:45 UTC
Resolving bug as NOTABUG as requested by reporter.

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