How to get local DNS resolution working?

I'm trying to get local DNS resolution working to identify the machines on my local network.

The thing is, when I query dnsmasq from the router, it works, but when I query it from any other computer on the network, it responds with NXDOMAIN. It correctly looks up upstream DNS records though (for example google.com).

From the router:

root@OpenWrt:~# nslookup Mac.lan
Server:		127.0.0.1
Address:	127.0.0.1:53

Name:	Mac.lan
Address: 192.168.8.145

Non-authoritative answer:

From my Laptop:

user%mac:~ $ nslookup Mac.lan
Server:		192.168.8.1
Address:	192.168.8.1#53

** server can't find Mac.lan: NXDOMAIN

And this is the config:

root@OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option cachesize '1000'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option localservice '1'
	option ednspacket_max '1232'
	option rebind_localhost '1'
	list interface 'lan'
	option rebind_protection '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv4 'server'
	option dhcpv6 'server'
	option ra 'server'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

I've already attempted turning off rebind_protection, and it didn't help.

Any ideas on how to get this working?

and if you run nslookup Mac.lan 192.168.8.1 on the router ?

Yes, the result of that is in the question body above, and it works fine on the router. The server responds with the correct address on queries from localhost but responds with NXDOMAIN to queries from anywhere else.

is it ?

please point me to it ...

Hah, sorry, I skimmed over the part where you added the IP address of the server to the query and missed it. That was certainly a tactful way to handle my mistake. Here you go:

root@OpenWrt:~# nslookup Mac.lan 192.168.8.1
Server:		192.168.8.1
Address:	192.168.8.1:53

Name:	Mac.lan
Address: 192.168.8.145

Non-authoritative answer: