Subj : Re: gethostbyname problem To : comp.os.linux From : gordian Date : Thu Jul 29 2004 09:55 am many daemon processes re-read their configuration files on a hangup signal. So it may be worth to try kill -HUP //gordian oldami wrote: > I have a daemon process that runs at startup and uploads > files periodically to a server. The system is setup to > automatically fail over to a modem line when the network > fails. This part works fine. After the modem connects, > the /etc/resolv.conf file is updated with the ISP provided > DNS server addresses. This is working also. > > The problem is that my daemon fails on the gethostbyname call > after this happens. If I stop and restart the daemon after > the modem is connected, it works fine. It acts like the > gethostbyname function reads the resolv.conf file only > once when first called. > > Does anyone know if this is the case? > Is there a work-around, other than stopping and starting > the daemon? > > Many thanks for any help you can offer. > > -- > oldami - oldami@cotse.net > > > .