Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2012 10:21:44 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        =?iso-8859-1?Q?D=E1nielisz_L=E1szl=F3?= <laszlo_danielisz@yahoo.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: IP -> e-mail
Message-ID:  <44ipf48qrr.fsf@be-well.ilk.org>
In-Reply-To: <1338973608.78319.YahooMailNeo@web162906.mail.bf1.yahoo.com> (=?iso-8859-1?Q?=22D=E1nielisz_L=E1szl=F3=22's?= message of "Wed, 6 Jun 2012 02:06:48 -0700 (PDT)")
References:  <1338973608.78319.YahooMailNeo@web162906.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
D=E1nielisz L=E1szl=F3 <laszlo_danielisz@yahoo.com> writes:

> Let say my computer is connected to the internet with a cable modem and h=
as a dynamic IP address via DHCP. This address is refreshed after every ran=
dom days.
> I want to know the new address even when I'm not home. Like send an e-mai=
l with the new IP, I already know how to do this, but how can I track the e=
vent when my computer receives the new IP?
> Any ideas or same issues?

dhclient-script(8) has provision for running scripts on any DHCP event,
and provides both new and old IP addresses in environment variables. If
they're different, fire off an e-mail.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ipf48qrr.fsf>