An open API service indexing awesome lists of open source software.

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

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/)