Gandi LiveDNS smart home integration, free and open source

Dynamic DNS with Gandi LiveDNS: your domain names follow your home’s public IP.
Overview
This integration turns Gladys into the dynamic DNS client of your domains at Gandi. Your internet provider may change the public address of your home at any time; with this integration, a name of your own domain (home.example.com) always points at it, so you can reach your home, a NAS or a VPN by name. Gladys checks every 5 minutes by default and only writes a record when it does not hold the public address.
Up to ten names: full names, the apex of a domain (example.com) or a wildcard (*.example.com), following the IPv4 address (A record), the IPv6 address (AAAA record) or both. Each name becomes a device with its addresses, its status and the number of changes; scenes can react when the public address changes or an update fails, and a dashboard widget shows everything at a glance.
It uses the official LiveDNS API of Gandi with a personal access token. At each check it reads the record at Gandi: a missing record is created, a record changed elsewhere is put back. It is a cloud integration: the public address is read on echo services (ipify, icanhazip, ident.me), and the records are read and written at api.gandi.net.
Prerequisites
- Gladys Assistant 5.3.0 or later.
- A domain at Gandi that uses the LiveDNS name servers (the default at Gandi: domain → DNS records shows the records).
- A personal access token (Gandi website → your account → Authentication options → Personal Access Tokens → Create a token): choose the organization of the domain, restrict it to the domain, and tick the permission to manage the technical configuration of domains. Copy the token: it is shown only once. Tokens expire: note the end date and renew it before.
- For IPv6, an IPv6 connection reaching the Docker of Gladys.
Configuration
| Field | What to enter |
|---|---|
| Personal access token | The token created on the Gandi website. |
| Names | Separated by commas, ten at most: home.example.com, example.com (apex), *.example.com. |
| Records to update | IPv4 (A, default), IPv6 (AAAA), or both. |
| TTL of the records | 5 minutes (default) to 3 hours: how long resolvers keep the address. |
| Check | Every minute, 5 minutes (default), 15 or 30 minutes. |
| Language of the texts | Device names, status and scene summaries. Automatic follows your dashboard. |
Press Test the connection: every record is read at Gandi (and written if needed), and the answer shows, per record, "already 203.0.113.7", the new address, or the error. Diagnostic writes what the integration knows to the Logs tab, token hidden.
The integration owns the records of these names: their former values are replaced by the public address alone. Do not list a name that holds other addresses on purpose (a round robin, a server elsewhere).
Usage
Devices
In Discover, create one device per name:
| Feature | Content |
|---|---|
| IPv4 address (A record) | The address the A record holds at Gandi. |
| IPv6 address (AAAA record) | The same for IPv6, when it is followed. |
| Gandi status | "Up to date", "Waiting for the first check" or the last error, in words. |
| Address changes | The number of updates written; its history shows when they were. |
Dashboard widget
Gandi LiveDNS shows the public IPv4 (and IPv6), then each record with its status, the time of the last check and an Update now button.

Scenes
Triggers:
- Public address changed: with the former and the new address; filter: IPv4 or IPv6.
- Record updated: a record was written with a new address (also when it had been changed elsewhere); filters: name, IPv4 or IPv6.
- Update failed: once per error, not at every check; filters: name, error (token refused, no right on the domain, domain not on LiveDNS, change refused, Gandi unreachable, public address unknown…).
Actions:
- Update now: one name or all, without waiting for the next check. Outputs the counts and a summary. It never fires a trigger.
- Read the public address: the public IPv4 and IPv6, to put in a message.
Examples:
- "Public address changed" → send "New address: {{triggerEvent.data.ip}}" to your phone.
- "Update failed", error "token refused" → notify yourself to renew the token.
- Every morning → "read the public address" → write it to a log or a message.
Transport
Cloud only: the public address is read on api.ipify.org, ipv4.icanhazip.com and v4.ident.me (the next one when one fails; their IPv6 twins for IPv6), and the records are read and written at api.gandi.net over HTTPS with your token. Those services only see the address of your home. Nothing else leaves your network.
Troubleshooting
- The integration stopped after an error: a refused token, a domain without rights, a domain not on LiveDNS or a refused change stops the updates (of everything, or of that name) instead of asking Gandi again and again. Fix the settings, or press Test the connection once the problem is fixed at Gandi: it tries again at once. A restart does not lift the stop.
- Token refused (expired?): the token is wrong, expired or deleted. Create a new one and paste it.
- No right on this domain: the token works but is not allowed to change this domain: edit the token on the Gandi website (domains and the permission to manage the technical configuration).
- Domain not on Gandi LiveDNS: the token does not see a zone that holds this name. Check the spelling, that the domain is in the organization of the token, and that it uses the LiveDNS name servers.
- Change refused by Gandi: Gandi refused to write the record, often because the name already has a CNAME record. Remove the CNAME, or choose another name.
- Gandi error, retrying shortly: Gandi failed (HTTP 5xx: nothing for 5 minutes) or limited the requests (HTTP 429: more than 1 000 a minute from your address, other programs included; nothing for 15 minutes).
- Public IPv6 unknown: the Docker of Gladys has no IPv6 access to the internet. Keep IPv4 only.
- To report a problem, give the versions of Gladys and of the integration and the lines of the Diagnostic button.
Configuration settings
These are the settings Gandi LiveDNS asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Gandi LiveDNS | section | No | Keeps names of your Gandi domains (home.example.com) pointed at the public address of your home, even when your internet provider changes it. The domain must use the Gandi LiveDNS name servers. On the Gandi website, create a personal access token (Account → Authentication options → Personal Access Tokens) limited to the domain, with the permission to manage the technical configuration of domains, then enter it with the names to keep up to date and press "Test the connection". The token stays in Gladys and only goes to Gandi. Tokens expire: renew it before its end date. Not affiliated with Gandi. |
| Personal access token | secret | Yes | Shown once when it is created on the Gandi website. It needs the permission to manage the technical configuration of domains (DNS), on the domains of the names below. |
| Names | string | Yes | Separated by commas, ten at most: full names (home.example.com), the domain itself for its apex (example.com), or a wildcard (*.example.com). Each record is created when missing, and its former addresses are replaced. |
| Records to update | select | No | IPv6 needs an IPv6 connection reaching the container (Docker networks are often IPv4 only). |
| Options | section | No | |
| TTL of the records | select | No | How long resolvers keep an address. Short: a new address is seen sooner. |
| Check | select | No | How often the public address and the records at Gandi are read. A record is only written when it must change. |
| Language of the texts | select | No | Language of the device names, of the status and of the scene summaries. Automatic follows the language of your dashboard. |
How to install Gandi LiveDNS in Gladys
- In Gladys, open Integrations: Gandi LiveDNS appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/william-de71/gladys-gandi-livedns:0.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/William-De71/gladys-gandi-livedns.
Gandi LiveDNS requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Gandi LiveDNS is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by William-De71, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation