add multidomain support - broken ipv6

This commit is contained in:
Gitouche 2022-09-26 22:08:43 +02:00
parent d504a6a177
commit e0b7e598e0
2 changed files with 34 additions and 26 deletions

View file

@ -24,7 +24,11 @@ api_endpoint = 'https://dns.api.gandi.net/api/v5'
domain = 'mydomain.tld'
#enter all subdomains to be updated, subdomains must already exist to be updated
subdomains = ["subdomain1", "subdomain2", "subdomain3"]
#your domain and subdomains to be updated, subdomains must already exist to be updated
dnsentries = {
"mydomain.tld": ["subdomain1", "subdomain2"],
"myotherdomain.tld": ["subdomain3"],
}
#300 seconds = 5 minutes
ttl = '300'

View file

@ -125,6 +125,10 @@ def main(force_update, verbosity, repeat):
if repeat and verbose:
print(f'repeat turned on, will repeat every {repeat} seconds')
for key, value in config.dnsentries.items():
config.domain = key
config.subdomains = value
#get zone ID from Account
uuid = get_uuid()