Settings

Theme

Show HN: D2c.sh – Cloudflare 'A' records for dynamic DNS

github.com

4 points by kurokawad 2 years ago · 3 comments

Reader

kurokawadOP 2 years ago

Hi hackers, I made a simple bash tool to update 'A' records in Cloudflare for users with dynamic IPs.

I wanted to have a tool to keep a couple of DNS updated with my homelab dynamic IP so I wrote this very simple bash script.

There are tools that already solve this dynamic IP issue, but I find the simplicity of a bash script way more convenient than any tool that needs installation, complex configuration, a Python runtime or whatnot. This will basically run in any system with bash.

It is very simple and only updates A records, but it does its job and it solves my needs. It could be improved with more record types I guess, at least AAAA.

  • tamimio 2 years ago

    If this is for a homelab, use a vpn to access said lab, you will solve this issue for starters, but most importantly, the added security, and you can expose some parts if really you needed to the public, but they communicate with rest through the vpn.

    • kurokawadOP 2 years ago

      Exposing the homelab with a VPS and a VPN definitely is a better approach than pointing a DNS to the public dynamic IP. But there might be cases where exposing the public IP is better. Some people might prefer that because it is easier, simpler in terms of infra. or just because they don’t own a VPS. More alternatives for people to choose!

Keyboard Shortcuts

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