Automatically update your DDNS domains (DNSMadeEasy) only when IP has changed and maintain a log of updates!
Some of us don't like to install unnecessary programs and have them take up residence in the memory. Updating DDNS on DNSMadeEasy shouldn't have to be one. If you're one of us, you might want to keep reading.
These automatic update batch scripts were tested on Windows XP, NT, 2000 Server, and Server 2003. Please drop me a note if you happen to make this run on other versions of Windows or DOS. Just follow the procedure and modify it to suit your needs. It may be somewhat difficult for some folks, so I've given detailed instructions here.
The following procedure assumes that you're running this from a machine that you want your domain to point to. This should work fine for DSL/Cable modem users or those behind firewall. Once you're done with the set up prescribed here, you should have an automated batch files which updates DDNS only when necessary, keeps a log of those updates and periodically delete that log to keep it from growing too big.
Note: accountname is your email address you use to log into DNSMadeEasy and accountpw should be replaced with your password. And if you're using Windows XP, you probably have your system files under C:\WINDOWS and not C:\WINNT.
Download a Windows version of Lynx (an open source text-based
browser) and install it. Or if you don't want to go through the installation
procedure you can download it from
here and unzip it to
your C:\WINNT directory.
Create update-ddns.txt text file containing
following single line of command and save it under C:\WINNT. Make
sure you don't have any extra lines after this line.
lynx -dump -lss=lynx.lss http://www.dnsmadeeasy.com/servlet/updateip?username=accountname^&password=accountpw^&id=%1^&ip=
Please note that above command should be a single line without any carriage returns (or Enter key). Make sure when you're creating it with Notepad, you don't create an extra line at the end of the file.
Once you have created all of the necessary files, you should be able to update your DDNS of your domain by just running update-ddns.bat. There are probably countless possibilities on how you actually want to run it, but here are some recommendations:
There should be nothing else to do except to check ddns.log time to time, or add, modify, or remove domain names from update-ddns.bat file.
Are you sure you don't have any extra lines in file
update-ddns.txt? The script tries to append current IP address to
the EOF (end of file), so EOF must be at the end of the first line. You can check to see if you have any extra line
*after* "...^&ip=" or not by doing this at the command
Go to your C:\WINNT or C:\WINDOWS directory and type ddns.log. Does
it say "success" anywhere? Are you sure it isn't working?
Not updating quick enough for you? Did you check TTL value for your
It still doesn't work for you? Please let me know at email@example.com.
If you carefully followed above procedure and it still doesn't work for you, please let me know at firstname.lastname@example.org. Or just drop me a note.
Here is a message board if you'd like to correspond with other users.
Last updated on May 5, 2004 by Michael Han
May 5, 2004 - Modified upddns.bat and update-ddns.bat files to update only when IP has changed and clarified some explanations.
April 31, 2004 - First online version with automatic update, simple log and delete log