Le 04/06/2003 01:27, « Ryan D. Egeland » <[EMAIL PROTECTED]> a écrit :

> I'm trying to have a script run only when my DHCP address (for my cable modem)
> changes, in order to update my Dynamic DNS provider.  There is some reference
> to a file called "dhcpcd-eth0.exe" doing that, but I don't know if it works
> with RedHat.  I'm using RedHat 9, with the default dhcp client installed.
> 
> Anyone know how to make a script execute whenever the IP address changes?  I
> can easily update DNS from within the script.


*** I'm using that script. I also remember answering several times this same
question in the RH 6.x and 7.x days so I advice you to search the RH
archives and try to find my mails. It was a long mail so I want to avoid
writing it again.

I'll just give you the lead while you search for my message.
"dhcpcd-eth0.exe" is executed by DHCP when it gets a new IP address. At
least, it used to do that. In the good old days, you also had to stop RH
using the pump program by editing the ifup script.

The "dhcpcd-eth0.exe" is an empty shell script which will execute whatever
command you want in order to update you DynDNS account.

I remember the whole setup being a bit tough, especially the part where I
had to avoid the DynDNS being hit by continuous updates when the IP
**didn't** change, like when you put the script in a crontab to execute
every 1 minute. Please DON'T DO THAT! You might get unsubscribed. It puts a
big strain on the DynDNS servers.

Anyway, try to have a look at your DynDNS's site, nowerday's you might find
binaries ready to use.

--
Cheers,
Zoran.

"Home is where you hang your @"


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to