DNS lookup of local domain not working

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
outsidewall
Posts: 7
Joined: Mon Apr 20, 2020 9:27 pm

DNS lookup of local domain not working

Post by outsidewall » Mon Apr 20, 2020 9:37 pm

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

User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: DNS lookup of local domain not working

Post by tve » Tue Apr 21, 2020 3:38 am

`.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?

outsidewall
Posts: 7
Joined: Mon Apr 20, 2020 9:27 pm

Re: DNS lookup of local domain not working

Post by outsidewall » Tue Apr 21, 2020 7:25 am

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.

Post Reply