Download and installation
Latest version is Oct 26, 2008.
Download the myname script, place it in a directory included in your PATH. A suitable location is /usr/local/bin/ for Unix and /usr/bin for Mac OS X. Please ensure the executable bit is set.
Also download the configuration file myname.conf and place it under /etc/. Then edit this file to insert your username and password and the hostname(s) to update.
$ sudo mv myname /usr/local/bin/ $ sudo chmod a+x /usr/local/bin/myname
Go to http://dyndns.it/ if you need to register a new account. Edit myname.conf with a plain text editor. Save and complete install with:
$ sudo cp myname.conf /etc $ sudo chown root:wheel \ /usr/local/bin/myname /etc/myname.conf
Note: root:wheel is the user and group suitable for Mac OS X and BSD's. Linux usually uses root:root.
Manual usage and testing
At the shell prompt just type:
You should see a response similar to this:
You can then try to resolve your host with:
$ host YOUR_HOSTNAME
If all goes well you should have receiveid a message like:
YOUR_HOSTNAME has address YOUR_IP
Automatic usage with modems
As root, edit /etc/ppp/ip-up and add the myname command at the end on a line by itself. This way your IP will be registered every time your ADSL or PTSC connection is brought up by your modem. If this file does not exist please create it as root and ensure it is executable. This is the case with Mac OS X.
You can use these commands:
$ sudo echo myname >>/etc/ppp/ip-up $ sudo chmod a+x /etc/ppp/ip-up
In Unix installations where sudo is not available, you can use
to become root. Then issue the same commands as above without the sudo prefix.
Automatic usage with routers
- Oct 26, 2008: first version.