全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

登錄

全部 新建 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
willpower232's Avatar

willpower232 / tailscaleToHostCtl.sh

0 喜歡
0 分支
1 檔案
最後活躍 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
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 19ms⋅

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