What protocol is used to reach computers by typing their names? For instance ping laptopone
essentially finds the IP of the device and then pings it.
I used to have an AVM FritzBox 6360 as router / DHCP server within my network. Every device was reachable by its network name. Now I changed to a new box called ConnectBox and only half of my systems remain reachable:
myuser@systemone:~$ ping laptopone
ping: laptopone: Name or service not known
I assume that the AVM took the job of associating the DNS calls, basically associating the computer name to an IP address. The ConnectBox doesn't seem to do that job which means only some systems have the needed service running as daemon or process.
What type of service is needed on a system to enable it to answer to its name when there are network calls like ping or ssh?
avahi-daemon
on Linux does the job of publishing a machine's own hostname ashostname.local
domain in the local network and allows discovering other hosts doing this. You should be able to refer to other Ubuntu machines this way, where avahi should be preinstalled. It doesn't work on Windows, but IIRC if you have e.g. iTunes or Bonjour installed there, they should get the same ability.nmap mylaptop
results inFailed to resolve "mylaptop".
.nmap mylaptop.local
also results inFailed to resolve "mylaptop.local".
.nmap 192.168.0.45
though results in finding the laptop and showing that it offers ssh/22. Anything I could further try or check?