-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
ESP8266mDNS should send empty AAAA response #2110
Comments
I can see that TTL is currently hardcoded in several places in the code. |
I can confirm this happens when using
It appears that without |
I have tried changing the code to send empty responses for AAAA requests (which should be the correct behaviour according to rfc4074): https://github.com/esp8266/Arduino/tree/mdns_answer_aaaa This doesn't help, unfortunately, at least on OS X. I still get AAAA requests every time FYI, I'm not sure what else to try. Feel free to check the code linked above and see if you can figure out why AAAA requests are still being sent. |
I also tried everything that I can come up with. Sending empty response, no response, bad response... nothing seem to change the behaviour above. |
@igrr @me-no-dev what is the status of this? It seems to me from the previous comments that code changes are needed for the ttl thing, but that there is still a problem with the AAAA response? |
What is the status of this? I'm being bitten a lot by the lack of AAAA responses. I've looked for the changes @igrr mentioned (on 12-Jun-2016) to use as a starting point, but I cannot find them in the repo. |
Anybody to try #5384 ? |
Closing in view of #5442 with a full rewrite of mdns. |
RFC 6762 Multicast DNS - Section 10:
ESP8266mDNS's readme states you can pass a TTL value through the begin() method, but I don't see support for this in the source code. Through experimentation I've seen other mDNS devices on my network, like mac computers, have reasonable hostname TTLs and are responsive to access after an initial lookup, but esp8266/arduino devices are not - my computers seem to wait several seconds on an mDNS discovery query for every connection. This makes me think something is going wrong and the ESP8266mDNS library is failing to communicate a sensible TTL.
Anyone have a clue where this is going wrong? Something seems severely broken here.
To reproduce:
After the first mDNS query, for the following 300 seconds, mDNS addressed queries should be roughly as fast as IP addressed queries. They are when my test subjects are Mac's, they are not when the test subjects are ESP8266 devices running this arduino core.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: