dnssync

module
v0.0.0-...-3a8f46b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: MIT

README

DNS Sync

A very simple utility to sync your public IP address with a DNS record in Cloudflare.

Usage

Example:

 dnssync --interval 60 --zone-id $ZONE_ID --dns-record foo.example.com --api-key $API_KEY

Help:

Usage: dnssync --interval INTERVAL --zone-id ZONE-ID --dns-record DNS-RECORD --api-key API-KEY [--verbose]

Options:
  --interval INTERVAL    How often sync the IP (in seconds)
  --zone-id ZONE-ID, -z ZONE-ID
                         The zone ID. Ref: https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/
  --dns-record DNS-RECORD, -r DNS-RECORD
                         The DNS record name. E.g. foo.example.com
  --api-key API-KEY, -k API-KEY
                         Cloudflare API key. Ref: https://dash.cloudflare.com/profile/api-tokens
  --verbose, -v
  --help, -h             display this help and exit
License

MIT

Directories

Path Synopsis
cmd
dnssync command
internal
cli
ip

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL