https://github.com/jacobsvante/loopia-updater
Dynamic DNS service for Loopia API
https://github.com/jacobsvante/loopia-updater
Last synced: about 1 year ago
JSON representation
Dynamic DNS service for Loopia API
- Host: GitHub
- URL: https://github.com/jacobsvante/loopia-updater
- Owner: jacobsvante
- Created: 2013-08-07T21:35:27.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T19:27:16.000Z (almost 11 years ago)
- Last Synced: 2025-02-09T00:43:26.504Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loopia IP Updater: Another dynamic DNS service
When you don't have a static IP from your ISP but need to make sure that your Loopia domain names always point to the current external IP.
Put in your server crontab and run as often as you see fit.
API username and password ([which you need to create here](https://customerzone.loopia.se/api/)) can either be specified as arguments, or in ~/.loopiaapi.ini, in standard INI-format:
[credentials]
username = USERNAME
password = PASSWORD
Don't forget to add @loopiaapi to the end of your username.
## Requirements
Python 2.7+ or Python 3.3+ (No support for older versions right now, mostly because I'm lazy. I'm of course open to pull requests.)
Something Unix-y. Hasn't been tested with Windows.
## Example usage
See full range of options with `/path/to/loopia_updater.py --help`. Note that you might need to add execution perm to the file for it to work without `python` prepended.
### Crontab entry
Check for IP changes every 5 minutes, update zone-records `@`, `*` for `jacobian.se`. Write any errors that occur to `~/loopia_updater.log`
*/5 * * * * /path/to/loopia_updater.py jacobian.se *.jacobian.se 2>> ~/loopia_updater.log
### Force update
Force update of IP, might be useful on the first run as Loopia's API is never hit unless the IP is changed from the last check (last external IP is stored in `~/.loopiaapi-externalip`.)
/path/to/loopia_updater.py jacobian.se -u USERNAME -p PASSWORD -f
## Links
* [@pyjacob](https://twitter.com/jacobsvante_)
* [LoopiaAPI account creation](https://customerzone.loopia.se/settings/loopia-api/)