On Tue, Jul 15, 2003 at 03:00:59AM -0400, Bill Mullen <[EMAIL PROTECTED]> wrote: > On Mon, 14 Jul 2003 [EMAIL PROTECTED] wrote: > > > > FWIW, it should also be possible to have the firewall fix-up script > > invoked automatically when the "dhcpcd" daemon sees the new IP address. > > It is supposed to be able to invoke an external program when that > > happens. I've never tried it, though. > > It works, too. On RH/Mandrake systems (at least), you just name the script > /etc/dhcpc/dhcpcd-<interface>.exe, and it will run whenever dhcpcd gets a > new IP address on <interface>. I use it to update my system's "A record" > on ZoneEdit's DNS servers, and then mail me my new IP address.
On my RH9 system I use /etc/dhclient-enter-hooks to modify my system's /etc/resolv.conf file to my liking. You can also use /etc/dhclient-exit-hooks (see the dhclient-script man page). -- Bob Bell <[EMAIL PROTECTED]> ------------------------------------------------------------------------- "Good judgement comes from experience, and experience comes from bad judgement." -- Frederick Brooks _______________________________________________ gnhlug-discuss mailing list [EMAIL PROTECTED] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss