| Crates.io | domeneshop-ip |
| lib.rs | domeneshop-ip |
| version | 0.1.2 |
| created_at | 2025-04-02 11:57:46.144062+00 |
| updated_at | 2025-08-13 16:11:58.746257+00 |
| description | CLI tool to update DNS IP records for Domeneshop |
| homepage | |
| repository | https://github.com/erlendrr/domeneshop-ip |
| max_upload_size | |
| id | 1616425 |
| size | 99,207 |
A CLI tool for updating DNS records at Domeneshop with your current IP address.
cargo install domeneshop-ip
domeneshop-ip [OPTIONS]
--token <TOKEN> Domeneshop API token [env: DOMENESHOP_API_TOKEN=]
--secret <SECRET> Domeneshop API secret [env: DOMENESHOP_API_SECRET=]
--domain-input <DOMAIN> Domain to manage (e.g. example.com or sub.example.com)
-y, --yes Skip all confirmation prompts
--check-and-update Check and update DNS record if IP has changed (for cron jobs)
--config <PATH|NAME> Path or name of an auto-update config to use with --check-and-update
--all Run --check-and-update for all saved configs
--help Show help information
--version Show version information
After successfully updating a DNS record, the tool will offer to set up automatic updates. If enabled:
~/.config/domeneshop/auto_update/
~/.config/domeneshop/auto_update/app.example.com__A.json--check-and-update with --config <file> to check/update one host, or --all to handle all configsTo check for IP changes every minute:
# Edit your cron jobs
crontab -e
# Update one specific host (recommended: one entry per host)
* * * * * /path/to/domeneshop-ip --check-and-update --config '/Users/you/.config/domeneshop/auto_update/app.example.com__A.json'
# Or update all saved hosts in one go
* * * * * /path/to/domeneshop-ip --check-and-update --all
The auto-update process:
Repeat the interactive flow for each host you want to manage, e.g.:
Enable auto-update when prompted each time. This creates separate config files under ~/.config/domeneshop/auto_update/ and the tool can create matching cron entries per host. You can also switch to a single --all cron entry if preferred.
Apache-2.0