DynDns keep an active account with autologin

DynDns now requires users with free accounts to login every 30 days in order to keep their accounts... painful. Here is how to overcome the manual login using a scheduled auto-login script developed by kopf (thanks!).

1. Install python-mechanize which is a python module for navigating through web forms. On Ubuntu/Debian this can be done as follow:
sudo apt-get install python-mechanize

2. Create a new python script:
vi chmod 555 dyndns-autologin.py

with the contents as provided by kopf here:

Which is kindly made available to Kopf for use under the Apache licence here.

3. Make the script executable and read only
chmod 555 dyndns-autologin.py

4. Create and store your login details in settings.py
vi settings.py

In order to login to DynDns the script needs your credentials, they are stored in the clear, unencrypted. I do not mind this as I use a unique password for DynDns and I consider DynDns as a 'low value' service from a security perspective so if the password is compromised I personally would not be worried. 

with the contents:
USERNAME = 'your DynDns username'
PASSWORD = 'your DynDns password'

You may want to set the settings file to not be readable using a chmod 000 mask. This may cause issues when creating a scheduled job with cron see step 6, depending on your user account setups.

5. Test the script by typing into the terminal:
python /pathtoscript/dyndns-autologin.py

If the script is successful you should see the following outputs:
 Logged in successfully.

6. Set the script up to log in on a weekly basis using job scheduler cron:
crontab -e

Select your preferred editor and add the following line to create your cron job
@weekly /pathtoscript/dyndns-autologin.py #DynDns auto login

https://github.com/kopf/dyndns-autologin thanks Kopf


  1. Enhance business standards- By using the Payroll Time Tracker you can focus better on your work, save your precious time and thereby improve the standard and productivity level of your business.

  2. best fantasy app Fantasy Power 11 if you have a good knowledge of Cricket you Can earn real Money or Paytm Cash. Download Link And Review If You have Skills related to Cricket Football Kabaddi Basketball so you can Play Fantasy Cricket in Fantasy Power11 and win Real Cash.

  3. Thanks for sharing your info and landscape image. I truly appreciate your efforts and I will be waiting for your next post thank you once again.
    Do check
    Paypal Login
    gemini login

  4. Canon Printer Wireless Setup proves to be efficient in the sense of time and place as it saves both of them. One can give any type of print from any corner of the wifi surveillance. There are many models of the canon printer wireless setup that supports the wireless printing service. Due to the rapid availability of routers and development in the wireless connection canon has built its printer to stand in the topmost position in the global printer market. To know how the wireless printer technology works, follow all the guidelines as well as the setup process to get a wireless printer.
    canon ij setup
    Canon Printer WirelessSetup
    Canon Printer Drivers
    Canon printer driver download

    Canon MX492 Printer Setup

  5. I am very thankful for such a wonderful blog. It's very interesting to read and easy to understand. Thanks for sharing. I will visit your blog daily because I know. It may be very beneficial for me. If you want to Fix QuickBooks Online Error Code 101 please contact quickbooks team for instant help.

  6. What a nice blog as it is so helpful and informative. Keep posting blogs like this. If you need any information about Digital Marketing. Then click the link PPC Course in Delhi