Update example and README.md

This commit is contained in:
Gitouche 2022-09-27 21:08:20 +02:00
parent b70621b018
commit fcf0b5f625
2 changed files with 14 additions and 5 deletions

View file

@ -54,8 +54,20 @@ http://doc.livedns.gandi.net/#api-endpoint
api_endpoint = 'https://dns.api.gandi.net/api/v5' api_endpoint = 'https://dns.api.gandi.net/api/v5'
``` ```
##### domain ##### dnsentries
Your domain for the subdomains to be updated Your domains and subdomains (IPv4 and IPv6) to update
```
dnsentries = {
"mydomain.tld": {
"ipv4": ["subdomain1", "subdomain2"],
"ipv6": ["subdomain3v6"],
},
"myotherdomain.tld": {
"ipv4": ["subdomain4"],
},
}
```
##### subdomains ##### subdomains

View file

@ -20,9 +20,6 @@ https://dns.api.gandi.net/api/v5/
''' '''
api_endpoint = 'https://dns.api.gandi.net/api/v5' api_endpoint = 'https://dns.api.gandi.net/api/v5'
#your domain with the subdomains in the zone file/UUID
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
#your domain and subdomains to be updated, subdomains must already exist to be updated #your domain and subdomains to be updated, subdomains must already exist to be updated
dnsentries = { dnsentries = {