If your network DNS server is configured properly with your domain name and with your local machines names (either manually or via DHCP), commenting the option "domain-needed" in /etc/dnsmasq.conf should fix this bug.