Re: [JunkMail] Re: Finding your dynamic external IP

2003-08-04 Thread Mark Woodson
On Monday 04 August 2003 08:39 am, Technical Director wrote:
 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?

dhclient allows you to execute scripts when it runs.

man dhclient-scripts and see the HOOKS sections, but the gist is that you can 
create an /etc/dhclient-(enter|exit)-hooks script to do whatever you might 
need.

-Mark

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [JunkMail] Re: Finding your dynamic external IP

2003-08-04 Thread Bill Campbell
On Mon, Aug 04, 2003 at 10:07:18AM -0700, Mark Woodson wrote:
...
dhclient allows you to execute scripts when it runs.

man dhclient-scripts and see the HOOKS sections, but the gist is that you can 
create an /etc/dhclient-(enter|exit)-hooks script to do whatever you might 
need.

This is fine so long as your system is directly connected to the public
Internet, but doesn't work if going through a NAT router of some kind.  We
use quite a few LinkSys VPN boxes at client sites because they're cheap,
easy to configure, and reliable.  Unfortunately they're not easy to query
to find status which is why I started using the sshclient service I posted
here last week.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:   camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Freedom from prices is freedom from responsibility. You can simply pass
laws, using the magic wand of government to satisfy your own desires at
unspecified costs to be paid by others.'' -- Thomas Sowell Aug 2000
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]