1) Is the name of a private Linux computer discoverable in its LAN by default?
I'm talking about the name that is first entered when installing a GNU/Linux desktop OS, the one that in Ubuntu is displayed in System Settings -> Details -> Device name, or in a bash prompt after the @
, or as the result of the hostname
command.
I've tried different networking tools to get my machine's hostname (unfortunately I can test them only from the target itself) and none of them would succeed:
nbtscan <my_ip>
doesn't reveal my host at all, I think because it's only supposed to work on Windows hostsnmap -sn <my_ip>
reveals my host but not my hostnamearp -a
doesn't reveal my host at all, I think because a device is not supposed to appear in its own ARP table; but maybe if I were to look at the ARP table of another LAN device I would find my hostname there
I'm here assuming the desktop OS has been just installed, and the computer has no extra software that would give it non-default networking capabilities.
2) If the hostname is indeed indiscoverable by default, what are commonly used networking packages that would make the computer start sharing its hostname?