This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gethby* and dynamic DNS assignment


>>>>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]