Последняя активность 2 hours ago

add your tailscale IPs to your hosts file when you're scared of messing up your DNS

tailscaleToHostCtl.sh Исходник
1#!/bin/bash
2
3tailscale status | while IFS= read -r aHost; do
4 hostname=$(echo "$aHost" | awk '{print $2}' | cut -d '-' -f 1)
5 ip=$(echo "$aHost" | awk '{print $1}')
6
7 hostctl add domains tailscale "$hostname.ts" --ip "$ip"
8done