Settings

Theme

Show HN: Dynamic IPv4/6 records for Cloudflare

github.com

13 points by kurokawad a year ago · 9 comments · 1 min read

Reader

Easily update Cloudflare records for your dynamic IP or homelab, now supporting IPv6 (A and AAAA), with the ubiquity of Bash

p-o a year ago

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!

  • kurokawadOP a year ago

    Thanks! May I ask why would you split API keys from the rest?

    • p-o a year ago

      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.

WhatsName a year ago

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?

  • motive a year ago

    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.

    • one-more-minute a year ago

      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.

  • kurokawadOP a year ago

    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?

akdev1l a year ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection