Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chasenicholl/ip-lock
A Python Utility for updating your DNS provider with your dynamic public IP.
https://github.com/chasenicholl/ip-lock
Last synced: 22 days ago
JSON representation
A Python Utility for updating your DNS provider with your dynamic public IP.
- Host: GitHub
- URL: https://github.com/chasenicholl/ip-lock
- Owner: chasenicholl
- Created: 2019-10-25T15:42:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T02:37:42.000Z (over 3 years ago)
- Last Synced: 2024-10-10T14:30:58.929Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ip-lock
A Python Utility for updating your DNS provider with your dynamic public IP.
### Supported DNS Providers
- CloudFlare
- ...more to come### Installation
```shell
curl -sSL https://raw.githubusercontent.com/chasenicholl/ip-lock/master/install.sh | bash
```### Config File
You can use the `config-sample.yml` as a template, but remember to fill in with your own credentials.
### API Permissions
The Cloudflare Auth Token will need Zone and DNS permissions.
### Usage
```shell
ip_lock path/to/your/config.yml (--verbose --force --dry-run)
```### Usage as a cronjob
I recommend installing this as a scheduled system task, like a cronjob.
```shell
crontab -e
```Add this line to your crontab, to check every minute for a Public IP address change.
```crontab
*/1 * * * * /usr/local/bin/ip_lock /absolute/path/to/your/config.yml (--verbose --force --dry-run) >> /var/log/ip_lock.log 2>&1
```