To get a .local domain on your network, you need to install avahi.

sudo apt-install avahi-daemon

From herein, hostname.local will work for accessing that machine (where hostname is the value of /etc/hostname).

If you want to change the name or extension, you can edit /etc/avahi/avahi-daemon.conf.