Unable to resolve IP address from domain name

I am currently on a corporate network. My computer's network settings:

  • IPv4 address:
  • Netmask: 24
  • Gateway:
  • DNS: (not on the same subnet, but I know it is normal)

I try to resolve a local PC address by its name (maybe NETBIOS name?) and it works:

livy@ubuntu:~$ nslookup pc141.mycompany.local

Non-authoritative answer:
Name:	pc141.mycompany.local

I've set up an OpenWrt router with the following configurations:

config interface 'wan'
	option	ifname		'eth1'
	option	proto		static
	option	ipaddr
	option	netmask
	option	gateway
	option	dns

Using SSH to connect to the router, however, I cannot resolve the same host address:

root@OpenWrt:/etc/config# nslookup pc141.mycompany.local

** server can't find pc141.mycompany.local: NXDOMAIN
** server can't find pc141.mycompany.local: NXDOMAIN

What could be the cause of the problem?

This domain is reserved for mDNS, you should not use it for anything else.
It's best to use lan for your home network.

Using nslookup to query mDNS doesn't work in general case.
You need to rely on tools that support it, e.g. resolvectl.