Dynamic DNS script for name.com written in Python. It uses the NameAPI to update the IP address of a dns record.
-
Get your API token from nameAPI.
-
User the
recordparser.py
script to fillconfig.json
or manually edit the file. -
To automate the script add it to crontab or whatever you use to launch scripts every x period of time. (remember to run it from path where config.json is located)
-
If using cron:
crontab -e
Insert the following line (changing
path_to_script
) to run it every 2 hours:0 */2 * * * /usr/bin/python3 path_to_script/nameddns.py &>/dev/null
-