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'
|
||||
|
||||
#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'
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue