From fcf0b5f62544f396507403405d83967de7f5892e Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Tue, 27 Sep 2022 21:08:20 +0200 Subject: [PATCH] Update example and README.md --- README.md | 16 ++++++++++++++-- src/example.config.py | 3 --- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index be3138b..bdb0ed8 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,20 @@ http://doc.livedns.gandi.net/#api-endpoint api_endpoint = 'https://dns.api.gandi.net/api/v5' ``` -##### domain -Your domain for the subdomains to be updated +##### dnsentries +Your domains and subdomains (IPv4 and IPv6) to update + +``` +dnsentries = { + "mydomain.tld": { + "ipv4": ["subdomain1", "subdomain2"], + "ipv6": ["subdomain3v6"], + }, + "myotherdomain.tld": { + "ipv4": ["subdomain4"], + }, +} +``` ##### subdomains diff --git a/src/example.config.py b/src/example.config.py index ea2b027..b672010 100644 --- a/src/example.config.py +++ b/src/example.config.py @@ -20,9 +20,6 @@ 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 #your domain and subdomains to be updated, subdomains must already exist to be updated dnsentries = {