ATTENTION!
This project moved to SourceHut!
See https://sfconservancy.org/GiveUpGitHub/
The new home for this project is at https://sr.ht/~lauralani/dyndns-script/
dnf module -y install python39
python3 python3-pip
pip3 install --upgrade pip
pip3 install pytz requests azure-mgmt-dns azure-identity azure-mgmt-resource
config.py
:
secrets = {
'azure': {
"subscriptionid": "",
"tenantid": "",
"clientid": "",
"clientsecret": "",
"dns_rg_name": ""
},
'ovh' : {
'endpoint' : 'ovh-eu',
'application_key' : '',
'application_secret' : '',
'consumer_key' : ''
}
}
# valid entries: ipv6, ipv4, both
domains = {
'azure': {
'subdomain.example.com': 'ipv6',
},
'ovh': {
}
}
basedir = "/root/dyndns-script"
*/10 * * * * /root/dyndns-script/dyndns_update.py --quiet
https://docs.microsoft.com/en-us/python/api/overview/azure/dns?view=azure-python
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?view=azure-python