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. How reproducible: Everytime Steps to Reproduce: 1. Ensure nscd is running. Then Set export LOCALDOMAIN="notsearch.com. orginaldomain.com." and only have search orginaldomain.com. , in resolv.conf 2. telnet to say a webserver "testwww" on a machine that is only in notsearch.com 3. telnet testwww 80 Actual results: On F10 you get, telnet: testwww: Name or service not known On F9 you get, telnet testwww 80 Trying 192.168.5.47... Connected to testwww Escape character is '^]'. Additional info: 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.