Red Hat Bugzilla – Bug 476568
LOCALDOMAIN environment variable no longer works in F10 with nscd running
Last modified: 2008-12-29 16:02:34 EST
Description of problem:
If you set the environment variable LOCALHOST it is supposed to override the system default search path. It doesn't, you simply get the system search path from resolv.conf if nscd is running.
Steps to Reproduce:
1. Ensure nscd is running. Then Set
export LOCALDOMAIN="notsearch.com. orginaldomain.com."
and only have
, in resolv.conf
2. telnet to say a webserver "testwww" on a machine that is only in notsearch.com
3. telnet testwww 80
On F10 you get,
telnet: testwww: Name or service not known
On F9 you get,
telnet testwww 80
Connected to testwww
Escape character is '^]'.
Works if nscd is stopped. Actually there is a more subtle bug (maybe a feature) in earlier nscds, which is probably still there in F10 if this bug was not masking it. I've just noticed. Before consulting the LOCALDOMAIN flag it seems to always consult nscd's system default path before trying LOCALDOMAIN. This seems to be in RHEL 4 and 5 so I'll probably log a separate bug report on that.
That's the expected behavior.
Even if it is the expected behavior I added a work-around which can help in some situations. It will fail if nscd is running because ordinary processes cannot perform lookups.
It will appear in the next build.