When setting up a local Wi-Fi network in a small place from an ISP, such as Verizon, using a router and modem, the machines in the network are assigned private IP addresses.
In such a local Wi-Fi network, I can use ssh name@<hostname>
to access an SSH server on another computer <hostname>
, where <hostname>
is the output of command hostname
. Is the output of hostname
resolved to a private IP address, by some DNS server (possibly on the router?)?
But I heard that the output of hostname
is unrelated to host name resolution by DNS. Then why can I successfully run ssh name@<hostname>
, where <hostname>
is the output of command hostname
?