Return to Level1Techs.com

Dnsmasq config is inconsistent?

Hey everyone

Over the weekend I installed Dnsmasq on an Ubuntu 19.10 VM on my server under Unraid. The config seems fine, but its often inconsistent. I’m just looking to use it for DNS on my local network so I don’t need to remember all of the IP addresses associated with my other servers and devices. I have a laptop and a desktop both running Windows 10. My router is configured for the Dnsmasq VM to be the primary IPV4 DNS server with no secondary.

/etc/dnsmasq

# DNS configuration

no-dhcp-interface=enp1s0

#port=53
listen-address=192.168.5.232
domain-needed
bogus-priv
strict-order
expand-hosts
domain=nexus.com
local=/nexus.com/
no-resolv
no-poll
server=8.8.8.8
server=8.8.4.4

/etc/hosts

127.0.0.1 localhost
127.0.1.1 dnsmasq

192.168.5.232 dnsmasq dnsmasq.nexus.com
192.168.5.1 router
192.168.5.224 valkyrie.nexus.com
192.168.5.228 pihole
192.168.5.226 enterprise
192.168.5.222 octopi

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

While on the subject, I’m also getting inconsistencies with my SMB shares on the Unraid server to the Windows 10 machines. Sometimes it works, other times it can’t find the networked drive.

Any suggestions?