Hostnames on local lan

I just received my RB3011UiAS-RM and updated it to 6.35.2 firmware. This is used in my home/business network. I need to be able to ssh into my multiple virtual machines on several servers by hostname. I’ve set up the script I found on this forum and it does show the hostnames under ip/dns/static. However I still can’t ssh into a server with ssh user@hostname.local. I can ssh with ssh user@ip_addr, but that is very inconvenient.

Any way to get this working for me?

Thanks
Cory

# Domain to be added to your DHCP-clients hostname
:local topdomain;
:set topdomain "local";

# Use ttl to distinguish dynamic added DNS records
:local ttl;
:set ttl "00:59:59";

# Set variables to use
:local hostname;
:local hostip;
:local free;

# Remove all dynamic records
/ip dns static;
:foreach a in=[find] do={
  :if ([get $a ttl] = $ttl) do={
    :put ("Removing: " . [get $a name] . " : " . [get $a address]);
    remove $a;
  }
}

/ip dhcp-server lease ;
:foreach i in=[find] do={
  /ip dhcp-server lease ;
  :if ([:len [get $i host-name]] > 0) do={
    :set free "true";
    :set hostname ([get $i host-name] . "." . $topdomain);
    :set hostip [get $i address];
    /ip dns static ;
# Check if entry already exist
    :foreach di in [find] do={
      :if ([get $di name] = $hostname) do={
        :set free "false";
        :put ("Not adding already existing entry: " . $hostname);
      }
    }
    :if ($free = true) do={
      :put ("Adding: " . $hostname . " : " . $hostip ) ;
      /ip dns static add name=$hostname address=$hostip ttl=$ttl;
    }
  }
}

Does your client machine use your router (and only your router) as DNS resolver?