Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metcalfc/tailzone
Create a BIND Zone from the devices in a Tailscale account
https://github.com/metcalfc/tailzone
dns tailscale
Last synced: about 1 month ago
JSON representation
Create a BIND Zone from the devices in a Tailscale account
- Host: GitHub
- URL: https://github.com/metcalfc/tailzone
- Owner: metcalfc
- License: apache-2.0
- Created: 2024-04-04T01:42:51.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T06:43:24.000Z (9 months ago)
- Last Synced: 2024-04-05T03:40:21.655Z (9 months ago)
- Topics: dns, tailscale
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# tailzone
Create a BIND Zone from the devices in a Tailscale account
## Usage
1. Install the required dependencies by running the following command:
```bash
pip install -r requirements.txt
```2. You will need to set the following environment variables:
- `TS_KEY`: Tailscale API key
- `TAILNET`: Tailscale tailnet ID
- `DOMAIN_NAME`: Domain name for the zone file2. Run the `tailzone.py` script with the desired options. For example:
```bash
python tailzone.py
```
3. The script will generate a BIND Zone file based on the devices in your Tailscale account and save it to `db.DOMAIN_NAME`.4. You can then use the generated BIND Zone file in your DNS server configuration to resolve the devices in your Tailscale network.