Self-hosted dynamic DNS php script to update netcup DNS API from Router like AVM FRITZ!Box
Copy all files to your webspace
create a copy of .env.dist
as .env
and configure:
username
-> The username for your Router to authenticate (so not everyone can update your DNS)password
-> password for your RouterapiKey
-> API key which is generated in netcup CCPapiPassword
-> API password which is generated in netcup CCPcustomerId
-> your netcup Customer IDdebug
-> true|false enables debug mode and generates output of update.php (normal operation has no output)Create each host record in your netcup CCP (DNS settings) before using the script. The script does not create any missing records.
https://<url of your webspace>/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>
<host record that is supposed to be updated>
<first host record that is supposed to be updated>,<second host record that is supposed to be updated>,....
<username as defined in .env file>
<password as definied in .env file>
Published under GNU General Public License v3.0
© Felix Kretschmer, 2021