Description
tailscale-cloudflare-dnssync keeps DNS records in a Cloudflare zone in step with the devices on your Tailscale or Headscale network. It reads the IP addresses of your hosts and writes matching IPv4 and IPv6 records under your own domain, so each device can be reached by name, much like Magic DNS but on a domain you control. The tool adds records for new devices, removes them for deleted devices, and updates them when a hostname or alias changes. You can add a prefix or suffix to record names. Before deleting a record it checks that the address is in the Tailscale range, so unrelated records are left alone. The author says the main reason to use it is getting Let's Encrypt certificates through certbot with a DNS challenge. It runs in Docker with environment variables or secrets, or natively with Python and a config.ini file, and the README covers Headscale setup and how to create the Cloudflare and Tailscale API keys it needs.…
Highlights
- Adds IPv4 and IPv6 records for each device
- Removes records for deleted devices
- Updates records when hostnames change
- Optional prefix and suffix on record names
- Works with Tailscale and Headscale
Ratings & Reviews
No ratings yet
Be the first to rate Tailscale Cloudflare Dnssync.
People also visit
Cloudflare Sync
A nice to have, MIT-licensed tool for using Cloudflare as a dynamic DNS provider
Secure-DNS-over-HTTPS-Cloudflare-Worker
Secure DNS over HTTPS Worker is a Cloudflare Worker
PYDNS-Scanner
A modern, high-performance DNS scanner with a beautiful Terminal User Interface
Tailscale Cloudflare Dnssync FAQ
What does it do?
It syncs the IP addresses of Tailscale or Headscale devices into a Cloudflare DNS zone, so each device gets a name under your domain.
How do I run it?
Use Docker with environment variables or secrets, or run it natively with Python and a config.ini file.
Which DNS provider does it need?
Cloudflare. The README says to create an API token from the profile page with the Edit Zone template.
Does it support Headscale?
Yes. The README says it has been tested with Headscale v0.22.3 and includes a Headscale setup section.
What does it need from Tailscale?
Either a Tailscale API key or an OAuth client with Devices Read permission, both created in the Tailscale admin settings.
What are the best Tailscale Cloudflare Dnssync alternatives?
Popular alternatives to Tailscale Cloudflare Dnssync include Lexicon, Cloudflare Sync and Cloudflare Utils. See all Tailscale Cloudflare Dnssync alternatives
