I have got a few ssh servers on my local network and noticed that instead of ssh-ing by IP address I can simply ssh hostname.local.

But not to all machines as some machines require that I ssh them by their IP address.

So my question is this, what protocol, feature is being use with the name.local pattern? Why is it possible on some of my machine to use the hostname instead of IP address?


As suggested by ceejayoz, I needed to configure my zero configuration networking by installing avahi daemon

apt install avahi-daemon

Linux server's DNS map's system name to it's IP as it work for internet/wan.

Look at file /etc/hosts. This file keeps mapping and routing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.