All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
willpower232's Avatar

willpower232 / tailscaleToHostCtl.sh

0 likes
0 forks
1 files
Last active 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
Newer Older

Powered by Opengist ⋅ Load: 20ms⋅

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