dhsupdate
dhsupdate is a shell script which automates the maintenence of a dynamic hostname from DHS. It was written on Debian GNU/Linux, but can run on any system with a Bourne-like shell, basic shell utilities, and Lynx. It was ported over from the 'mldyn' script I previously wrote for Monolith.
Information about the DHS project and what you might want to use this script for is available at the DHS FAQ.
dhsupdate is free software. This means there are no warranties on this program, not even the the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I disclaim any responsibility for burns you may incur as a result of spilling this program into your lap. I will support it by email however.
Installation
-
Download dhsupdate-0.4.tar.gz here and unpack it. The README file or 'dhsupdate -?' will explain the availible options.
-
As root, run the command 'make install'. You can edit the Makefile to change where the script and its config file will go.
-
Edit the file /etc/dhsupdate.conf, and fill in your DHS account info. Note: if someone else has root or physical access to your machine, they could read your password. Be careful.
Version History
- 0.4
-
Added some more options. Or something. It's been two years since I did it so I don't really remember.
- 0.3
-
Fixed a bug with specifying an IP manually, added a -h (help) option, and cleaned up some of the examples.
- 0.2.1
-
Updated hostname in the string we search for to determine if a successful update occured. No changes to the code.
- 0.2
-
Some minor quoting and documentation fixes. While I still don't use a dial-up connection, I have found myself needing to run this script again, and I haven't been able to uncover any bugs.
- 0.1
-
This code was based on my old script mldyn for the now-defunct Monolith project. I changed the interface slightly by using a config file that gets sourced inside the script, and made general code cleanups (It wasn't that bad for something I wrote over 2 years ago...)