Can't connect to zed box orin using ssh with hostname

Can’t connect with ssh to my zed box when using the hostname while I can if I use the IP.
Point is if I ping from the ZED box itself (ping hostname) I get no errors, but for every other machine I get an error “can’t find hostname”.
I don’t think it’s relevant but I created a ssh key for github just report it here in case is important.

Hi @Prospecto
this highly depends on the configuration of your network.
I recommend you search the internet for a solution that is something most related to Ubuntu than the ZED Box itself