My only suggestion is to look into whichever DHCP product is being used on your firewall, since it appears that a lot (if not most) DHCP clients these days take care of a lot of the functionality you just described your script doing. Specifically:
>(cuz it's got to run when an IP changes anyways) If you're using dhclient, modify the /sbin/dhclient-script script. If you're using dhcpcd, modify the /etc/dhcpc/dhcpcd_e.exe script. Each of the above are examples of a script that is run whenever an IP change occurs (depending on which DHCP client is used). Some also detect if there _hasn't_ been a change, useful if you don't want to trigger a DNS update just because you rebooted your system (but why would you need to reboot your Linux system anyways?). ;-) >The script would retrieve the >current IP, check it against a previously stored IP (if available), and if >it's different run the NSUPDATE routines, then store the IP for future >reference. Exactly what some of them do. Worst case, if they won't allow you to trigger your script, you could plunk your script in /etc/rc.firewall and the client can be configured to fire that instead. You may have to do some Googling around to determine the exact variables used for each client (as opposed to just checking the man page), but info is out there. You'll still have to script the NSUPDATE routines, but at least your hands would be free of scripting the DHCP stuff. Unless that's what you wanted. ;-) Curtis. -----Original Message----- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:46 AM To: '[EMAIL PROTECTED]' Subject: RE: (clug-talk) Dynamic DNS help? Nope, no automagic update when DHCP does the IP change. However, I'm planning on writing a simple script to do the NSUPDATE (when time permits). I'll probably call the script from my Firewall configuration script (cuz it's got to run when an IP changes anyways). The script would retrieve the current IP, check it against a previously stored IP (if available), and if it's different run the NSUPDATE routines, then store the IP for future reference. For the record though, I still have the same IP as when we were working through this, so I think manual intervention every few months would probably suffice in my case. I'll post the script here when I get it done, so anyone can take a look and/or use it. Shawn -----Original Message----- From: Curtis Sloan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:35 AM To: '[EMAIL PROTECTED]' Subject: RE: (clug-talk) Dynamic DNS help? Hey Shawn, did you ever get DHCP to automatically update your external IP addy to the DNS servers? I need resolution!!! (no pun intended) :-D Curtis. -----Original Message----- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Monday, February 10, 2003 5:59 PM To: '[EMAIL PROTECTED]' Subject: RE: (clug-talk) Dynamic DNS help?
