Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anze3db/ipster
Sync CloudFlare DNS record with your machine's IP
https://github.com/anze3db/ipster
Last synced: 7 days ago
JSON representation
Sync CloudFlare DNS record with your machine's IP
- Host: GitHub
- URL: https://github.com/anze3db/ipster
- Owner: anze3db
- Created: 2022-10-08T22:28:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T12:13:05.000Z (12 months ago)
- Last Synced: 2024-11-01T04:42:28.130Z (about 2 months ago)
- Language: Go
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ipster
`ipster` is a command line tool that keeps your CloudFlare DNS record in sync with your Raspberry Pi's IP 🤝
## Install and Run
```
wget https://github.com/anze3db/ipster/releases/download/24.1/ipster.pi
chmod +x ./ipster.pi
./ipster.pi
````ipster` will need access to your CloudFlare account so you'll have to create an [API_TOKEN](https://dash.cloudflare.com/profile/api-tokens) (use the Edit Zone DNS template).
Run with the necessary environment variables:
```
IPSTER_CLOUDFLARE_API_TOKEN=xxxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy IPSTER_CLOUDFLARE_ZONE_NAME=example.com IPSTER_CLOUDFLARE_DNS_RECORD_NAME=home.example.com ./ipster.pi
```Required environmental variables:
* `IPSTER_CLOUDFLARE_API_TOKEN` - your CloudFlare [API_TOKEN](https://dash.cloudflare.com/profile/api-tokens) (Use the Edit zone DNS template).
* `IPSTER_CLOUDFLARE_ZONE_NAME` - your CloudFlare zone name. Usually your domain name e.g. `example.com`.
* `IPSTER_CLOUDFLARE_DNS_RECORD_NAME` - the CloudFlare DNS record that you want to keep in sync e.g. `home.example.com`.## Example run
`ipster` will compare your machine's IP address to the IP address in the DNS Record in CloudFlare and update the DNS Record if the two don't match.
```
IPSTER_CLOUDFLARE_API_TOKEN=xxxxxxxxx_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy IPSTER_CLOUDFLARE_ZONE_NAME=example.com IPSTER_CLOUDFLARE_DNS_RECORD_NAME=home.example.com ./ipster.pi
2022/10/08 23:17:11 Verifying IPs
2022/10/08 23:17:13 No change
2022/10/08 23:18:11 Verifying IPs
2022/10/08 23:18:13 No change
2022/10/08 23:19:11 Verifying IPs
2022/10/08 23:19:13 IPs do not match. Updating...
2022/10/08 23:19:14 DNS Record updated!
2022/10/08 23:20:11 Verifying IPs
2022/10/08 23:20:13 No change
```# Compile for Raspberry Pi
```
env GOOS=linux GOARCH=arm GOARM=5 go build
```