add multidomain support - broken ipv6
This commit is contained in:
parent
d504a6a177
commit
e0b7e598e0
|
@ -24,7 +24,11 @@ api_endpoint = 'https://dns.api.gandi.net/api/v5'
|
||||||
domain = 'mydomain.tld'
|
domain = 'mydomain.tld'
|
||||||
|
|
||||||
#enter all subdomains to be updated, subdomains must already exist to be updated
|
#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
|
#300 seconds = 5 minutes
|
||||||
ttl = '300'
|
ttl = '300'
|
||||||
|
|
|
@ -125,6 +125,10 @@ def main(force_update, verbosity, repeat):
|
||||||
if repeat and verbose:
|
if repeat and verbose:
|
||||||
print(f'repeat turned on, will repeat every {repeat} seconds')
|
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
|
#get zone ID from Account
|
||||||
uuid = get_uuid()
|
uuid = get_uuid()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue