brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tailscale whois shows who owns a Tailscale IP

Network and access
~/tips/tip-tailscale-whois

tailscale whois 100.101.102.103

Looks up the machine and user behind a Tailscale IP address, for example from a log line.

You find a 100.x address in a log and have no idea whose it is.

Ask Tailscale. The command takes an address, with an optional port, and returns the machine and the user behind it.

tailscale whois 100.101.102.103

For a normal device you get the machine name, ID, addresses and allowed IPs, plus the user name and ID and any capabilities. For a tagged device you get the tags instead of a user.

That is handy for reading access logs on a service you expose over the tailnet. The log says 100.x, whois says which laptop.

If you want machine-readable output, add --json, but put it before the address, because the docs say it must come first. The --proto flag takes tcp or udp.

Caveat: it answers for addresses that are part of your tailnet. A public IP gets you nothing useful.

It also works in the other direction for housekeeping. When you review who can reach a service, the name behind each address tells you quickly whether you still recognise it.

On my own tailnet I would use it as a sanity check before I trust an address. A name is easier to judge than a number.

Further reading: Tailscale CLI reference, On this site: tailscale ping tells you if a device is reached directly or through a relay, On this site: send a file to your phone with tailscale file cp, no cloud in between

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link