DNSMasq showing my public address instead of HA's IP

What if I do on cmd console: nslookup myduckdnsdomain.duckdns.org and it shows my public ip instead of my home assistant ip? I got connection like this: INTERNET PROVIDER ROUTER ----- connected to ----> TP LINK ROUTER
I followed this tutorial:

DHCP Settings → Serwer DNS: 192.168.0.124 // (my home assistant ip)


DNSMasq config

cmd console:

>nslookup xxxxxx.duckdns.org 192.168.0.124
Server:  UnKnown
Address:  192.168.0.124

Name:    xxxxx.duckdns.org
Address:  192.168.0.124

when I do: // 192.168.0.1 - default gateway

>nslookup xxxxxx.duckdns.org
Server:  UnKnown
Address:  192.168.0.1

Non-authoritative answer:
Name:    xxxxxx.duckdns.org
Address:  my public ip

Is the host part of the dnsmasq config set to xxxxxx.duckdns.org?

Yes it is set to my duckdns domain.

I know this is late tot he party & you most likely have already resolved the issue …

To me it looks like your workstation is not using DNSmasq for its DNS queries.

  1. Check what DNS servers your workstation is using
  2. Configure the DNS settings of your TP-link router to use your local HA for DNS (192.168.0.124)