I created this script because my IP address does not change really often and I was bothered by the fact that www.noip.com sends email about your domain name expiring after more than 30 days without a change. To remedy this behavior I decided to write that script and run it into a scheduled job every 10 days.
The script can be run every 20 days and it will force your domain name to update with a wrong IP address and a moment after it will update it with the proper IP address. This will bypass the expiration rule.
*Requirements
This little script requires the requests
python module from http://docs.python-requests.org/en/latest/
git clone git@github.com:drivard/update-noip.git
cd update-noip
pip install -r requirements.txt
# or
pip install -U requests
# or
easy_install requests
- Clone the script
git clone git@github.com:drivard/update-noip.git
- Edit the script with your username, password, hostname and ip addresses bag.
IPS_BAG = ["152.25.65.88", "154.58.69.25", "45.255.6.54"]
HOSTNAME = "yourhostname.no-ip.com"
USERNAME = "username"
PASSWORD = "password"
To run the script once you edited the parameters.
python update_noip.py
15 3 */10 * * /usr/bin/python /<path_to_python_script>/update_noip.py >> /dev/null 2>&1