logoalt Hacker News

wolrah • today at 7:24 PM • 1 reply • view on HN

<hostname>.local

Here's me pinging my laptop (macOS 27) from my file server (Ubuntu 24.04)

  ~ ping persephone.local
 PING persephone.local (fd82:74ca:1cef:385a:1897:2e4b:a726:18b6%3) 56 data bytes
 64 bytes from fd82:74ca:1cef:385a:1897:2e4b:a726:18b6: icmp_seq=1 ttl=64 time=0.496 ms
 64 bytes from fd82:74ca:1cef:385a:1897:2e4b:a726:18b6: icmp_seq=2 ttl=64 time=0.515 ms
 ^C
 --- persephone.local ping statistics ---
 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
 rtt min/avg/max/mdev = 0.496/0.505/0.515/0.009 ms

Replies

mahboi • today at 7:37 PM

Only if you know the name already and no two hosts took the same name, assuming it works at all. Shouldn't those question marks be the hostnames on arp -a? On some networks it shows them, on others it doesn't.

➕ show 1 reply