Skip to content

Commit a3b4e88

Browse files
committed
Updated README and config PAT notes
1 parent ffd1237 commit a3b4e88

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ Use Gandi LiveDNS API to update DNS records with a dynamic IP.
44

55
#### Prequisites
66

7-
- Go to your Gandi account security page: https://account.gandi.net/en/users/USER/security (where USER is your username)
8-
- Generate your API key, to be copied into your configuration file
7+
- Generate a Gandi Personal Access Token (PAT) via either https://account.gandi.net/en/users/USER/security (where USER is your username), or Gandi Dashboard > Organizations > Manage > Create a token :
8+
- Choose a mandatory duration (Gandi allows one year max)
9+
- Give access at least to the resource `DNS configuration`
910
- Python 3.x
1011

12+
##### Note
13+
14+
I recommend creating a repeating alarm in a calendar to be sure to renew the PAT before it is revoked.
1115

1216
#### Installation
1317

@@ -52,7 +56,7 @@ records = @,www
5256
```
5357

5458
#### Running
55-
_Note: `dyn_gandi` can be substituted with `python dyn_gandi.py` if the former does'nt work._
59+
_Note: `dyn_gandi` can be substituted with `python dyn_gandi.py` if the former doesn't work._
5660

5761
Display help :
5862
```shell

config.ini-dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[api]
22
url = https://api.gandi.net/v5/livedns/
3-
; Generate your Gandi Personal Access Token via Gandi Dashboard > Organizations > Manage > Create a token
3+
; Generate a Gandi Personal Access Token (PAT) via either :
4+
; - URL : https://account.gandi.net/en/users/<user>/security
5+
; - Gandi Dashboard : Organizations > Manage > Create a token
46
key =
57

68
[dns]

0 commit comments

Comments
 (0)