DNSMasq not resolving a hostname to local IP

NethServer Version: 8
Module: DNSMasq

I have installed NS8 and the DNSMasq module on my home network. I have configured DNSMasq to act as my LAN’s DHCP server and DNS. The DHCP config hands out the NS8 server as the DNS for my LAN devices.

In the DNS configuration I added several hosts that are on my LAN, including my Home Assistant (“HA”). I use the same host name to access my HA both internally and externally, but when I ping my HA host name it resolves to the external IP (i.e., my firewall IP)

If I ping any of the other local hosts I have added to the DNS config of DNSMasq they resolve correctly. I have verified my PC has ONLY the NS8 server as it’s DNS.

Any thoughts on determining why this might be happening?

Hi and welcome to NethServer Community.

Please check DNS resolution with for example nslookup. It also shows you which DNS server is used.

nslookup <HA_FQDN>

Sometimes ping uses cached IPs. This could be solved by restarting networking of the device or the device itself.