Subj : gethostbyname problem To : comp.os.linux From : oldami Date : Wed Jul 28 2004 03:36 pm 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 .