Create a BIND Zone from the devices in a Tailscale account
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
You will need to set the following environment variables:
TS_KEY
: Tailscale API keyTAILNET
: Tailscale tailnet IDDOMAIN_NAME
: Domain name for the zone file
-
Run the
tailzone.py
script with the desired options. For example:python tailzone.py
-
The script will generate a BIND Zone file based on the devices in your Tailscale account and save it to
db.DOMAIN_NAME
. -
You can then use the generated BIND Zone file in your DNS server configuration to resolve the devices in your Tailscale network.