Skip to content

Sync your Tailscale devices IPv4 address to Cloudflare DNS

License

Notifications You must be signed in to change notification settings

aaanh/tailflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailflare

GitHub Actions Workflow Status

Sync your Tailscale devices to Cloudflare DNS.

The functionality is based on this documentation on Tailscale: https://tailscale.com/kb/1054/dns?q=subdomain#using-a-public-dns-subdomain

It is basically taking the Tailscale IP addresses and put them under a subdomain A record on the DNS provider, which is Cloudflare in our case.

image

Usage

Get API keys

Get Cloudflare zone ID

https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/

Get Tailnet organization

alt text

Prep the .env file

cp .env.example .env

Add the environment variables gathered in the previous steps.

Run directly from source

  1. Prerequisites:
  • go >= v1.21
  • make
  1. Clone this repository
git clone https://github.com/aaanh/tailflare
  1. Go would hopefully install the needed dependencies on first run
  2. Run make run

About

Sync your Tailscale devices IPv4 address to Cloudflare DNS

Resources

License

Stars

Watchers

Forks

Packages