Strange behaviour with host resolution

Hi, my router with openwrt is not the only one in my network, I also have the one from the internet provider which acts as DHCP.
I have installed simple-adblocker and configured dnsmasq in OpenWrt router and added it as my preference DNS server in each server in the network (no way for me to change default DNS returned by DHCP server in the internet provider router).
The local domain in the DHCP and DNS config is set to "local" and DNS forwarding is set to the IP of the vendor router connected to intenet.
When i use dig, nslookup or host to check the IP of "mango.local" I get no answer but if I use ping I get the correct one!

PING mango.local (192.168.1.16) 56(84) bytes of data.
64 bytes from 192.168.1.16 (192.168.1.16): icmp_seq=1 ttl=64 time=0.714 ms

Anyone know why? Where is the hostname - IP mapping coming from?

Thanks,
Marco

.local is reserved for mdns (wikipedia). So, AFAIK, it will not always do a proper query. Try using another domain... some people use .lan or .home (you can theoretically use anything that won't conflict with your actual internet use).