How do I stop bind dialing up all night?

Ian Phillipps ian at oxygenpartners.demon.co.uk
Fri Feb 18 09:48:31 UTC 2000


>> I have set up Solaris 7 / Bind on an ISDN line. Currently, the line is
>> being brought up by the local BIND (now upgraded to 8.2.2p5) many times a
>> night.
>	See nscd(8) it will refresh its own cache resulting in DNS
>	queries to your nameserver.

Thank you - In fact I discovered this answer (from yourself!) in the
mailing list archives:
http://www.isc.org/ml-archives/bind-users/1999/06/msg00879.html .
I didn't realise the group was a gatewayed mailing list until the
moderator-bot told me.

In that reply, you say:

    This is nscd refreshing its cache.

    Uncomment the following line in /etc/nscd.conf:
	enable-cache            hosts           no

I did this, and Netscape Navigator (4.7) immediately stopped working
(as Willard noted in http://www.isc.org/ml-archives/bind-users/1999/06/msg00910.html)
although other programs had no problems calling the normal
gethostbyname. I assume that Navigator is doing something smart to avoid
its predecessors' stalling on slow gethostbyname calls, and is being too
clever by half.

Anyway, the right fix appears to be:
	keep-hot-count		hosts		0
You can fix the running nscd by doing "nscd -h hosts,0".

Many thanks for pointing me to the nscd. One day I'll look at *all* the
daemons on this machine, and find out what they're doing...

Ian



More information about the bind-users mailing list