gethostbyname problem

From: oldami (oldami-no-spam_at_cotse.net)
Date: 07/28/04


Date: Wed, 28 Jul 2004 14:36:06 -0400 (EDT)

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


Relevant Pages

  • help: howto to make the machine secure!!
    ... I'm about to loose my nerves because the data center where my server ... I commented out all rpc services as it is said to be insecure. ... # pass the given daemon an AF_INET6 socket. ... # RLOGIND - rlogin daemon (BSD protocols) ...
    (comp.unix.solaris)
  • Re: [PHP] Re: converting a vid with ffmpeg - howto do progress bars?
    ... the encoding as a kind of daemon process/cron job that runs on ... page the user goes to that sees their "job progress". ... kill your server by performing multiple encodes at the same ... time - with the cron job/daemon approach you can control how ...
    (php.general)
  • Re: [PHP] Re: converting a vid with ffmpeg - howto do progress bars?
    ... the encoding as a kind of daemon process/cron job that runs on ... page the user goes to that sees their "job progress". ... kill your server by performing multiple encodes at the same ... time - with the cron job/daemon approach you can control how ...
    (php.general)
  • pam_ldap tls/ssl connection failed: SSL3_GET_RECORD:wrong version number s3_pkt.c:297
    ... I would like to get solaris 8 machine to authenticate ... between the client and the server. ... daemon: activity on 1 descriptors ... TLS trace: SSL_accept:before/accept initialization ...
    (SunManagers)
  • Re: linux mini projects for college
    ... An nntp client that runs as a daemon 24/7, ... you select articles to be downloaded and tell the daemon to ... Daemon should be able to open up one job queue for each nntp server it ...
    (comp.os.linux.misc)