Crontab-ready Python script to update AutoDNS / InternetX domains
✓ Published0🌍 Public
BBastiTee
Last edited Feb 27, 2021
Created on Feb 27, 2021
This example shows a crontab-ready Python script that automatically updates a domain’s IP address with the AutoDNS/InternetX gateway. It retrieves the current public IP from `http://whatismyip.akamai.com/`, compares it to the stored last IP, and exits if unchanged. Using the `requests` library for HTTP calls and `click` for CLI options, it constructs and sends XML requests via the `xml.dom.minidom` module to fetch the zone state and apply the new IP. Logging via the `logging` module tracks progress and errors.
AI-generated description