I Have an Ubuntu 16.04 host (10.0.10.2) with DNSMasq installed which is only serving up DNS, and a couple Windows hosts on the same subnet, as well as a couple other Linux hosts on the same subnet. My default gateway is handing out DHCP as well as handing out 10.0.10.2 for a DNS server.
The Windows boxes do not have a DNS search suffix or domain defined, but I want to be able to have them resolve hosts that I've defined in my /etc/hosts on the DNSMasq server WITHOUT having to specify domains or search suffixes, but this is proving to be difficult. According to Wireshark, the Windows hosts always want to append .local when performing a ping or trying to navigate to a web service on the Linux hosts.
My /etc/hosts file is as follows:
10.0.10.2 box-linux-0 box-linux-0.local
10.0.10.3 box-linux-1 box-linux-1.local
10.0.10.3 box-linux-2 box-linux-2.local
10.0.10.7 box-windows-0 box-windows-0.local
10.0.10.5 box-windows-1 box-windows-1.local
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
My DNSMasq config is:
And my resolv.conf is:
Is there something I'm missing to allow the Windows hosts to just be able to resolve box-linux-0, box-linux-1, box-linux-2?