Show HN: Dynamic IPv4/6 records for Cloudflare
github.comEasily update Cloudflare records for your dynamic IP or homelab, now supporting IPv6 (A and AAAA), with the ubiquity of Bash
Easily update Cloudflare records for your dynamic IP or homelab, now supporting IPv6 (A and AAAA), with the ubiquity of Bash
That's really neat. I also had a similar need to dynamically manage DNS Record and decided to create a Kubernetes operator instead to manage it (https://github.com/pier-oliviert/phonebook).
I do like your approach, it's really refreshing. I'd probably want to split the API keys from the rest of the config files.
Great work!
Thanks! May I ask why would you split API keys from the rest?
API Keys are usually secrets and as such, if I wanted to commit those files to git, the API token would not leak to my repository.
Seems legit! Gonna add it
Please explain to me why one would go this route instead of using cloud-flare tunnel, which are way more secure, by not exposing you to the outside?
I like to host my own software because I am the owner of my server and my data. I believe there are two solutions where you have the absolute control of your setup in terms of addressing: 1. Set up a private VPN tunnel e.g Wireguard between a public VPS and your homelab. 2. Set up a dynamic DNS. I don’t like using propietary software where I don’t have the control. And I’m not sure if Cloudflare tunnels can route every type of traffic. Plus, should we trust Cloudflare?
Cloudflare Tunnels only support exposing what mostly amounts to HTTP-based services. If you're using other protocols for e.g. a game server, or something else, it won't fly unless you are also running the WARP client locally.
Even within HTTP services, (a) your TLS will not be end to end, so you have to be happy for Cloudflare to see your data and (b) they don't like you to use up all their bandwidth with media streaming or other large files. Tunnel is a great service but there are certainly reasons not to use it.
Cloudflare provides a CLI that is officially supported: https://linuxcommandlibrary.com/man/flarectl
Not sure why they only distribute it as part of their go library but you can execute it by itself.