Unless you've already found what you were looking for, I just found this on
DYNDNS.org site:
 ftp://burry.dyndns.org/pub/ddclient/ddclient.tar.gz

The following may be what you need which is only a portion of the script:
---------------------------------------------------_____________
USING DDCLIENT WITH dhcpcd-1.3.17

If you are using dhcpcd-1.3.17 or thereabouts, you can easily update
your DynDNS entry automatically every time your lease is obtained
or renewed by creating an executable file named:
  /etc/dhcpc/dhcpcd-{your-interface}.exe

In my case, it is named dhcpcd-eth0.exe and contains the lines:
  #!/bin/sh
  logger -t dhcpcd IP address changed to $1
  /root/bin/ddclient -proxy fasthttp.sympatico.ca -wildcard -ip $1 | logger -t
ddclient
  exit 0

Other DHCP clients may have another method of calling out to programs
for updating DNS entries.
-------------------------------------------------------------------------------

$Header: /home/paul/src/ddclient-1.1/RCS/README,v 1.1 1999/08/03 03:10:14 paul
Exp $

Works well for me !



Jonathan Hutchins wrote:

> I have a cable modem that connects to my RedHat Linux 5.2 system through a
> second network card.  The interface is configured via DHCP, and configures
> on boot.  I would like to run a script that would output the IP address
> assigned by DHCP so I can post it to a server, and I'd like it to run any
> time dhcp has to re-initialise the card.
>
> This is the same thing I was doing with diald, when I had called a  script
> from /etc/ppp/ip-up.local.  Where should the script be called from since
> it's eth1 at boot with dhcp?

--
Simon Gendreau


Reply via email to