Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

description:sync gists with given description

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab Gist con l'argomento dato

all:systemctl search all fields

Entra

Tutti Nuovi Entra

Tutti i gists

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
willpower232's Avatar

willpower232 / tailscaleToHostCtl.sh

0 mi piace
0 forks
1 files
Ultima volta attivo 1 hour ago
add your tailscale IPs to your hosts file when you're scared of messing up your DNS
1 #!/bin/bash
2
3 tailscale 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"
8 done
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 21ms⋅

Italiano
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文