Skip to content

No way to resolve mDNS hostnames #4706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
G-glop opened this issue May 3, 2018 · 7 comments
Closed

No way to resolve mDNS hostnames #4706

G-glop opened this issue May 3, 2018 · 7 comments

Comments

@G-glop
Copy link

G-glop commented May 3, 2018

The ESP8266 can do everything else with mDNS (advertise services, query services, set it's hostname), apart from the very important thing of querying hostnames.

ESP32 can do it with the MDNS.queryHost function, but it only wraps the one from the sdk, which lives inside a compiled binary. So it's no use for backporting it to the ESP8266.

This is all more unfortunate because the netBIOS library also cannot resolve hostnames

edit: madpilots mDNSResolver did the job, but the functinality should be part of the built in library

@RudyFiero
Copy link

RudyFiero commented May 4, 2018

From #4591 (comment)

Be aware that I am currently rewriting the mdns responder/query based on the idf implementation. It is very slow going, though, so it will take quite some time.

I am looking forward to this, but until then I make do with what we have.

@G-glop
Copy link
Author

G-glop commented May 6, 2018

note: after a while it stops working, only use it a few times between restarts

@palmerabollo
Copy link

I'm also interested in this feature.
@G-glop do you mean that mDNSResolver suddenly stops working?

@G-glop
Copy link
Author

G-glop commented Jun 4, 2018

@palmerabollo It stops working after about 20 resolutions, and it also blocks all other connections. Probably some kind of resource leak.

@kosso
Copy link

kosso commented Jun 7, 2018

Glad to find this thread.

I found myself wondering why there was no ESP8266 equivalent to the ESP32 MDNS.queryHost() method, which makes life a whole lot easier.

Going to try mDNSResolver for now.

@RudyFiero
Copy link

I assume that someone made their own library and it had some basic functionality. And because it had useful features it was included in this framework. I don't believe it was ever claimed to be a full implementation.

@devyte
Copy link
Collaborator

devyte commented Dec 5, 2018

Closing in view of #5442 with a full rewrite of mdns.

@devyte devyte closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants