Since netcup does not support any form of DynDNS (time of writing: 01.05.2020), but does provide a clean API I decided to write this tiny tool to overwrite DNS records. Currently only A and AAAA records are supported and need to be defined first. This can be done in the customer control panel.
- Customer ID
- API key
- API password
First install the dependencies:
pip3 install configparserThen use the script with:
python3 updateDynDns.py subdomain.domain.deThe python script fetches the the IPv4 and IPv6 address and uses them to update the A and AAAA record of subdomain.domain.de.
Well this is actually true. Just use cronjobs.