Page 1 of 1

DNS lookup of local domain not working

Posted: Mon Apr 20, 2020 9:37 pm
by outsidewall
Hello,

I have an ESP32, running esp32-idf3-20191220-v1.12
The device boots fine, dhcps fine, indicating that is set to use one of my local dns servers.
In my code i try to resolve a local host xyz.mydomain.local :- fails :-(
If I change the host to resolve to www.google.com it works. :-)
I do add that the dns servers resolve all local addresses fine, approx 100 devices.

I have run a tcpdump on both local dns servers, and do not see any port 53 activity on either, odd eh.

I did notice a number of mdns packets, odd, as I have not asked the device to mdns.
So it looks like the ESP32 is mdns(ing), is this correct? If so is there away to force it to use good old dns lookups?

Regards John

Re: DNS lookup of local domain not working

Posted: Tue Apr 21, 2020 3:38 am
by tve
`.local` addresses are normally used for mDNS so I'm not surprised that you see mDNS activity. I also believe that it would be incorrect for your local DNS servers to respond to .local queries, but I'm not sure. It's not a conventional set-up. Why are you not looking for xyz.mydomain in your code?

Re: DNS lookup of local domain not working

Posted: Tue Apr 21, 2020 7:25 am
by outsidewall
That's interesting.. My network has been as it is for at least 20 years, I'm not mDNS was around then.. Maybe a time for a refactor.