Red Hat Bugzilla – Bug 99463
dialup interacts badly with nscd
Last modified: 2007-04-18 12:55:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131
Description of problem:
I'm running nscd since I'm on an "ldap based" network, sometimes I need to
dialup other networks, using redhat-control-network to dial. now, ppp needs, and
gets dns servers for this dialup session, however when nscd is running it
doesn't always pick up that /etc/resolv.conf changed. Sometimes it does,
sometimes it does not.
It always should imho.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run nscd to cache userinfo/hostnames etc.
2. dial up to another host so /etc/resolv.conf changes.
3. resolving hosts should now instantly use the new dns servers in /etc/resolv.conf
Actual Results: It doesn't always pick up the changed /etc/resolv.conf
Expected Results: It should pick up the changed /etc/resolv.conf
Workaround is to manually restart nscd
reassigning to nscd...
It should be the task of whatever script modifies resolv.conf to service nscd condrestart
Things changed, now nscd -i hosts is the recommended way to ask nscd
to reread resolv.conf.