Finding your dynamic external IP

Technical Director trodat at
Mon Aug 4 07:40:24 PDT 2003


AFAIK in 4.#(.#) releases, /var/db/dhclient.leases also has the current IP
in a block format:


lease {
  interface "de0";
  fixed-address X.X.X.X;
  on and on

NOTE: When a new address is assigned it is "appended" to the end of the
leases file.


On Sun, 3 Aug 2003, David S. Jackson wrote:

> If your external IP number changes, as with DHCP, is there a way
> to find out what it currently is?  I was thinking you could keep
> BitchX logged into a chat channel and script a /dns yournick and
> email yourself the results from time to time.   
> How would you do it?
> -- 
> David S. Jackson                        dsj at
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Life is divided into the horrible and the miserable.
> 		-- Woody Allen, "Annie Hall"
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list