{"id":16401199,"url":"https://github.com/mlcdf/dyndns","last_synced_at":"2025-10-26T15:31:05.827Z","repository":{"id":57615677,"uuid":"357656917","full_name":"mlcdf/dyndns","owner":"mlcdf","description":"Update Gandi LiveDNS based on the current (dynamic) ip.","archived":false,"fork":false,"pushed_at":"2022-11-27T01:19:25.000Z","size":97,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T03:12:47.829Z","etag":null,"topics":["discord","dyndns","dyndns-updater","gandi","gandi-livedns","self-hosted"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlcdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-13T18:47:41.000Z","updated_at":"2023-01-30T13:01:46.000Z","dependencies_parsed_at":"2023-01-23T16:00:22.383Z","dependency_job_id":null,"html_url":"https://github.com/mlcdf/dyndns","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlcdf%2Fdyndns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlcdf%2Fdyndns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlcdf%2Fdyndns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlcdf%2Fdyndns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlcdf","download_url":"https://codeload.github.com/mlcdf/dyndns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238357432,"owners_count":19458578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","dyndns","dyndns-updater","gandi","gandi-livedns","self-hosted"],"created_at":"2024-10-11T05:29:42.612Z","updated_at":"2025-10-26T15:31:05.483Z","avatar_url":"https://github.com/mlcdf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dyndns\n\n[![test](https://github.com/mlcdf/dyndns/actions/workflows/test.yml/badge.svg)](https://github.com/mlcdf/dyndns/actions/workflows/test.yml)\n[![coverage](https://raw.githubusercontent.com/mlcdf/dyndns/coverage/badge.svg)](https://mlcdf.github.io/dyndns/report.html)\n\nUpdate Gandi LiveDNS based on the current (dynamic) ip.\n\n## Why\n\nSome (most ?) providers ([Orange](https://orange.fr/) for example) don't provide you with a fix IP address: they give you a dynamic IP that changes over time. This makes it hard to self-host software and share them publicly via a domain because you have to constantly\nchange the IP your domain is pointing to.\n\nThis program aims to solve that. It's intended to run on a always-on computer in your home (such as Raspberry Pi).\n\n## Highlights\n\n- Supports both IPv4 and IPv6.\n- Ship as single binary with no OS dependencies.\n- Reports failures and successful updates on a Discord channel. /!\\ This is not optional (by design).\n\n## Install\n\n- From [GitHub releases](https://go.mlcdf.fr/dyndns/releases): download the binary corresponding to your OS and architecture.\n- From source (make sure `$GOPATH/bin` is in your `$PATH`):\n\n```sh\ngo install go.mlcdf.fr/dyndns\n```\n\n## Setup\n\n`dyndns` requires the following environment variables to be set:\n\n| name                  | description                                                                                               |\n|-----------------------|-----------------------------------------------------------------------------------------------------------|\n| `DISCORD_WEBHOOK_URL` | your [Discord channel webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) |\n| `GANDI_TOKEN`         | your [Gandi API Key](https://docs.gandi.net/en/domain_names/advanced_users/api.html)                      |\n\n## Usage\n\n```\nUsage:\n    dyndns --domain [DOMAIN] --record [RECORD]\n\nOptions:\n    --ttl                Time to live in seconds. Defaults to 3600\n    --always-notify      Always notify the Discord channel (even when nothing changes)\n    -V, --version        Print version\n\nExamples:\n    export DISCORD_WEBHOOK_URL='https://discord.com/api/webhooks/xxx'\n    export GANDI_TOKEN='foobar'\n    dyndns --domain example.com --record \"*.pi\"\n```\n\nSetup as a `cron` job\n\n```bash\ncrontab -e\n# Run every 10 minutes\n*/10 * * * * /path/to/dyndns --domain example.com --record \"*.pi\"\n```\n\nCheck out the example [contrib/deploy.sh](./contrib/deploy.sh) script.\n\n## Development\n\nRequirements:\n- go version \u003e 1.19+\n- docker\n\nRun the app\n\n```sh\ngo run main.go\n```\n\nRun the tests\n\n```sh\ngo test ./...\n```\n\nForce `go test` to run all the tests (by disabling caching)\n```sh\n./scrits/test.sh\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlcdf%2Fdyndns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlcdf%2Fdyndns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlcdf%2Fdyndns/lists"}