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:
127.0.0.1 localhost
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
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
My DNSMasq config is:
strict-order
port=53
resolv-file=/etc/resolv.conf
log-queries
log-facility=/var/log/dnsmasq.log
And my resolv.conf is:
nameserver 127.0.0.1
nameserver 8.8.8.8
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?