Red Hat Bugzilla – Bug 55631
resolver doesnt recognice LOCALDOMAIN
Last modified: 2007-04-18 12:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686)
Description of problem:
Starting with rh 7.2, the resolver doesn4t seem to use the LOCALDOMAIN
environment variable longer, instead the searchlist setting in
resolv.conf is used in every case.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set searchlist parameter in resolv.conf to "olddomain.com"
2. export LOCALDOMAIN="newdomain.com"
3. ping www (of course, hosts "www.olddomain.com" and
"www.newdomain.com" must exist)
Actual Results: www.olddomain.com answers.
Expected Results: www.newdomain.com should answer.
This is not an issue of not recognizing LOCALDOMAIN, it has to do with ping
being a SUID binary. LOCALDOMAIN is an unsecure variable which is ignored (or
even eliminated) in SUID/SGID binaries. LOCALDOMAIN works fine for non-SUID
binaries and ping run as root. This is a security feature, not a bug.