dnsmasq not serving dynamic host names.

My recollection from using dnsmasq on OpenWRT way in the past was that dnsmasq would resolve ip addresses for dynamic DHCP leases. If host ‘devpi’ sent a DHCP request and was assigned an address from the pool I could then ‘nslookup devpi.lan’ and get that address.

On Flint 2 running v4.8.3 I don’t get that behavior. I get an odd mix of behavior. On the fint 2 router I get the following, which both gives the address and an error.

# nslookup devpi.lan 127.0.0.1
Server:		127.0.0.1
Address:	127.0.0.1#53

Name:      devpi.lan
Address 1: 192.168.11.37
*** Can't find devpi.lan: No answer

from my mac, I don’t get the address:

% nslookup devpi.lan 192.168.11.1
Server:		192.168.11.1
Address:	192.168.11.1#53

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


Should I be able to lookup dynamic hosts? What might be the problem with my configuration?
/etc/config/hdcp has two dnsmasq sections:

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option ednspacket_max '1232'
	option rebind_protection '0'
	option confdir '/tmp/dnsmasq.d'
	option localservice '0'
	option filter_aaaa '1'

config dnsmasq 'wgclient1'
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '0'
	option boguspriv '0'
	option expandhosts '1'
	option cachesize '1000'
	option authoritative '1'
	option readethers '1'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.wgclient1'
	option ednspacket_max '1232'
	option confdir '/tmp/dnsmasq.d.wgclient1'
	option port '2153'
	option user 'dnsmasq_vpn'
	list domain 'lan'
	list domain 'guest'
	list domain 'wan'
	list addnhosts '/tmp/hosts.vpn'
	option ignore_hosts_dir '1'
	option filter_aaaa '1'
	option disabled '0'

Hi

Do you use the VPN at the same time?
Please try to fix this by running the following commands:

uci set dhcp.wgclient1.domain=lan
uci commit dhcp

/etc/init.d/dnsmasq restart