I've set up a simple bash script to update a DNS record for my domain with CloudFlare whenever my home IP address changes, this effectively using CloudFlare as Dynamic DNS service:

https://blog.thms.uk/2023/06/using-cloudflare-with-a-raspberry-pi-for-dynamic-dns?utm_source=mastodon

#bash #DNS #CloudFlare #SelfHosting #DDNS

Using CloudFlare with a Raspberry Pi for Dynamic DNS - blog.thms.uk

You can use the CloudFlare API and a simple bash script on your Raspberry Pi, to use CloudFlare as a Dynamic DNS service.

blog.thms.uk

I have updated this blog post today, as I updated the script to support IPv4 and IPv6, as my son asked me how to do this with IPv6:

https://blog.thms.uk/2023/06/using-cloudflare-with-a-raspberry-pi-for-dynamic-dns

#DNS #CloudFlare #SelfHosting #DDNS

Using CloudFlare with a Raspberry Pi for Dynamic DNS - blog.thms.uk

You can use the CloudFlare API and a simple bash script on your Raspberry Pi, to use CloudFlare as a Dynamic DNS service.

blog.thms.uk
@michael Doing the same here. Started off based on https://github.com/tech-otaku/cloudflare-dns.git and modified to add Wireguard/tailscale as well as lan IPs and of course the public IP (via ip.superuser.one). Works like a charm
GitHub - tech-otaku/cloudflare-dns: A wrapper for the Cloudflare API that allows you to add, update or delete your domain's DNS records from the command line.

A wrapper for the Cloudflare API that allows you to add, update or delete your domain's DNS records from the command line. - GitHub - tech-otaku/cloudflare-dns: A wrapper for the Cloudflare API...

GitHub
@yeri @michael Port forwarding at your router is still needed though, yah? I recently moved and thus have a new broadband provider. The clowns locked the router admin settings to not allow me to forward ports! I fear I’m going to be on the phone for a long time explaining why on earth is want to do such a strange thing… 🤨
@cdrum @yeri @michael For dydns to work no, but to do anything useful yes. Cloudflared is a solution though (creates a Wireguard vpn to Cloudflare edge: https://github.com/cloudflare/cloudflared)
GitHub - cloudflare/cloudflared: Cloudflare Tunnel client (formerly Argo Tunnel)

Cloudflare Tunnel client (formerly Argo Tunnel). Contribute to cloudflare/cloudflared development by creating an account on GitHub.

GitHub
@yeri @michael Oh.. will look into the wireguard vpn/cloudflare edge option. Thanks.

@cdrum yes, as @yeri says, Cloudflare Tunnels could potentially be an option.

I wrote very briefly about them here, but in the context of a web server, rather than vpn.

https://blog.thms.uk/2023/05/use-cloudflare-tunnel-to-share-local-development-site

@michael @yeri Thanks. Some reading for me!
@michael @yeri OMG this is an awesome service…
@michael @yeri OK, I used Cloudfare Tunnels for installing #bookwyrm @bookwyrm , check out my post at https://cdrum.social/@cdrum/110548629184626247. Appreciate the recommendation the other day! I did it more to learn about the tunnel service, but also to get more comfortable with self hosting stuff. I have this Synology sitting underutilized so I figured it would be a good candidate for Bookwyrm, as a start.
Chris Drumgoole (@[email protected])

Posted another blog post about getting #Bookwyrm ( @[email protected] ) installed on my local Synology NAS at home. I used Cloudfare tunnels to bypass the port forwarding issue, and to make the SSL certificates easier to deal with. I’m still finding my way around Bookwyrm, but feel free to find me at https://books.cdrum.social/user/cdrum https://cdrum.com/2023/06/15/installing-bookwyrm-on-ubuntu-22.04-lts-server-on-a-synology-nas-vm-virtual-machine-manager/?utm_source=cdrum-social #fediverse #singleuserinstance #synology #tunnels #cloudfare #blog

cdrum Masto