Alle Neu

user:thomas Gists erstellt von Nutzer

title:mygist Gists mit Titel

description:sync gists with given description

filename:myfile.txt Gists mit Dateinamen

extension:yml Gists mit Dateiendung

language:go Gists in Sprache

topic:homelab gists zum gegebenen Thema

all:systemctl search all fields

Anmelden

Alle Neu Anmelden

Alle Gists

Neueste erstellt
Älteste erstellt
Neueste bearbeitet
Älteste bearbeitet
willpower232's Avatar

willpower232 / tailscaleToHostCtl.sh

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 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
Neuer Älter

Powered by Opengist ⋅ Load: 19ms⋅

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