Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
/ dyndns-script Public archive

dual stack dyndns client with OVH and Azure DNS API

License

Notifications You must be signed in to change notification settings

adorakalb/dyndns-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dyndns-script

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/

Prerequisites

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

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"

crontab

*/10 * * * * /root/dyndns-script/dyndns_update.py --quiet

references

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

About

dual stack dyndns client with OVH and Azure DNS API

Topics

Resources

License

Stars

Watchers

Forks

Languages