This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: gethby* and dynamic DNS assignment
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: gethby* and dynamic DNS assignment
- From: Andreas Jaeger <aj at suse dot de>
- Date: 09 Jan 2001 17:30:26 +0100
- Cc: libc-alpha at sources dot redhat dot com, grimmer at suse dot de
- References: <howvc4d9b2.fsf@gee.suse.de> <m3ae901z87.fsf@otr.mynet.cygnus.com>
>>>>> Ulrich Drepper writes:
> Andreas Jaeger <aj@suse.de> writes:
>> I decided to handle this problem with the following patch. What do
>> you think? This leads unfortunatly to a stat with every gethostby*
>> call.
> And this really is no option. Dynamic update of IP address
Why is it no option? Because of the extra stat? If you don't use
nscd, the cost for the extra stat is small in comparision to the dns
lookup.
> information has to happen differently. Either update named
> dynamically or do something like restarting nscd. If you update the
This doesn't change much. Now you change the problem from wwwoffle to
nscd - and the only solution again is a restart. A restart of
wwwoffle would also fix the problem but that's not desired, this will
lead to a short time without wwwoffle/nscd.
> input files and then restart nscd there is never a time when the new
> information is not available. It might only be that some programs are
> not using nscd.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj